@wix/himalaya-cli 0.1075.0 → 0.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/automations-v1/src/index.d.ts +1 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/billing-tax-v1/src/index.d.ts +1 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-tools-v1/src/index.d.ts +27 -10
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/index.d.ts +243 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/data-collections-v1/src/index.d.ts +151 -19
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/donations/src/index.d.ts +10 -17
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/email-marketing-v1/src/index.d.ts +136 -20
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/faq-v2/src/index.d.ts +39 -28
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/gift-cards/src/index.d.ts +28 -17
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/redirects-v1/src/index.d.ts +2 -7
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/seo-v1/src/index.d.ts +0 -6
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/workflows-v1/src/index.d.ts +5 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-business-tools.mjs +9 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +53 -5
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-data-collections.mjs +40 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-donations.mjs +9 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-email-marketing.mjs +90 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-faq.mjs +10 -0
  19. package/dist/cli.mjs +20 -4
  20. package/guides/sdk-reference.json +744 -391
  21. package/package.json +2 -2
  22. package/templates/beauty-salon-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  23. package/templates/community-club-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  24. package/templates/events-meetups-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  25. package/templates/gym-fitness-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  26. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  27. package/templates/owner-lite/tier5-src/_shared/owner-module-data.ts +6 -2
  28. package/templates/podcast-creator-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  29. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  30. package/templates/restaurant-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  31. package/templates/retail-store-owner/tier5-src/_shared/owner-module-data.ts +6 -2
  32. package/templates/yoga-studio-owner/tier5-src/_shared/owner-module-data.ts +6 -2
@@ -167,7 +167,6 @@ export interface WixTrigger {
167
167
  triggerKey?: string;
168
168
  filters?: WixFilter[];
169
169
  scheduledEventOffset?: WixFutureDateActivationOffset;
170
- rateLimit?: WixRateLimit;
171
170
  overrideSchema?: Record<string, unknown>;
172
171
  }
