@wix/auto_sdk_comments_comments 1.0.37 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +7 -7
  2. package/build/cjs/index.js +305 -171
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +294 -165
  5. package/build/cjs/index.typings.js +21 -14
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +163 -151
  8. package/build/cjs/meta.js +21 -14
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +7 -7
  11. package/build/es/index.mjs +304 -171
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +294 -165
  14. package/build/es/index.typings.mjs +20 -14
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +163 -151
  17. package/build/es/meta.mjs +20 -14
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +7 -7
  20. package/build/internal/cjs/index.js +305 -171
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +294 -165
  23. package/build/internal/cjs/index.typings.js +21 -14
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +163 -151
  26. package/build/internal/cjs/meta.js +21 -14
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +7 -7
  29. package/build/internal/es/index.mjs +304 -171
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +294 -165
  32. package/build/internal/es/index.typings.mjs +20 -14
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +163 -151
  35. package/build/internal/es/meta.mjs +20 -14
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
4
  * A comment is a user-generated message in response to a specific resource. It allows site visitors
@@ -1893,6 +1893,8 @@ interface LayoutData {
1893
1893
  responsivenessBreakpoint?: number | null;
1894
1894
  /** Styling for the layout's container. */
1895
1895
  containerData?: PluginContainerData;
1896
+ /** Defines where selected design propertied applies to */
1897
+ designTarget?: DesignTargetWithLiterals;
1896
1898
  }
