@wix/auto_sdk_blog_likes 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +64 -0
  2. package/build/cjs/index.js +517 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +629 -0
  5. package/build/cjs/index.typings.js +413 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +440 -0
  8. package/build/cjs/meta.js +333 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +64 -0
  11. package/build/es/index.mjs +485 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +629 -0
  14. package/build/es/index.typings.mjs +382 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +440 -0
  17. package/build/es/meta.mjs +300 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +64 -0
  21. package/build/internal/cjs/index.js +517 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +629 -0
  24. package/build/internal/cjs/index.typings.js +413 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +440 -0
  27. package/build/internal/cjs/meta.js +333 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +64 -0
  30. package/build/internal/es/index.mjs +485 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +629 -0
  33. package/build/internal/es/index.typings.mjs +382 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +440 -0
  36. package/build/internal/es/meta.mjs +300 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,629 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /**
4
+ * A like represents a user's positive reaction to blog content.
5
+ *
6
+ * Likes are associated with specific blog content using their FQDN (fully qualified domain name) and entity ID,
7
+ * allowing likes to be created for various types of blog content such as posts or comments.
8
+ */
9
+ interface Like {
10
+ /**
11
+ * Like ID.
12
+ * @immutable
13
+ * @format GUID
14
+ */
15
+ _id?: string | null;
16
+ /**
17
+ * Date and time the like was created.
18
+ * @readonly
19
+ */
20
+ _createdDate?: Date | null;
21
+ /**
22
+ * ID of the specific blog content being liked, such as a blog post or comment.
23
+ * @format GUID
24
+ */
25
+ entityId?: string | null;
26
+ /**
27
+ * Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.
28
+ * @maxLength 256
29
+ */
30
+ fqdn?: string | null;
31
+ }
32
+ interface CreateLikeRequest {
33
+ /** Like to create. */
34
+ like?: Like;
35
+ }
36
+ interface CreateLikeResponse {
37
+ /** Created like. */
38
+ like?: Like;
39
+ }
40
+ interface GetLikeRequest {
41
+ /**
42
+ * Like ID.
43
+ * @format GUID
44
+ */
45
+ likeId: string | null;
46
+ }
47
+ interface GetLikeResponse {
48
+ /** Retrieved like. */
49
+ like?: Like;
50
+ }
51
+ interface GetLikeByFqdnAndEntityIdRequest {
52
+ /**
53
+ * Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.
54
+ * @maxLength 256
55
+ */
56
+ fqdn?: string | null;
57
+ /**
58
+ * ID of the liked entity.
59
+ * @format GUID
60
+ */
61
+ entityId?: string | null;
62
+ }
63
+ interface GetLikeByFqdnAndEntityIdResponse {
64
+ /** Retrieved like. */
65
+ like?: Like;
66
+ }
67
+ interface QueryLikesRequest {
68
+ /** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */
69
+ query?: CursorQuery;
70
+ }
71
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
72
+ /**
73
+ * Cursor paging options.
74
+ *
75
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
76
+ */
77
+ cursorPaging?: CursorPaging;
78
+ /**
79
+ * Filter object.
80
+ *
81
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
82
+ */
83
+ filter?: Record<string, any> | null;
84
+ /**
85
+ * Sort object.
86
+ *
87
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
88
+ * @maxSize 5
89
+ */
90
+ sort?: Sorting[];
91
+ }
92
+ /** @oneof */
93
+ interface CursorQueryPagingMethodOneOf {
94
+ /**
95
+ * Cursor paging options.
96
+ *
97
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
98
+ */
99
+ cursorPaging?: CursorPaging;
100
+ }
101
+ interface Sorting {
102
+ /**
103
+ * Name of the field to sort by.
104
+ * @maxLength 512
105
+ */
106
+ fieldName?: string;
107
+ /** Sort order. */
108
+ order?: SortOrderWithLiterals;
109
+ }
110
+ declare enum SortOrder {
111
+ ASC = "ASC",
112
+ DESC = "DESC"
113
+ }
114
+ /** @enumType */
115
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
116
+ interface CursorPaging {
117
+ /**
118
+ * Maximum number of items to return in the results.
119
+ * @max 100
120
+ */
121
+ limit?: number | null;
122
+ /**
123
+ * Pointer to the next or previous page in the list of results.
124
+ *
125
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
126
+ * Not relevant for the first request.
127
+ * @maxLength 16000
128
+ */
129
+ cursor?: string | null;
130
+ }
131
+ interface QueryLikesResponse {
132
+ /** Retrieved likes. */
133
+ likes?: Like[];
134
+ /** Paging metadata. */
135
+ pagingMetadata?: CursorPagingMetadata;
136
+ }
137
+ interface CursorPagingMetadata {
138
+ /** Number of items returned in current page. */
139
+ count?: number | null;
140
+ /** Cursor strings that point to the next page, previous page, or both. */
141
+ cursors?: Cursors;
142
+ /**
143
+ * Whether there are more pages to retrieve following the current page.
144
+ *
145
+ * + `true`: Another page of results can be retrieved.
146
+ * + `false`: This is the last page.
147
+ */
148
+ hasNext?: boolean | null;
149
+ }
150
+ interface Cursors {
151
+ /**
152
+ * Cursor string pointing to the next page in the list of results.
153
+ * @maxLength 16000
154
+ */
155
+ next?: string | null;
156
+ /**
157
+ * Cursor pointing to the previous page in the list of results.
158
+ * @maxLength 16000
159
+ */
160
+ prev?: string | null;
161
+ }
162
+ interface CountLikesRequest {
163
+ /**
164
+ * Fully qualified domain name of the liked entity. For example, `wix.blog.v3.post`.
165
+ * @maxLength 256
166
+ */
167
+ fqdn?: string | null;
168
+ /**
169
+ * User identity ID.
170
+ * @format GUID
171
+ */
172
+ identityId?: string | null;
173
+ }
174
+ interface CountLikesResponse {
175
+ /** Number of likes. */
176
+ count?: number;
177
+ }
178
+ interface DeleteLikeRequest {
179
+ /**
180
+ * ID of the like to delete.
181
+ * @format GUID
182
+ */
183
+ likeId: string | null;
184
+ }
185
+ interface DeleteLikeResponse {
186
+ }
187
+ interface DeleteLikeByFqdnAndEntityIdRequest {
188
+ /**
189
+ * Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.
190
+ * @maxLength 256
191
+ */
192
+ fqdn: string | null;
193
+ /**
194
+ * ID of the specific blog content being liked.
195
+ * @format GUID
196
+ */
197
+ entityId: string | null;
198
+ }
199
+ interface DeleteLikeByFqdnAndEntityIdResponse {
200
+ }
201
+ interface BulkCreateLikesMigrationRequest {
202
+ /**
203
+ * Likes to create.
204
+ * @minSize 1
205
+ * @maxSize 50
206
+ */
207
+ likes?: MigrationLike[];
208
+ }
209
+ /** Like object used for migration purposes with additional user identity fields. */
210
+ interface MigrationLike {
211
+ /** Date and time the like was created. */
212
+ _createdDate?: Date | null;
213
+ /**
214
+ * ID of the liked entity.
215
+ * @format GUID
216
+ */
217
+ entityId?: string | null;
218
+ /**
219
+ * ID of the member who created the like.
220
+ * @format GUID
221
+ */
222
+ memberId?: string | null;
223
+ /**
224
+ * ID of the anonymous user who created the like.
225
+ * @format GUID
226
+ */
227
+ anonymousUserId?: string | null;
228
+ }
229
+ interface BulkCreateLikesMigrationResponse {
230
+ /** Bulk action metadata. */
231
+ bulkActionMetadata?: BulkActionMetadata;
232
+ /** Metadata for each created like. */
233
+ itemMetadata?: ItemMetadata[];
234
+ }
235
+ interface BulkActionMetadata {
236
+ /** Number of items that were successfully processed. */
237
+ totalSuccesses?: number;
238
+ /** Number of items that couldn't be processed. */
239
+ totalFailures?: number;
240
+ /** Number of failures without details because detailed failure threshold was exceeded. */
241
+ undetailedFailures?: number;
242
+ }
243
+ interface ItemMetadata {
244
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
245
+ _id?: string | null;
246
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
247
+ originalIndex?: number;
248
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
249
+ success?: boolean;
250
+ /** Details about the error in case of failure. */
251
+ error?: ApplicationError;
252
+ }
253
+ interface ApplicationError {
254
+ /** Error code. */
255
+ code?: string;
256
+ /** Description of the error. */
257
+ description?: string;
258
+ /** Data related to the error. */
259
+ data?: Record<string, any> | null;
260
+ }
261
+ interface CountLikesMigrationRequest {
262
+ }
263
+ interface CountLikesMigrationResponse {
264
+ /** Total number of likes. */
265
+ count?: number;
266
+ }
267
+ interface QueryLikesMigrationRequest {
268
+ /** Query options. */
269
+ query?: CursorQuery;
270
+ }
271
+ interface QueryLikesMigrationResponse {
272
+ /** Retrieved likes. */
273
+ likes?: Like[];
274
+ /** Paging metadata. */
275
+ pagingMetadata?: CursorPagingMetadata;
276
+ }
277
+ interface DomainEvent extends DomainEventBodyOneOf {
278
+ createdEvent?: EntityCreatedEvent;
279
+ updatedEvent?: EntityUpdatedEvent;
280
+ deletedEvent?: EntityDeletedEvent;
281
+ actionEvent?: ActionEvent;
282
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
283
+ _id?: string;
284
+ /**
285
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
286
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
287
+ */
288
+ entityFqdn?: string;
289
+ /**
290
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
291
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
292
+ */
293
+ slug?: string;
294
+ /** ID of the entity associated with the event. */
295
+ entityId?: string;
296
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
297
+ eventTime?: Date | null;
298
+ /**
299
+ * Whether the event was triggered as a result of a privacy regulation application
300
+ * (for example, GDPR).
301
+ */
302
+ triggeredByAnonymizeRequest?: boolean | null;
303
+ /** If present, indicates the action that triggered the event. */
304
+ originatedFrom?: string | null;
305
+ /**
306
+ * 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.
307
+ * 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.
308
+ */
309
+ entityEventSequence?: string | null;
310
+ }
311
+ /** @oneof */
312
+ interface DomainEventBodyOneOf {
313
+ createdEvent?: EntityCreatedEvent;
314
+ updatedEvent?: EntityUpdatedEvent;
315
+ deletedEvent?: EntityDeletedEvent;
316
+ actionEvent?: ActionEvent;
317
+ }
318
+ interface EntityCreatedEvent {
319
+ entity?: string;
320
+ }
321
+ interface RestoreInfo {
322
+ deletedDate?: Date | null;
323
+ }
324
+ interface EntityUpdatedEvent {
325
+ /**
326
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
327
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
328
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
329
+ */
330
+ currentEntity?: string;
331
+ }
332
+ interface EntityDeletedEvent {
333
+ /** Entity that was deleted. */
334
+ deletedEntity?: string | null;
335
+ }
336
+ interface ActionEvent {
337
+ body?: string;
338
+ }
339
+ interface Empty {
340
+ }
341
+ interface MessageEnvelope {
342
+ /**
343
+ * App instance ID.
344
+ * @format GUID
345
+ */
346
+ instanceId?: string | null;
347
+ /**
348
+ * Event type.
349
+ * @maxLength 150
350
+ */
351
+ eventType?: string;
352
+ /** The identification type and identity data. */
353
+ identity?: IdentificationData;
354
+ /** Stringify payload. */
355
+ data?: string;
356
+ }
357
+ interface IdentificationData extends IdentificationDataIdOneOf {
358
+ /**
359
+ * ID of a site visitor that has not logged in to the site.
360
+ * @format GUID
361
+ */
362
+ anonymousVisitorId?: string;
363
+ /**
364
+ * ID of a site visitor that has logged in to the site.
365
+ * @format GUID
366
+ */
367
+ memberId?: string;
368
+ /**
369
+ * ID of a Wix user (site owner, contributor, etc.).
370
+ * @format GUID
371
+ */
372
+ wixUserId?: string;
373
+ /**
374
+ * ID of an app.
375
+ * @format GUID
376
+ */
377
+ appId?: string;
378
+ /** @readonly */
379
+ identityType?: WebhookIdentityTypeWithLiterals;
380
+ }
381
+ /** @oneof */
382
+ interface IdentificationDataIdOneOf {
383
+ /**
384
+ * ID of a site visitor that has not logged in to the site.
385
+ * @format GUID
386
+ */
387
+ anonymousVisitorId?: string;
388
+ /**
389
+ * ID of a site visitor that has logged in to the site.
390
+ * @format GUID
391
+ */
392
+ memberId?: string;
393
+ /**
394
+ * ID of a Wix user (site owner, contributor, etc.).
395
+ * @format GUID
396
+ */
397
+ wixUserId?: string;
398
+ /**
399
+ * ID of an app.
400
+ * @format GUID
401
+ */
402
+ appId?: string;
403
+ }
404
+ declare enum WebhookIdentityType {
405
+ UNKNOWN = "UNKNOWN",
406
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
407
+ MEMBER = "MEMBER",
408
+ WIX_USER = "WIX_USER",
409
+ APP = "APP"
410
+ }
411
+ /** @enumType */
412
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
413
+ interface BaseEventMetadata {
414
+ /**
415
+ * App instance ID.
416
+ * @format GUID
417
+ */
418
+ instanceId?: string | null;
419
+ /**
420
+ * Event type.
421
+ * @maxLength 150
422
+ */
423
+ eventType?: string;
424
+ /** The identification type and identity data. */
425
+ identity?: IdentificationData;
426
+ }
427
+ interface EventMetadata extends BaseEventMetadata {
428
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
429
+ _id?: string;
430
+ /**
431
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
432
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
433
+ */
434
+ entityFqdn?: string;
435
+ /**
436
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
437
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
438
+ */
439
+ slug?: string;
440
+ /** ID of the entity associated with the event. */
441
+ entityId?: string;
442
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
443
+ eventTime?: Date | null;
444
+ /**
445
+ * Whether the event was triggered as a result of a privacy regulation application
446
+ * (for example, GDPR).
447
+ */
448
+ triggeredByAnonymizeRequest?: boolean | null;
449
+ /** If present, indicates the action that triggered the event. */
450
+ originatedFrom?: string | null;
451
+ /**
452
+ * 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.
453
+ * 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.
454
+ */
455
+ entityEventSequence?: string | null;
456
+ }
457
+ interface LikeCreatedEnvelope {
458
+ entity: Like;
459
+ metadata: EventMetadata;
460
+ }
461
+ /**
462
+ * Triggers when a like is created.
463
+ * @permissionScope Read Blog
464
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
465
+ * @permissionScope Manage Blog
466
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
467
+ * @permissionScope Read Draft Blog Posts
468
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
469
+ * @permissionId BLOG.LIKE_READ
470
+ * @webhook
471
+ * @eventType wix.blog.v1.like_created
472
+ * @slug created
473
+ * @documentationMaturity preview
474
+ */
475
+ declare function onLikeCreated(handler: (event: LikeCreatedEnvelope) => void | Promise<void>): void;
476
+ interface LikeDeletedEnvelope {
477
+ entity: Like;
478
+ metadata: EventMetadata;
479
+ }
480
+ /**
481
+ * Triggers when a like is deleted.
482
+ * @permissionScope Read Blog
483
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
484
+ * @permissionScope Manage Blog
485
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
486
+ * @permissionScope Read Draft Blog Posts
487
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
488
+ * @permissionId BLOG.LIKE_READ
489
+ * @webhook
490
+ * @eventType wix.blog.v1.like_deleted
491
+ * @slug deleted
492
+ * @documentationMaturity preview
493
+ */
494
+ declare function onLikeDeleted(handler: (event: LikeDeletedEnvelope) => void | Promise<void>): void;
495
+ /**
496
+ * Creates a like for blog content.
497
+ *
498
+ * >**Note:**
499
+ * >This method requires [visitor or member authentication](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/make-api-calls-with-oauth).
500
+ * @public
501
+ * @documentationMaturity preview
502
+ * @requiredField options.like.entityId
503
+ * @requiredField options.like.fqdn
504
+ * @permissionId BLOG.LIKE_CREATE
505
+ * @applicableIdentity APP
506
+ * @returns Created like.
507
+ * @fqn wix.blog.v1.LikeService.CreateLike
508
+ */
509
+ declare function createLike(options?: NonNullablePaths<CreateLikeOptions, `like.entityId` | `like.fqdn`, 3>): Promise<Like>;
510
+ interface CreateLikeOptions {
511
+ /** Like to create. */
512
+ like?: Like;
513
+ }
514
+ /**
515
+ * Retrieves a like.
516
+ * @param likeId - Like ID.
517
+ * @public
518
+ * @documentationMaturity preview
519
+ * @requiredField likeId
520
+ * @permissionId BLOG.LIKE_READ
521
+ * @applicableIdentity APP
522
+ * @returns Retrieved like.
523
+ * @fqn wix.blog.v1.LikeService.GetLike
524
+ */
525
+ declare function getLike(likeId: string): Promise<Like>;
526
+ /**
527
+ * Retrieves a list of likes, given the provided paging, filtering, and sorting.
528
+ *
529
+ * Up to 100 likes can be returned per request.
530
+ *
531
+ * Query Likes runs with these defaults, which you can override:
532
+ *
533
+ * - `createdDate` is sorted in `DESC` order
534
+ * - `paging.limit` is `50`
535
+ * - `paging.offset` is `0`
536
+ *
537
+ * For field support for filters and sorting, see [Supported Filters and Sorting](https://dev.wix.com/docs/api-reference/business-solutions/blog/likes/supported-filters-and-sorting).
538
+ *
539
+ * To learn how to query likes, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).
540
+ * @public
541
+ * @documentationMaturity preview
542
+ * @permissionId BLOG.LIKE_READ
543
+ * @applicableIdentity APP
544
+ * @fqn wix.blog.v1.LikeService.QueryLikes
545
+ */
546
+ declare function queryLikes(): LikesQueryBuilder;
547
+ interface QueryCursorResult {
548
+ cursors: Cursors;
549
+ hasNext: () => boolean;
550
+ hasPrev: () => boolean;
551
+ length: number;
552
+ pageSize: number;
553
+ }
554
+ interface LikesQueryResult extends QueryCursorResult {
555
+ items: Like[];
556
+ query: LikesQueryBuilder;
557
+ next: () => Promise<LikesQueryResult>;
558
+ prev: () => Promise<LikesQueryResult>;
559
+ }
560
+ interface LikesQueryBuilder {
561
+ /** @param propertyName - Property whose value is compared with `value`.
562
+ * @param value - Value to compare against.
563
+ * @documentationMaturity preview
564
+ */
565
+ eq: (propertyName: '_id' | 'entityId' | 'fqdn', value: any) => LikesQueryBuilder;
566
+ /** @param propertyName - Property whose value is compared with `value`.
567
+ * @param value - Value to compare against.
568
+ * @documentationMaturity preview
569
+ */
570
+ ne: (propertyName: '_id' | 'entityId' | 'fqdn', value: any) => LikesQueryBuilder;
571
+ /** @documentationMaturity preview */
572
+ in: (propertyName: '_id' | 'entityId' | 'fqdn', value: any) => LikesQueryBuilder;
573
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
574
+ * @documentationMaturity preview
575
+ */
576
+ limit: (limit: number) => LikesQueryBuilder;
577
+ /** @param cursor - A pointer to specific record
578
+ * @documentationMaturity preview
579
+ */
580
+ skipTo: (cursor: string) => LikesQueryBuilder;
581
+ /** @documentationMaturity preview */
582
+ find: () => Promise<LikesQueryResult>;
583
+ }
584
+ /**
585
+ * @hidden
586
+ * @fqn wix.blog.v1.LikeService.QueryLikes
587
+ * @requiredField query
588
+ */
589
+ declare function typedQueryLikes(query: CursorQuery): Promise<NonNullablePaths<QueryLikesResponse, `likes`, 2>>;
590
+ /**
591
+ * Deletes a like.
592
+ * @param likeId - ID of the like to delete.
593
+ * @public
594
+ * @documentationMaturity preview
595
+ * @requiredField likeId
596
+ * @permissionId BLOG.LIKE_DELETE
597
+ * @applicableIdentity APP
598
+ * @fqn wix.blog.v1.LikeService.DeleteLike
599
+ */
600
+ declare function deleteLike(likeId: string): Promise<void>;
601
+ /**
602
+ * Deletes a site visitors' or members' like by blog content FQDN and entity ID.
603
+ *
604
+ * >**Note:**
605
+ * >This method requires [visitor or member authentication](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/make-api-calls-with-oauth).
606
+ * @public
607
+ * @documentationMaturity preview
608
+ * @requiredField identifiers
609
+ * @requiredField identifiers.entityId
610
+ * @requiredField identifiers.fqdn
611
+ * @permissionId BLOG.LIKE_DELETE
612
+ * @applicableIdentity APP
613
+ * @fqn wix.blog.v1.LikeService.DeleteLikeByFqdnAndEntityId
614
+ */
615
+ declare function deleteLikeByFqdnAndEntityId(identifiers: NonNullablePaths<DeleteLikeByFqdnAndEntityIdIdentifiers, `entityId` | `fqdn`, 2>): Promise<void>;
616
+ interface DeleteLikeByFqdnAndEntityIdIdentifiers {
617
+ /**
618
+ * Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts.
619
+ * @maxLength 256
620
+ */
621
+ fqdn: string | null;
622
+ /**
623
+ * ID of the specific blog content being liked.
624
+ * @format GUID
625
+ */
626
+ entityId: string | null;
627
+ }
628
+
629
+ export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateLikesMigrationRequest, type BulkCreateLikesMigrationResponse, type CountLikesMigrationRequest, type CountLikesMigrationResponse, type CountLikesRequest, type CountLikesResponse, type CreateLikeOptions, type CreateLikeRequest, type CreateLikeResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteLikeByFqdnAndEntityIdIdentifiers, type DeleteLikeByFqdnAndEntityIdRequest, type DeleteLikeByFqdnAndEntityIdResponse, type DeleteLikeRequest, type DeleteLikeResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type GetLikeByFqdnAndEntityIdRequest, type GetLikeByFqdnAndEntityIdResponse, type GetLikeRequest, type GetLikeResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type Like, type LikeCreatedEnvelope, type LikeDeletedEnvelope, type LikesQueryBuilder, type LikesQueryResult, type MessageEnvelope, type MigrationLike, type QueryLikesMigrationRequest, type QueryLikesMigrationResponse, type QueryLikesRequest, type QueryLikesResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createLike, deleteLike, deleteLikeByFqdnAndEntityId, getLike, onLikeCreated, onLikeDeleted, queryLikes, typedQueryLikes };