173
172
  export interface WixAction {
@@ -214,6 +213,7 @@ export interface WixDraftInfo {
214
213
  }
215
214
  export interface WixEnrichments {
216
215
  studioSite?: WixEnrichment;
216
+ siteInfo?: WixEnrichment;
217
217
  }
218
218
  export interface WixExtendedFields {
219
219
  namespaces?: Record<string, unknown>;
@@ -48,6 +48,7 @@ export interface WixManualTaxMapping {
48
48
  extendedFields?: WixExtendedFields;
49
49
  }
50
50
  export interface WixExemptDetails {
51
+ taxExemptGroupId?: string;
51
52
  taxRate?: string;
52
53
  }
53
54
  export interface WixExtendedFields {
@@ -327,7 +328,6 @@ export interface WixManualTaxMappingsQueryBuilder {
327
328
  le?: unknown;
328
329
  lt?: unknown;
329
330
  startsWith?: unknown;
330
- hasSome?: unknown;
331
331
  in?: unknown;
332
332
  exists?: unknown;
333
333
  ascending?: unknown;
@@ -120,6 +120,11 @@ export interface WixListLocationsRequest {
120
120
  export interface WixSorting {
121
121
  fieldName?: string;
122
122
  order?: string;
123
+ origin?: WixCommonAddressLocation;
124
+ }
125
+ export interface WixCommonAddressLocation {
126
+ latitude?: number;
127
+ longitude?: number;
123
128
  }
124
129
  export interface WixPaging {
125
130
  limit?: number;
@@ -379,7 +384,6 @@ export interface WixLocationsQueryBuilder {
379
384
  le?: unknown;
380
385
  lt?: unknown;
381
386
  startsWith?: unknown;
382
- hasSome?: unknown;
383
387
  in?: unknown;
384
388
  exists?: unknown;
385
389
  limit?: unknown;
@@ -536,6 +540,16 @@ export interface WixUpdateBusinessScheduleRequest {
536
540
  }
537
541
  export interface WixUpdateBusinessScheduleResponse {
538
542
  }
543
+ export interface WixUpdateBusinessRegionRequest {
544
+ businessRegion?: WixBusinessRegionData;
545
+ fields?: string[];
546
+ }
547
+ export interface WixBusinessRegionData {
548
+ paymentCurrency?: string;
549
+ timeZone?: string;
550
+ }
551
+ export interface WixUpdateBusinessRegionResponse {
552
+ }
539
553
  export interface WixUpdateConsentPolicyRequest {
540
554
  consentPolicy?: WixConsentPolicy;
541
555
  }
@@ -560,15 +574,8 @@ export interface WixUpdateBusinessProfileOptions {
560
574
  export interface WixUpdateBusinessContactOptions {
561
575
  fields?: string[];
562
576
  }
563
- export interface WixGetSitePropertiesSignature {
564
- }
565
- export interface WixUpdateBusinessProfileSignature {
566
- }
567
- export interface WixUpdateBusinessContactSignature {
568
- }
569
- export interface WixUpdateBusinessScheduleSignature {
570
- }
571
- export interface WixUpdateConsentPolicySignature {
577
+ export interface WixUpdateBusinessRegionOptions {
578
+ fields?: string[];
572
579
  }
573
580
  export interface WixReadResponse {
574
581
  }
@@ -589,4 +596,14 @@ export declare function updateBusinessProfile(req?: WixUpdateBusinessProfileRequ
589
596
  export declare function updateBusinessContact(req?: WixUpdateBusinessContactRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessContactResponse>;
590
597
  export declare function updateBusinessSchedule(req?: WixUpdateBusinessScheduleRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessScheduleResponse>;
591
598
  export declare function updateConsentPolicy(req?: WixUpdateConsentPolicyRequest, opts?: WixCallOptions): Promise<WixUpdateConsentPolicyResponse>;
599
+ /**
600
+ * Updates a site's payment currency or time zone.
601
+ *
602
+ * Wix permissions: SITE_PROPERTIES.UPDATE_BUSINESS_REGION.
603
+ *
604
+ * @scope owner — requires an owner / business identity — a visitor session gets 403.
605
+ *
606
+ * POST /site-properties/v4/properties/business-region
607
+ */
608
+ export declare function updateBusinessRegion(req?: WixUpdateBusinessRegionRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessRegionResponse>;
592
609
  export * from "./extensions.js";
@@ -98,6 +98,7 @@ export interface WixNode {
98
98
  smartBlockCellData?: WixSmartBlockCellData;
99
99
  checkboxListData?: WixCheckboxListData;
100
100
  listItemData?: WixListItemNodeData;
101
+ slotData?: WixSlotData;
101
102
  type?: string;
102
103
  id?: string;
103
104
  nodes?: WixNode[];
@@ -139,6 +140,7 @@ export interface WixNodeDataOneOf {
139
140
  smartBlockCellData?: WixSmartBlockCellData;
140
141
  checkboxListData?: WixCheckboxListData;
141
142
  listItemData?: WixListItemNodeData;
143
+ slotData?: WixSlotData;
142
144
  }
143
145
  export interface WixNodeStyle {
144
146
  paddingTop?: string;
@@ -151,6 +153,7 @@ export interface WixButtonData {
151
153
  styles?: WixStyles;
152
154
  text?: string;
153
155
  link?: WixLink;
156
+ animation?: WixAnimation;
154
157
  }
155
158
  export interface WixGradient {
156
159
  type?: string;
@@ -233,8 +236,44 @@ export interface WixRel {
233
236
  ugc?: boolean;
234
237
  noreferrer?: boolean;
235
238
  }
239
+ export interface WixAnimation {
240
+ type?: string;
241
+ entrance?: WixEntranceAnimation;
242
+ loop?: WixLoopAnimation;
243
+ effect?: WixPointerEffect;
244
+ transitionDuration?: number;
245
+ }
246
+ export interface WixEntranceAnimation {
247
+ effect?: WixEntranceEffect;
248
+ duration?: number;
249
+ delay?: number;
250
+ }
251
+ export interface WixEntranceEffect {
252
+ type?: string;
253
+ direction?: string;
254
+ shape?: string;
255
+ easing?: string;
256
+ }
257
+ export interface WixLoopAnimation {
258
+ effect?: WixLoopEffect;
259
+ duration?: number;
260
+ iterationDelay?: number;
261
+ }
262
+ export interface WixLoopEffect {
263
+ type?: string;
264
+ direction?: string;
265
+ easing?: string;
266
+ }
267
+ export interface WixPointerEffect {
268
+ type?: string;
269
+ inverted?: boolean;
270
+ axis?: string;
271
+ direction?: string;
272
+ easing?: string;
273
+ }
236
274
  export interface WixCodeBlockData {
237
275
  textStyle?: WixTextStyle;
276
+ animation?: WixAnimation;
238
277
  }
239
278
  export interface WixTextStyle {
240
279
  textAlignment?: string;
@@ -245,6 +284,16 @@ export interface WixDividerData {
245
284
  lineStyle?: string;
246
285
  width?: string;
247
286
  alignment?: string;
287
+ styles?: WixDividerDataStyles;
288
+ animation?: WixAnimation;
289
+ }
290
+ export interface WixDividerDataStyles {
291
+ color?: string;
292
+ lineCap?: string;
293
+ lineThickness?: number[];
294
+ dashLength?: number;
295
+ dashGap?: number;
296
+ lineGap?: number;
248
297
  }
249
298
  export interface WixFileData {
250
299
  containerData?: WixPluginContainerData;
@@ -256,6 +305,7 @@ export interface WixFileData {
256
305
  mimeType?: string;
257
306
  path?: string;
258
307
  sizeInKb?: string;
308
+ animation?: WixAnimation;
259
309
  }
260
310
  export interface WixFileSource {
261
311
  url?: string;
@@ -279,6 +329,7 @@ export interface WixGalleryData {
279
329
  options?: WixGalleryOptions;
280
330
  disableExpand?: boolean;
281
331
  disableDownload?: boolean;
332
+ animation?: WixAnimation;
282
333
  }
283
334
  export interface WixMedia {
284
335
  src?: WixFileSource;
@@ -333,6 +384,7 @@ export interface WixGIFData {
333
384
  height?: number;
334
385
  width?: number;
335
386
  gifType?: string;
387
+ animation?: WixAnimation;
336
388
  }
337
389
  export interface WixGIF {
338
390
  gif?: string;
@@ -344,6 +396,7 @@ export interface WixHeadingData {
344
396
  textStyle?: WixTextStyle;
345
397
  indentation?: number;
346
398
  renderedLevel?: number;
399
+ animation?: WixAnimation;
347
400
  }
348
401
  export interface WixHTMLData {
349
402
  url?: string;
@@ -353,6 +406,7 @@ export interface WixHTMLData {
353
406
  containerData?: WixPluginContainerData;
354
407
  source?: string;
355
408
  autoHeight?: boolean;
409
+ animation?: WixAnimation;
356
410
  }
357
411
  export interface WixHTMLDataDataOneOf {
358
412
  url?: string;
@@ -370,6 +424,9 @@ export interface WixImageData {
370
424
  disableDownload?: boolean;
371
425
  decorative?: boolean;
372
426
  styles?: WixImageDataStyles;
427
+ crop?: WixImageDataCrop;
428
+ cropShape?: string;
429
+ animation?: WixAnimation;
373
430
  }
374
431
  export interface WixStylesBorder {
375
432
  width?: number;
@@ -379,6 +436,12 @@ export interface WixStylesBorder {
379
436
  export interface WixImageDataStyles {
380
437
  border?: WixStylesBorder;
381
438
  }
439
+ export interface WixImageDataCrop {
440
+ x?: number;
441
+ y?: number;
442
+ width?: number;
443
+ height?: number;
444
+ }
382
445
  export interface WixLinkPreviewData {
383
446
  containerData?: WixPluginContainerData;
384
447
  link?: WixLink;
@@ -387,6 +450,7 @@ export interface WixLinkPreviewData {
387
450
  description?: string;
388
451
  html?: string;
389
452
  styles?: WixLinkPreviewDataStyles;
453
+ animation?: WixAnimation;
390
454
  }
391
455
  export interface WixLinkPreviewDataStyles {
392
456
  backgroundColor?: string;
@@ -419,12 +483,14 @@ export interface WixParagraphData {
419
483
  textStyle?: WixTextStyle;
420
484
  indentation?: number;
421
485
  level?: number;
486
+ animation?: WixAnimation;
422
487
  }
423
488
  export interface WixPollData {
424
489
  containerData?: WixPluginContainerData;
425
490
  poll?: WixPoll;
426
491
  layout?: WixPollDataLayout;
427
492
  design?: WixDesign;
493
+ animation?: WixAnimation;
428
494
  }
429
495
  export interface WixPermissions {
430
496
  view?: string;
@@ -531,6 +597,13 @@ export interface WixAnchorData {
531
597
  export interface WixColorData {
532
598
  background?: string;
533
599
  foreground?: string;
600
+ foregroundStyle?: WixColorDataBackground;
601
+ backgroundStyle?: WixColorDataBackground;
602
+ }
603
+ export interface WixColorDataBackground {
604
+ type?: string;
605
+ color?: string;
606
+ gradient?: WixGradient;
534
607
  }
535
608
  export interface WixLinkData {
536
609
  link?: WixLink;
@@ -539,6 +612,7 @@ export interface WixMentionData {
539
612
  name?: string;
540
613
  slug?: string;
541
614
  id?: string;
615
+ type?: string;
542
616
  }
543
617
  export interface WixFontSizeData {
544
618
  unit?: string;
@@ -579,6 +653,7 @@ export interface WixAppEmbedData {
579
653
  cardStyles?: WixCardStyles;
580
654
  containerData?: WixPluginContainerData;
581
655
  pricingData?: WixPricingData;
656
+ animation?: WixAnimation;
582
657
  }
583
658
  export interface WixAppEmbedDataAppDataOneOf {
584
659
  bookingData?: WixBookingData;
@@ -646,6 +721,7 @@ export interface WixVideoData {
646
721
  disableDownload?: boolean;
647
722
  title?: string;
648
723
  options?: WixPlaybackOptions;
724
+ animation?: WixAnimation;
649
725
  }
650
726
  export interface WixPlaybackOptions {
651
727
  autoPlay?: boolean;
@@ -656,6 +732,7 @@ export interface WixEmbedData {
656
732
  containerData?: WixPluginContainerData;
657
733
  oembed?: WixOembed;
658
734
  src?: string;
735
+ animation?: WixAnimation;
659
736
  }
660
737
  export interface WixOembed {
661
738
  type?: string;
@@ -680,6 +757,7 @@ export interface WixCollapsibleListData {
680
757
  initialExpandedItems?: string;
681
758
  direction?: string;
682
759
  isQapageData?: boolean;
760
+ animation?: WixAnimation;
683
761
  }
684
762
  export interface WixTableData {
685
763
  containerData?: WixPluginContainerData;
@@ -690,6 +768,7 @@ export interface WixTableData {
690
768
  cellSpacing?: number;
691
769
  cellPadding?: number[];
692
770
  altText?: string;
771
+ animation?: WixAnimation;
693
772
  }
694
773
  export interface WixDimensions {
695
774
  colsWidthRatio?: number[];
@@ -730,18 +809,22 @@ export interface WixAudioData {
730
809
  name?: string;
731
810
  authorName?: string;
732
811
  html?: string;
812
+ animation?: WixAnimation;
733
813
  }
734
814
  export interface WixOrderedListData {
735
815
  indentation?: number;
736
816
  offset?: number;
737
817
  start?: number;
818
+ animation?: WixAnimation;
738
819
  }
739
820
  export interface WixBulletedListData {
740
821
  indentation?: number;
741
822
  offset?: number;
823
+ animation?: WixAnimation;
742
824
  }
743
825
  export interface WixBlockquoteData {
744
826
  indentation?: number;
827
+ animation?: WixAnimation;
745
828
  }
746
829
  export interface WixCaptionData {
747
830
  textStyle?: WixTextStyle;
@@ -766,26 +849,45 @@ export interface WixLayoutData {
766
849
  banner?: WixBanner;
767
850
  background?: WixLayoutDataBackground;
768
851
  backdrop?: WixBackdrop;
852
+ animation?: WixAnimation;
853
+ topDivider?: WixSectionDivider;
854
+ bottomDivider?: WixSectionDivider;
855
+ }
856
+ export interface WixLayoutDataBackground {
857
+ type?: string;
858
+ color?: string;
859
+ gradient?: WixGradient;
860
+ }
861
+ export interface WixLayers {
862
+ count?: number;
863
+ offsetY?: number;
864
+ layerEffect?: string;
865
+ offsetX?: number;
769
866
  }
770
867
  export interface WixLayoutDataBackgroundImage {
771
868
  media?: WixMedia;
772
869
  opacity?: number;
773
870
  scaling?: string;
774
871
  position?: string;
872
+ blur?: number;
873
+ overlay?: WixLayoutDataBackground;
775
874
  }
776
875
  export interface WixBanner {
777
876
  origin?: string;
778
877
  position?: string;
779
878
  }
780
- export interface WixLayoutDataBackground {
879
+ export interface WixBackdrop {
781
880
  type?: string;
782
881
  color?: string;
783
882
  gradient?: WixGradient;
784
883
  }
785
- export interface WixBackdrop {
884
+ export interface WixSectionDivider {
786
885
  type?: string;
787
886
  color?: string;
788
- gradient?: WixGradient;
887
+ height?: number;
888
+ offsetX?: number;
889
+ flipped?: boolean;
890
+ layers?: WixLayers;
789
891
  }
790
892
  export interface WixLayoutCellData {
791
893
  colSpan?: number;
@@ -794,6 +896,9 @@ export interface WixShapeData {
794
896
  containerData?: WixPluginContainerData;
795
897
  shape?: WixMedia;
796
898
  styles?: WixShapeDataStyles;
899
+ animation?: WixAnimation;
900
+ link?: WixLink;
901
+ altText?: string;
797
902
  }
798
903
  export interface WixShapeDataStyles {
799
904
  color?: string;
@@ -813,6 +918,8 @@ export interface WixBackgroundImage {
813
918
  opacity?: number;
814
919
  scaling?: string;
815
920
  position?: string;
921
+ overlay?: WixCardDataBackground;
922
+ blur?: number;
816
923
  }
817
924
  export interface WixTocData {
818
925
  includedHeadings?: number[];
@@ -821,6 +928,7 @@ export interface WixTocData {
821
928
  itemSpacing?: number;
822
929
  color?: string;
823
930
  indentation?: string;
931
+ animation?: WixAnimation;
824
932
  }
825
933
  export interface WixSmartBlockData {
826
934
  type?: string;
@@ -829,6 +937,7 @@ export interface WixSmartBlockData {
829
937
  borderColor?: string;
830
938
  borderWidth?: number;
831
939
  borderRadius?: number;
940
+ animation?: WixAnimation;
832
941
  }
833
942
  export interface WixSmartBlockCellData {
834
943
  label?: string;
@@ -844,9 +953,31 @@ export interface WixSmartBlockCellData {
844
953
  export interface WixCheckboxListData {
845
954
  indentation?: number;
846
955
  offset?: number;
956
+ animation?: WixAnimation;
847
957
  }
848
958
  export interface WixListItemNodeData {
849
959
  checked?: boolean;
960
+ animation?: WixAnimation;
961
+ }
962
+ export interface WixSlotData {
963
+ integrationType?: string;
964
+ resourceId?: string;
965
+ animation?: WixAnimation;
966
+ design?: WixSlotDesign;
967
+ }
968
+ export interface WixSlotDesign {
969
+ textColor?: string;
970
+ accentColor?: string;
971
+ buttonColor?: string;
972
+ buttonTextColor?: string;
973
+ backgroundColor?: string;
974
+ borderColor?: string;
975
+ borderWidth?: number;
976
+ borderRadius?: number;
977
+ paddingHorizontal?: number;
978
+ paddingVertical?: number;
979
+ rowGap?: number;
980
+ columnGap?: number;
850
981
  }
851
982
  export interface WixMetadata {
852
983
  version?: number;
@@ -1123,8 +1254,10 @@ export interface WixVersionedDocumentId {
1123
1254
  }
1124
1255
  export interface WixCreateCommentRequest {
1125
1256
  comment?: WixComment;
1257
+ contactDetails?: WixContactDetails;
1126
1258
  }
1127
1259
  export interface WixContactDetails {
1260
+ email?: string;
1128
1261
  }
1129
1262
  export interface WixCreateCommentResponse {
1130
1263
  comment?: WixComment;
@@ -1190,6 +1323,11 @@ export interface WixCursorQueryPagingMethodOneOf {
1190
1323
  export interface WixSorting {
1191
1324
  fieldName?: string;
1192
1325
  order?: string;
1326
+ origin?: WixAddressLocation;
1327
+ }
1328
+ export interface WixAddressLocation {
1329
+ latitude?: number;
1330
+ longitude?: number;
1193
1331
  }
1194
1332
  export interface WixCursorPaging {
1195
1333
  limit?: number;
@@ -1253,6 +1391,7 @@ export interface WixListCommentsByResourceRequest {
1253
1391
  commentSort?: WixCommentSort;
1254
1392
  replySort?: WixReplySort;
1255
1393
  cursorPaging?: WixListCommentsByResourceCursorPaging;
1394
+ fields?: string[];
1256
1395
  }
1257
1396
  export interface WixCommentSort {
1258
1397
  order?: string;
@@ -1271,21 +1410,61 @@ export interface WixListCommentsByResourceResponse {
1271
1410
  comments?: WixComment[];
1272
1411
  pagingMetadata?: WixCursorPagingMetadata;
1273
1412
  commentReplies?: Record<string, unknown>;
1413
+ authorBadges?: WixAuthorBadgesInfo;
1274
1414
  }
1275
1415
  export interface WixRepliesListResponse {
1276
1416
  replies?: WixComment[];
1277
1417
  pagingMetadata?: WixCursorPagingMetadata;
1278
1418
  }
1419
+ export interface WixAuthorBadgesInfo {
1420
+ badgesByMemberId?: Record<string, unknown>;
1421
+ }
1422
+ export interface WixAuthorBadges {
1423
+ badges?: string[];
1424
+ }
1425
+ export interface WixAddCommentReactionRequest {
1426
+ commentId?: string;
1427
+ reactionCode?: string;
1428
+ }
1429
+ export interface WixAddCommentReactionResponse {
1430
+ }
1431
+ export interface WixRemoveCommentReactionRequest {
1432
+ commentId?: string;
1433
+ reactionCode?: string;
1434
+ }
1435
+ export interface WixRemoveCommentReactionResponse {
1436
+ }
1437
+ export interface WixBulkGetCommentReactionsRequest {
1438
+ appId?: string;
1439
+ contextId?: string;
1440
+ contextType?: string;
1441
+ commentIds?: string[];
1442
+ }
1443
+ export interface WixBulkGetCommentReactionsResponse {
1444
+ reactions?: Record<string, unknown>;
1445
+ }
1446
+ export interface WixCommentReactionsInfo {
1447
+ total?: number;
1448
+ codeReactions?: WixCommentCodeReactions[];
1449
+ }
1450
+ export interface WixCommentCodeReactions {
1451
+ reactionCode?: string;
1452
+ total?: number;
1453
+ hasReacted?: boolean;
1454
+ memberIds?: string[];
1455
+ }
1279
1456
  export interface WixGetCommentThreadRequest {
1280
1457
  appId?: string;
1281
1458
  commentId?: string;
1282
1459
  commentSort?: WixCommentSort;
1283
1460
  replySort?: WixReplySort;
1461
+ fields?: string[];
1284
1462
  }
1285
1463
  export interface WixGetCommentThreadResponse {
1286
1464
  comments?: WixComment[];
1287
1465
  pagingMetadata?: WixCursorPagingMetadata;
1288
1466
  commentReplies?: Record<string, unknown>;
1467
+ authorBadges?: WixAuthorBadgesInfo;
1289
1468
  }
1290
1469
  export interface WixBulkPublishCommentRequest {
1291
1470
  appId?: string;
@@ -1355,6 +1534,7 @@ export interface WixAccountInfoMetadata {
1355
1534
  parentAccountId?: string;
1356
1535
  }
1357
1536
  export interface WixCommentDeletedEnvelope {
1537
+ entity?: WixComment;
1358
1538
  metadata?: WixEventMetadata;
1359
1539
  }
1360
1540
  export interface WixCommentContentChangedEnvelope {
@@ -1394,6 +1574,9 @@ export interface WixCommentUpdatedEnvelope {
1394
1574
  metadata?: WixEventMetadata;
1395
1575
  modifiedFields?: Record<string, unknown>;
1396
1576
  }
1577
+ export interface WixCreateCommentOptions {
1578
+ contactDetails?: WixContactDetails;
1579
+ }
1397
1580
  export interface WixUpdateComment {
1398
1581
  id?: string;
1399
1582
  revision?: string;
@@ -1464,11 +1647,18 @@ export interface WixListCommentsByResourceOptions {
1464
1647
  commentSort?: WixCommentSort;
1465
1648
  replySort?: WixReplySort;
1466
1649
  cursorPaging?: WixListCommentsByResourceCursorPaging;
1650
+ fields?: string[];
1651
+ }
1652
+ export interface WixBulkGetCommentReactionsOptions {
1653
+ contextId?: string;
1654
+ contextType?: string;
1655
+ commentIds?: string[];
1467
1656
  }
1468
1657
  export interface WixGetCommentThreadOptions {
1469
1658
  appId?: string;
1470
1659
  commentSort?: WixCommentSort;
1471
1660
  replySort?: WixReplySort;
1661
+ fields?: string[];
1472
1662
  }
1473
1663
  export interface WixBulkPublishCommentOptions {
1474
1664
  filter?: Record<string, unknown>;
@@ -1498,9 +1688,59 @@ export declare function publishComment(commentId: string, req?: WixPublishCommen
1498
1688
  export declare function countComments(req?: WixCountCommentsRequest, opts?: WixCallOptions): Promise<WixCountCommentsResponse>;
1499
1689
  export declare function listCommentsByResource(req?: WixListCommentsByResourceRequest, opts?: WixCallOptions): Promise<WixListCommentsByResourceResponse>;
1500
1690
  export declare function getCommentThread(commentId: string, opts?: WixCallOptions): Promise<WixGetCommentThreadResponse>;
1691
+ /**
1692
+ * Adds the current identity's reaction to a comment.
1693
+ *
1694
+ * Wix permissions: comments:v2:comment:add_comment_reaction.
1695
+ *
1696
+ * @scope visitor — an anonymous visitor session is enough.
1697
+ *
1698
+ * POST /comments/v1/comments/{commentId}/reactions
1699
+ */
1700
+ export declare function addCommentReaction(commentId: string, req?: WixAddCommentReactionRequest, opts?: WixCallOptions): Promise<WixAddCommentReactionResponse>;
1701
+ /**
1702
+ * Creates a new comment.
1703
+ *
1704
+ * Wix permissions: WIX_COMMENTS.COMMENT_CREATE, WIX_COMMENTS.COMMENT_OVERRIDE_AUTHOR, WIX_COMMENTS.COMMENT_OVERRIDE_COMMENT_DATE.
1705
+ *
1706
+ * @scope member — requires a signed-in site member.
1707
+ *
1708
+ * POST /comments/v1/comments
1709
+ */
1710
+ export declare function createComment(req?: WixCreateCommentRequest, opts?: WixCallOptions): Promise<WixCreateCommentResponse>;
1711
+ /**
1712
+ * Removes the current identity's reaction from a comment.
1713
+ *
1714
+ * Wix permissions: comments:v2:comment:remove_comment_reaction.
1715
+ *
1716
+ * @scope visitor — an anonymous visitor session is enough.
1717
+ *
1718
+ * POST /comments/v1/comments/{commentId}/reactions/remove
1719
+ */
1720
+ export declare function removeCommentReaction(commentId: string, req?: WixRemoveCommentReactionRequest, opts?: WixCallOptions): Promise<WixRemoveCommentReactionResponse>;
1721
+ /**
1722
+ * Updates a comment.
1723
+ *
1724
+ * Wix permissions: WIX_COMMENTS.COMMENT_UPDATE.
1725
+ *
1726
+ * @scope member — requires a signed-in site member.
1727
+ *
1728
+ * PATCH /comments/v1/comments/{commentId}
1729
+ */
1730
+ export declare function updateComment(commentId: string, req?: WixUpdateCommentRequest, opts?: WixCallOptions): Promise<WixUpdateCommentResponse>;
1501
1731
  export declare function bulkPublishComment(req?: WixBulkPublishCommentRequest, opts?: WixCallOptions): Promise<WixBulkPublishCommentResponse>;
1502
1732
  export declare function bulkHideComment(req?: WixBulkHideCommentRequest, opts?: WixCallOptions): Promise<WixBulkHideCommentResponse>;
1503
1733
  export declare function bulkDeleteComment(req?: WixBulkDeleteCommentRequest, opts?: WixCallOptions): Promise<WixBulkDeleteCommentResponse>;
1504
1734
  export declare function bulkModerateDraftContent(req?: WixBulkModerateDraftContentRequest, opts?: WixCallOptions): Promise<WixBulkModerateDraftContentResponse>;
1505
1735
  export declare function bulkMoveCommentByFilter(req?: WixBulkMoveCommentByFilterRequest, opts?: WixCallOptions): Promise<WixBulkMoveCommentByFilterResponse>;
1736
+ /**
1737
+ * Retrieves reactions for multiple comments.
1738
+ *
1739
+ * Wix permissions: comments:v2:comment:bulk_get_comment_reactions.
1740
+ *
1741
+ * @scope visitor — an anonymous visitor session is enough.
1742
+ *
1743
+ * POST /comments/v1/bulk/comments/reactions/get
1744
+ */
1745
+ export declare function bulkGetCommentReactions(req?: WixBulkGetCommentReactionsRequest, opts?: WixCallOptions): Promise<WixBulkGetCommentReactionsResponse>;
1506
1746
  export * from "./extensions.js";