1897
1899
  declare enum Scaling {
1898
1900
  /** Auto image scaling */
@@ -1954,6 +1956,14 @@ declare enum ResponsivenessBehaviour {
1954
1956
  }
1955
1957
  /** @enumType */
1956
1958
  type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
1959
+ declare enum DesignTarget {
1960
+ /** Design applied to layout */
1961
+ LAYOUT = "LAYOUT",
1962
+ /** Design applied to cells */
1963
+ CELL = "CELL"
1964
+ }
1965
+ /** @enumType */
1966
+ type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
1957
1967
  interface LayoutCellData {
1958
1968
  /** Size of the cell in 12 columns grid. */
1959
1969
  colSpan?: number | null;
@@ -2242,6 +2252,156 @@ interface CommentReactionSummary {
2242
2252
  */
2243
2253
  reactionCodeCount?: Record<string, number>;
2244
2254
  }
2255
+ interface CommentModerated {
2256
+ comment?: Comment;
2257
+ moderationAction?: ActionWithLiterals;
2258
+ }
2259
+ declare enum Action {
2260
+ /** Unknown content. */
2261
+ UNKNOWN = "UNKNOWN",
2262
+ /** Approve draft content. */
2263
+ APPROVE = "APPROVE",
2264
+ /** Reject draft content. */
2265
+ REJECT = "REJECT"
2266
+ }
2267
+ /** @enumType */
2268
+ type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
2269
+ interface DomainEvent extends DomainEventBodyOneOf {
2270
+ createdEvent?: EntityCreatedEvent;
2271
+ updatedEvent?: EntityUpdatedEvent;
2272
+ deletedEvent?: EntityDeletedEvent;
2273
+ actionEvent?: ActionEvent;
2274
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2275
+ _id?: string;
2276
+ /**
2277
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2278
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2279
+ */
2280
+ entityFqdn?: string;
2281
+ /**
2282
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
2283
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2284
+ */
2285
+ slug?: string;
2286
+ /** ID of the entity associated with the event. */
2287
+ entityId?: string;
2288
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2289
+ eventTime?: Date | null;
2290
+ /**
2291
+ * Whether the event was triggered as a result of a privacy regulation application
2292
+ * (for example, GDPR).
2293
+ */
2294
+ triggeredByAnonymizeRequest?: boolean | null;
2295
+ /** If present, indicates the action that triggered the event. */
2296
+ originatedFrom?: string | null;
2297
+ /**
2298
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
2299
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
2300
+ */
2301
+ entityEventSequence?: string | null;
2302
+ }
2303
+ /** @oneof */
2304
+ interface DomainEventBodyOneOf {
2305
+ createdEvent?: EntityCreatedEvent;
2306
+ updatedEvent?: EntityUpdatedEvent;
2307
+ deletedEvent?: EntityDeletedEvent;
2308
+ actionEvent?: ActionEvent;
2309
+ }
2310
+ interface EntityCreatedEvent {
2311
+ entity?: string;
2312
+ }
2313
+ interface RestoreInfo {
2314
+ deletedDate?: Date | null;
2315
+ }
2316
+ interface EntityUpdatedEvent {
2317
+ /**
2318
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2319
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2320
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2321
+ */
2322
+ currentEntity?: string;
2323
+ }
2324
+ interface EntityDeletedEvent {
2325
+ /** Entity that was deleted. */
2326
+ deletedEntity?: string | null;
2327
+ }
2328
+ interface ActionEvent {
2329
+ body?: string;
2330
+ }
2331
+ interface Empty {
2332
+ }
2333
+ interface MessageEnvelope {
2334
+ /**
2335
+ * App instance ID.
2336
+ * @format GUID
2337
+ */
2338
+ instanceId?: string | null;
2339
+ /**
2340
+ * Event type.
2341
+ * @maxLength 150
2342
+ */
2343
+ eventType?: string;
2344
+ /** The identification type and identity data. */
2345
+ identity?: IdentificationData;
2346
+ /** Stringify payload. */
2347
+ data?: string;
2348
+ }
2349
+ interface IdentificationData extends IdentificationDataIdOneOf {
2350
+ /**
2351
+ * ID of a site visitor that has not logged in to the site.
2352
+ * @format GUID
2353
+ */
2354
+ anonymousVisitorId?: string;
2355
+ /**
2356
+ * ID of a site visitor that has logged in to the site.
2357
+ * @format GUID
2358
+ */
2359
+ memberId?: string;
2360
+ /**
2361
+ * ID of a Wix user (site owner, contributor, etc.).
2362
+ * @format GUID
2363
+ */
2364
+ wixUserId?: string;
2365
+ /**
2366
+ * ID of an app.
2367
+ * @format GUID
2368
+ */
2369
+ appId?: string;
2370
+ /** @readonly */
2371
+ identityType?: WebhookIdentityTypeWithLiterals;
2372
+ }
2373
+ /** @oneof */
2374
+ interface IdentificationDataIdOneOf {
2375
+ /**
2376
+ * ID of a site visitor that has not logged in to the site.
2377
+ * @format GUID
2378
+ */
2379
+ anonymousVisitorId?: string;
2380
+ /**
2381
+ * ID of a site visitor that has logged in to the site.
2382
+ * @format GUID
2383
+ */
2384
+ memberId?: string;
2385
+ /**
2386
+ * ID of a Wix user (site owner, contributor, etc.).
2387
+ * @format GUID
2388
+ */
2389
+ wixUserId?: string;
2390
+ /**
2391
+ * ID of an app.
2392
+ * @format GUID
2393
+ */
2394
+ appId?: string;
2395
+ }
2396
+ declare enum WebhookIdentityType {
2397
+ UNKNOWN = "UNKNOWN",
2398
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2399
+ MEMBER = "MEMBER",
2400
+ WIX_USER = "WIX_USER",
2401
+ APP = "APP"
2402
+ }
2403
+ /** @enumType */
2404
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
2245
2405
  interface UpdateInternalDocumentsEvent extends UpdateInternalDocumentsEventOperationOneOf {
2246
2406
  /** insert/update documents */
2247
2407
  update?: InternalDocumentUpdateOperation;
@@ -2377,20 +2537,6 @@ interface VersionedDocumentId {
2377
2537
  /** versioning mode to use instead of default */
2378
2538
  versioningMode?: VersioningModeWithLiterals;
2379
2539
  }
2380
- interface CommentModerated {
2381
- comment?: Comment;
2382
- moderationAction?: ActionWithLiterals;
2383
- }
2384
- declare enum Action {
2385
- /** Unknown content. */
2386
- UNKNOWN = "UNKNOWN",
2387
- /** Approve draft content. */
2388
- APPROVE = "APPROVE",
2389
- /** Reject draft content. */
2390
- REJECT = "REJECT"
2391
- }
2392
- /** @enumType */
2393
- type ActionWithLiterals = Action | 'UNKNOWN' | 'APPROVE' | 'REJECT';
2394
2540
  interface CreateCommentRequest {
2395
2541
  /** Comment to create. */
2396
2542
  comment?: Comment;
@@ -2902,140 +3048,6 @@ interface CommentMoved {
2902
3048
  comment?: Comment;
2903
3049
  destination?: Destination;
2904
3050
  }
2905
- interface DomainEvent extends DomainEventBodyOneOf {
2906
- createdEvent?: EntityCreatedEvent;
2907
- updatedEvent?: EntityUpdatedEvent;
2908
- deletedEvent?: EntityDeletedEvent;
2909
- actionEvent?: ActionEvent;
2910
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
2911
- _id?: string;
2912
- /**
2913
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
2914
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
2915
- */
2916
- entityFqdn?: string;
2917
- /**
2918
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
2919
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
2920
- */
2921
- slug?: string;
2922
- /** ID of the entity associated with the event. */
2923
- entityId?: string;
2924
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
2925
- eventTime?: Date | null;
2926
- /**
2927
- * Whether the event was triggered as a result of a privacy regulation application
2928
- * (for example, GDPR).
2929
- */
2930
- triggeredByAnonymizeRequest?: boolean | null;
2931
- /** If present, indicates the action that triggered the event. */
2932
- originatedFrom?: string | null;
2933
- /**
2934
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
2935
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
2936
- */
2937
- entityEventSequence?: string | null;
2938
- }
2939
- /** @oneof */
2940
- interface DomainEventBodyOneOf {
2941
- createdEvent?: EntityCreatedEvent;
2942
- updatedEvent?: EntityUpdatedEvent;
2943
- deletedEvent?: EntityDeletedEvent;
2944
- actionEvent?: ActionEvent;
2945
- }
2946
- interface EntityCreatedEvent {
2947
- entity?: string;
2948
- }
2949
- interface RestoreInfo {
2950
- deletedDate?: Date | null;
2951
- }
2952
- interface EntityUpdatedEvent {
2953
- /**
2954
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2955
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2956
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2957
- */
2958
- currentEntity?: string;
2959
- }
2960
- interface EntityDeletedEvent {
2961
- /** Entity that was deleted. */
2962
- deletedEntity?: string | null;
2963
- }
2964
- interface ActionEvent {
2965
- body?: string;
2966
- }
2967
- interface MessageEnvelope {
2968
- /**
2969
- * App instance ID.
2970
- * @format GUID
2971
- */
2972
- instanceId?: string | null;
2973
- /**
2974
- * Event type.
2975
- * @maxLength 150
2976
- */
2977
- eventType?: string;
2978
- /** The identification type and identity data. */
2979
- identity?: IdentificationData;
2980
- /** Stringify payload. */
2981
- data?: string;
2982
- }
2983
- interface IdentificationData extends IdentificationDataIdOneOf {
2984
- /**
2985
- * ID of a site visitor that has not logged in to the site.
2986
- * @format GUID
2987
- */
2988
- anonymousVisitorId?: string;
2989
- /**
2990
- * ID of a site visitor that has logged in to the site.
2991
- * @format GUID
2992
- */
2993
- memberId?: string;
2994
- /**
2995
- * ID of a Wix user (site owner, contributor, etc.).
2996
- * @format GUID
2997
- */
2998
- wixUserId?: string;
2999
- /**
3000
- * ID of an app.
3001
- * @format GUID
3002
- */
3003
- appId?: string;
3004
- /** @readonly */
3005
- identityType?: WebhookIdentityTypeWithLiterals;
3006
- }
3007
- /** @oneof */
3008
- interface IdentificationDataIdOneOf {
3009
- /**
3010
- * ID of a site visitor that has not logged in to the site.
3011
- * @format GUID
3012
- */
3013
- anonymousVisitorId?: string;
3014
- /**
3015
- * ID of a site visitor that has logged in to the site.
3016
- * @format GUID
3017
- */
3018
- memberId?: string;
3019
- /**
3020
- * ID of a Wix user (site owner, contributor, etc.).
3021
- * @format GUID
3022
- */
3023
- wixUserId?: string;
3024
- /**
3025
- * ID of an app.
3026
- * @format GUID
3027
- */
3028
- appId?: string;
3029
- }
3030
- declare enum WebhookIdentityType {
3031
- UNKNOWN = "UNKNOWN",
3032
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
3033
- MEMBER = "MEMBER",
3034
- WIX_USER = "WIX_USER",
3035
- APP = "APP"
3036
- }
3037
- /** @enumType */
3038
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
3039
3051
  /** @docsIgnore */
3040
3052
  type CreateCommentApplicationErrors = {
3041
3053
  code?: 'INVALID_CAPTCHA';
@@ -3098,6 +3110,19 @@ interface EventMetadata extends BaseEventMetadata {
3098
3110
  */
3099
3111
  entityEventSequence?: string | null;
3100
3112
  }
3113
+ interface CommentDeletedEnvelope {
3114
+ metadata: EventMetadata;
3115
+ }
3116
+ /** @permissionScope Read Comments
3117
+ * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3118
+ * @permissionScope Manage Comments
3119
+ * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3120
+ * @permissionId WIX_COMMENTS.COMMENT_READ
3121
+ * @webhook
3122
+ * @eventType wix.comments.v2.comment_deleted
3123
+ * @slug deleted
3124
+ */
3125
+ declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise<void>): void;
3101
3126
  interface CommentContentChangedEnvelope {
3102
3127
  data: CommentContentChanged;
3103
3128
  metadata: EventMetadata;
@@ -3217,20 +3242,6 @@ interface CommentCreatedEnvelope {
3217
3242
  * @slug created
3218
3243
  */
3219
3244
  declare function onCommentCreated(handler: (event: CommentCreatedEnvelope) => void | Promise<void>): void;
3220
- interface CommentDeletedEnvelope {
3221
- metadata: EventMetadata;
3222
- }
3223
- /** @permissionScope Read Comments
3224
- * @permissionScopeId SCOPE.DC_COMMENTS.READ.COMMENTS
3225
- * @permissionScope Manage Comments
3226
- * @permissionScopeId SCOPE.DC_COMMENTS.MANAGE.COMMENTS
3227
- * @permissionId WIX_COMMENTS.COMMENT_READ
3228
- * @webhook
3229
- * @eventType wix.comments.v2.comment_deleted
3230
- * @serviceIdentifier wix.comments.ng.v1.CommentsNg
3231
- * @slug deleted
3232
- */
3233
- declare function onCommentDeleted(handler: (event: CommentDeletedEnvelope) => void | Promise<void>): void;
3234
3245
  interface CommentResourceCommentCountChangedEnvelope {
3235
3246
  data: ResourceCommentCountChanged;
3236
3247
  metadata: EventMetadata;
@@ -3251,6 +3262,8 @@ declare function onCommentResourceCommentCountChanged(handler: (event: CommentRe
3251
3262
  interface CommentUpdatedEnvelope {
3252
3263
  entity: Comment;
3253
3264
  metadata: EventMetadata;
3265
+ /** @hidden */
3266
+ modifiedFields: Record<string, any>;
3254
3267
  }
3255
3268
  /**
3256
3269
  * Triggered when a comment is updated.
@@ -3552,7 +3565,123 @@ interface CommentsQueryBuilder {
3552
3565
  * @requiredField query
3553
3566
  * @requiredField options
3554
3567
  */
3555
- declare function typedQueryComments(query: CursorQuery, options: QueryCommentsOptions): Promise<NonNullablePaths<QueryCommentsResponse, `comments` | `comments.${number}.parentComment.status` | `comments.${number}.replyCount` | `comments.${number}.voteSummary.netVoteCount` | `comments.${number}.voteSummary.upvoteCount` | `comments.${number}.voteSummary.downvoteCount` | `comments.${number}.status` | `comments.${number}.reactionSummary.total` | `comments.${number}.marked`, 5>>;
3568
+ declare function typedQueryComments(query: CommentQuery, options: QueryCommentsOptions): Promise<NonNullablePaths<QueryCommentsResponse, `comments` | `comments.${number}.parentComment.status` | `comments.${number}.replyCount` | `comments.${number}.voteSummary.netVoteCount` | `comments.${number}.voteSummary.upvoteCount` | `comments.${number}.voteSummary.downvoteCount` | `comments.${number}.status` | `comments.${number}.reactionSummary.total` | `comments.${number}.marked`, 5>>;
3569
+ interface CommentQuerySpec extends QuerySpec {
3570
+ paging: 'cursor';
3571
+ wql: [
3572
+ {
3573
+ fields: ['_id'];
3574
+ operators: ['$eq', '$in', '$ne'];
3575
+ sort: 'NONE';
3576
+ },
3577
+ {
3578
+ fields: ['contextId'];
3579
+ operators: ['$eq', '$in', '$ne'];
3580
+ sort: 'NONE';
3581
+ },
3582
+ {
3583
+ fields: ['resourceId'];
3584
+ operators: ['$eq', '$in', '$ne'];
3585
+ sort: 'NONE';
3586
+ },
3587
+ {
3588
+ fields: ['author.userId'];
3589
+ operators: ['$eq', '$in', '$ne'];
3590
+ sort: 'NONE';
3591
+ },
3592
+ {
3593
+ fields: ['author.memberId'];
3594
+ operators: ['$eq', '$in', '$ne'];
3595
+ sort: 'NONE';
3596
+ },
3597
+ {
3598
+ fields: ['author.visitorId'];
3599
+ operators: ['$eq', '$in', '$ne'];
3600
+ sort: 'NONE';
3601
+ },
3602
+ {
3603
+ fields: ['parentComment._id'];
3604
+ operators: ['$eq', '$in', '$ne'];
3605
+ sort: 'NONE';
3606
+ },
3607
+ {
3608
+ fields: ['replyCount'];
3609
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
3610
+ sort: 'BOTH';
3611
+ },
3612
+ {
3613
+ fields: ['status'];
3614
+ operators: ['$eq', '$in', '$ne'];
3615
+ sort: 'NONE';
3616
+ },
3617
+ {
3618
+ fields: ['voteSummary.netVoteCount'];
3619
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
3620
+ sort: 'BOTH';
3621
+ },
3622
+ {
3623
+ fields: ['rating'];
3624
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
3625
+ sort: 'BOTH';
3626
+ },
3627
+ {
3628
+ fields: ['reactionSummary.total'];
3629
+ operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];
3630
+ sort: 'BOTH';
3631
+ },
3632
+ {
3633
+ fields: ['marked'];
3634
+ operators: ['$eq', '$ne'];
3635
+ sort: 'BOTH';
3636
+ }
3637
+ ];
3638
+ }
3639
+ type CommonQueryWithEntityContext = Query<Comment, CommentQuerySpec>;
3640
+ type CommentQuery = {
3641
+ /**
3642
+ Cursor paging options.
3643
+
3644
+ Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
3645
+ */
3646
+ cursorPaging?: {
3647
+ /**
3648
+ Maximum number of items to return in the results.
3649
+ @max: 100
3650
+ */
3651
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
3652
+ /**
3653
+ Pointer to the next or previous page in the list of results.
3654
+
3655
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
3656
+ Not relevant for the first request.
3657
+ @maxLength: 16000
3658
+ */
3659
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
3660
+ };
3661
+ /**
3662
+ Filter object.
3663
+
3664
+ Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
3665
+ */
3666
+ filter?: CommonQueryWithEntityContext['filter'] | null;
3667
+ /**
3668
+ Sort object.
3669
+
3670
+ Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
3671
+ @maxSize: 5
3672
+ */
3673
+ sort?: {
3674
+ /**
3675
+ Name of the field to sort by.
3676
+ @maxLength: 512
3677
+ */
3678
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
3679
+ /**
3680
+ Sort order.
3681
+ */
3682
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
3683
+ }[];
3684
+ };
3556
3685
  /**
3557
3686
  * Sets `marked` to `TRUE` to mark a comment.
3558
3687
  *
@@ -3776,4 +3905,4 @@ interface BulkMoveCommentByFilterOptions {
3776
3905
  destination?: Destination;
3777
3906
  }
3778
3907
 
3779
- export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type Attachment, type AttachmentMediaOneOf, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeleteCommentOptions, type BulkDeleteCommentRequest, type BulkDeleteCommentResponse, type BulkHideCommentOptions, type BulkHideCommentRequest, type BulkHideCommentResponse, type BulkModerateDraftContentOptions, type BulkModerateDraftContentRequest, type BulkModerateDraftContentResponse, type BulkMoveCommentByFilterOptions, type BulkMoveCommentByFilterRequest, type BulkMoveCommentByFilterResponse, type BulkPublishCommentOptions, type BulkPublishCommentRequest, type BulkPublishCommentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type Comment, type CommentAuthor, type CommentAuthorIdentityOneOf, type CommentContent, type CommentContentChanged, type CommentContentChangedEnvelope, type CommentCreatedEnvelope, type CommentDeleted, type CommentDeletedEnvelope, type CommentHidden, type CommentHiddenEnvelope, type CommentMarked, type CommentMarkedEnvelope, type CommentModerated, type CommentMoved, type CommentMovedEnvelope, type CommentPublished, type CommentPublishedEnvelope, type CommentReactionSummary, type CommentResourceCommentCountChangedEnvelope, type CommentSort, type CommentUnmarked, type CommentUnmarkedEnvelope, type CommentUpdatedEnvelope, type CommentsQueryBuilder, type CommentsQueryResult, type ContactDetails, type ContentAuthor, type ContentAuthorAuthorOneOf, type CountCommentsApplicationErrors, type CountCommentsOptions, type CountCommentsRequest, type CountCommentsResponse, type CreateCommentApplicationErrors, type CreateCommentRequest, type CreateCommentResponse, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteCommentRequest, type DeleteCommentResponse, type Design, type Destination, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetCommentRequest, type GetCommentResponse, type GetCommentThreadOptions, type GetCommentThreadRequest, type GetCommentThreadResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type HideCommentRequest, type HideCommentResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InternalDocument, type InternalDocumentUpdateByFilterOperation, type InternalDocumentUpdateOperation, type InternalUpdateExistingOperation, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListCommentsByResourceCursorPaging, type ListCommentsByResourceOptions, type ListCommentsByResourceRequest, type ListCommentsByResourceResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkCommentRequest, type MarkCommentResponse, type Media, type Mention, type MentionData, type MentionIdentityOneOf, type MessageEnvelope, type Metadata, type ModerateDraftContentOptions, type ModerateDraftContentRequest, type ModerateDraftContentResponse, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type ParagraphData, type ParentComment, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishCommentRequest, type PublishCommentResponse, type QueryCommentsOptions, type QueryCommentsRequest, type QueryCommentsResponse, type Rel, type RepliesListResponse, type ReplySort, ReplySortOrder, type ReplySortOrderWithLiterals, Resizing, type ResizingWithLiterals, type ResourceCommentCountChanged, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type UnmarkCommentRequest, type UnmarkCommentResponse, type UpdateComment, type UpdateCommentApplicationErrors, type UpdateCommentRequest, type UpdateCommentResponse, type UpdateInternalDocumentsEvent, type UpdateInternalDocumentsEventOperationOneOf, type VersionedDeleteByIdsOperation, type VersionedDocumentId, type VersionedDocumentUpdateOperation, VersioningMode, type VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, type VoteSummary, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, typedQueryComments, unmarkComment, updateComment };
3908
+ export { Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type Attachment, type AttachmentMediaOneOf, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkDeleteCommentOptions, type BulkDeleteCommentRequest, type BulkDeleteCommentResponse, type BulkHideCommentOptions, type BulkHideCommentRequest, type BulkHideCommentResponse, type BulkModerateDraftContentOptions, type BulkModerateDraftContentRequest, type BulkModerateDraftContentResponse, type BulkMoveCommentByFilterOptions, type BulkMoveCommentByFilterRequest, type BulkMoveCommentByFilterResponse, type BulkPublishCommentOptions, type BulkPublishCommentRequest, type BulkPublishCommentResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type Comment, type CommentAuthor, type CommentAuthorIdentityOneOf, type CommentContent, type CommentContentChanged, type CommentContentChangedEnvelope, type CommentCreatedEnvelope, type CommentDeleted, type CommentDeletedEnvelope, type CommentHidden, type CommentHiddenEnvelope, type CommentMarked, type CommentMarkedEnvelope, type CommentModerated, type CommentMoved, type CommentMovedEnvelope, type CommentPublished, type CommentPublishedEnvelope, type CommentQuery, type CommentQuerySpec, type CommentReactionSummary, type CommentResourceCommentCountChangedEnvelope, type CommentSort, type CommentUnmarked, type CommentUnmarkedEnvelope, type CommentUpdatedEnvelope, type CommentsQueryBuilder, type CommentsQueryResult, type CommonQueryWithEntityContext, type ContactDetails, type ContentAuthor, type ContentAuthorAuthorOneOf, type CountCommentsApplicationErrors, type CountCommentsOptions, type CountCommentsRequest, type CountCommentsResponse, type CreateCommentApplicationErrors, type CreateCommentRequest, type CreateCommentResponse, Crop, type CropWithLiterals, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteCommentRequest, type DeleteCommentResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Destination, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetCommentRequest, type GetCommentResponse, type GetCommentThreadOptions, type GetCommentThreadRequest, type GetCommentThreadResponse, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type HideCommentRequest, type HideCommentResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type InternalDocument, type InternalDocumentUpdateByFilterOperation, type InternalDocumentUpdateOperation, type InternalUpdateExistingOperation, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListCommentsByResourceCursorPaging, type ListCommentsByResourceOptions, type ListCommentsByResourceRequest, type ListCommentsByResourceResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkCommentRequest, type MarkCommentResponse, type Media, type Mention, type MentionData, type MentionIdentityOneOf, type MessageEnvelope, type Metadata, type ModerateDraftContentOptions, type ModerateDraftContentRequest, type ModerateDraftContentResponse, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, Order, type OrderWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type ParagraphData, type ParentComment, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type PublishCommentRequest, type PublishCommentResponse, type QueryCommentsOptions, type QueryCommentsRequest, type QueryCommentsResponse, type Rel, type RepliesListResponse, type ReplySort, ReplySortOrder, type ReplySortOrderWithLiterals, Resizing, type ResizingWithLiterals, type ResourceCommentCountChanged, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type UnmarkCommentRequest, type UnmarkCommentResponse, type UpdateComment, type UpdateCommentApplicationErrors, type UpdateCommentRequest, type UpdateCommentResponse, type UpdateInternalDocumentsEvent, type UpdateInternalDocumentsEventOperationOneOf, type VersionedDeleteByIdsOperation, type VersionedDocumentId, type VersionedDocumentUpdateOperation, VersioningMode, type VersioningModeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, type VoteSummary, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkDeleteComment, bulkHideComment, bulkModerateDraftContent, bulkMoveCommentByFilter, bulkPublishComment, countComments, createComment, deleteComment, getComment, getCommentThread, hideComment, listCommentsByResource, markComment, moderateDraftContent, onCommentContentChanged, onCommentCreated, onCommentDeleted, onCommentHidden, onCommentMarked, onCommentMoved, onCommentPublished, onCommentResourceCommentCountChanged, onCommentUnmarked, onCommentUpdated, publishComment, queryComments, typedQueryComments, unmarkComment, updateComment };
@@ -28,6 +28,7 @@ __export(index_typings_exports, {
28
28
  ButtonDataType: () => ButtonDataType,
29
29
  Crop: () => Crop,
30
30
  DecorationType: () => DecorationType,
31
+ DesignTarget: () => DesignTarget,
31
32
  Direction: () => Direction,
32
33
  DividerDataAlignment: () => DividerDataAlignment,
33
34
  FontType: () => FontType,
@@ -3073,6 +3074,11 @@ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
3073
3074
  ResponsivenessBehaviour2["WRAP"] = "WRAP";
3074
3075
  return ResponsivenessBehaviour2;
3075
3076
  })(ResponsivenessBehaviour || {});
3077
+ var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
3078
+ DesignTarget2["LAYOUT"] = "LAYOUT";
3079
+ DesignTarget2["CELL"] = "CELL";
3080
+ return DesignTarget2;
3081
+ })(DesignTarget || {});
3076
3082
  var Status = /* @__PURE__ */ ((Status2) => {
3077
3083
  Status2["UNKNOWN"] = "UNKNOWN";
3078
3084
  Status2["PUBLISHED"] = "PUBLISHED";
@@ -3081,18 +3087,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
3081
3087
  Status2["HIDDEN"] = "HIDDEN";
3082
3088
  return Status2;
3083
3089
  })(Status || {});
3084
- var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3085
- VersioningMode2["DEFAULT"] = "DEFAULT";
3086
- VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3087
- VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3088
- return VersioningMode2;
3089
- })(VersioningMode || {});
3090
3090
  var Action = /* @__PURE__ */ ((Action2) => {
3091
3091
  Action2["UNKNOWN"] = "UNKNOWN";
3092
3092
  Action2["APPROVE"] = "APPROVE";
3093
3093
  Action2["REJECT"] = "REJECT";
3094
3094
  return Action2;
3095
3095
  })(Action || {});
3096
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3097
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3098
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3099
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
3100
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3101
+ WebhookIdentityType2["APP"] = "APP";
3102
+ return WebhookIdentityType2;
3103
+ })(WebhookIdentityType || {});
3104
+ var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
3105
+ VersioningMode2["DEFAULT"] = "DEFAULT";
3106
+ VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
3107
+ VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
3108
+ return VersioningMode2;
3109
+ })(VersioningMode || {});
3096
3110
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3097
3111
  SortOrder2["ASC"] = "ASC";
3098
3112
  SortOrder2["DESC"] = "DESC";
@@ -3116,14 +3130,6 @@ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
3116
3130
  ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
3117
3131
  return ReplySortOrder2;
3118
3132
  })(ReplySortOrder || {});
3119
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3120
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3121
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3122
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3123
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3124
- WebhookIdentityType2["APP"] = "APP";
3125
- return WebhookIdentityType2;
3126
- })(WebhookIdentityType || {});
3127
3133
  async function createComment2(comment) {
3128
3134
  const { httpClient, sideEffects } = arguments[1];
3129
3135
  const payload = (0, import_transform_paths2.transformPaths)(
@@ -4163,6 +4169,7 @@ async function bulkMoveCommentByFilter2(appId, options) {
4163
4169
  ButtonDataType,
4164
4170
  Crop,
4165
4171
  DecorationType,
4172
+ DesignTarget,
4166
4173
  Direction,
4167
4174
  DividerDataAlignment,
4168
4175
  FontType,