@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.
- package/build/cjs/index.d.ts +7 -7
- package/build/cjs/index.js +305 -171
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +294 -165
- package/build/cjs/index.typings.js +21 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +163 -151
- package/build/cjs/meta.js +21 -14
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -7
- package/build/es/index.mjs +304 -171
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +294 -165
- package/build/es/index.typings.mjs +20 -14
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +163 -151
- package/build/es/meta.mjs +20 -14
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -7
- package/build/internal/cjs/index.js +305 -171
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +294 -165
- package/build/internal/cjs/index.typings.js +21 -14
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +163 -151
- package/build/internal/cjs/meta.js +21 -14
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +7 -7
- package/build/internal/es/index.mjs +304 -171
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +294 -165
- package/build/internal/es/index.typings.mjs +20 -14
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +163 -151
- package/build/internal/es/meta.mjs +20 -14
- package/build/internal/es/meta.mjs.map +1 -1
- 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:
|
|
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 };
|
|
@@ -2984,6 +2984,11 @@ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
|
|
|
2984
2984
|
ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
2985
2985
|
return ResponsivenessBehaviour2;
|
|
2986
2986
|
})(ResponsivenessBehaviour || {});
|
|
2987
|
+
var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
|
|
2988
|
+
DesignTarget2["LAYOUT"] = "LAYOUT";
|
|
2989
|
+
DesignTarget2["CELL"] = "CELL";
|
|
2990
|
+
return DesignTarget2;
|
|
2991
|
+
})(DesignTarget || {});
|
|
2987
2992
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
2988
2993
|
Status2["UNKNOWN"] = "UNKNOWN";
|
|
2989
2994
|
Status2["PUBLISHED"] = "PUBLISHED";
|
|
@@ -2992,18 +2997,26 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
2992
2997
|
Status2["HIDDEN"] = "HIDDEN";
|
|
2993
2998
|
return Status2;
|
|
2994
2999
|
})(Status || {});
|
|
2995
|
-
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
2996
|
-
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
2997
|
-
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
2998
|
-
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
2999
|
-
return VersioningMode2;
|
|
3000
|
-
})(VersioningMode || {});
|
|
3001
3000
|
var Action = /* @__PURE__ */ ((Action2) => {
|
|
3002
3001
|
Action2["UNKNOWN"] = "UNKNOWN";
|
|
3003
3002
|
Action2["APPROVE"] = "APPROVE";
|
|
3004
3003
|
Action2["REJECT"] = "REJECT";
|
|
3005
3004
|
return Action2;
|
|
3006
3005
|
})(Action || {});
|
|
3006
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3007
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3008
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3009
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3010
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3011
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
3012
|
+
return WebhookIdentityType2;
|
|
3013
|
+
})(WebhookIdentityType || {});
|
|
3014
|
+
var VersioningMode = /* @__PURE__ */ ((VersioningMode2) => {
|
|
3015
|
+
VersioningMode2["DEFAULT"] = "DEFAULT";
|
|
3016
|
+
VersioningMode2["GREATER_THAN"] = "GREATER_THAN";
|
|
3017
|
+
VersioningMode2["GREATER_OR_EQUAL"] = "GREATER_OR_EQUAL";
|
|
3018
|
+
return VersioningMode2;
|
|
3019
|
+
})(VersioningMode || {});
|
|
3007
3020
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
3008
3021
|
SortOrder2["ASC"] = "ASC";
|
|
3009
3022
|
SortOrder2["DESC"] = "DESC";
|
|
@@ -3027,14 +3040,6 @@ var ReplySortOrder = /* @__PURE__ */ ((ReplySortOrder2) => {
|
|
|
3027
3040
|
ReplySortOrder2["REACTION_COUNT"] = "REACTION_COUNT";
|
|
3028
3041
|
return ReplySortOrder2;
|
|
3029
3042
|
})(ReplySortOrder || {});
|
|
3030
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3031
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3032
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3033
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3034
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3035
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
3036
|
-
return WebhookIdentityType2;
|
|
3037
|
-
})(WebhookIdentityType || {});
|
|
3038
3043
|
async function createComment2(comment) {
|
|
3039
3044
|
const { httpClient, sideEffects } = arguments[1];
|
|
3040
3045
|
const payload = transformPaths2(
|
|
@@ -4073,6 +4078,7 @@ export {
|
|
|
4073
4078
|
ButtonDataType,
|
|
4074
4079
|
Crop,
|
|
4075
4080
|
DecorationType,
|
|
4081
|
+
DesignTarget,
|
|
4076
4082
|
Direction,
|
|
4077
4083
|
DividerDataAlignment,
|
|
4078
4084
|
FontType,
|