@liveblocks/node 3.21.0-exp1 → 3.21.0-private1
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Permission, Json, DFMD, FeedCreateMetadata, RoomPermissions, RoomAccesses, OptionalTupleUnless, BaseUserMeta, DU, PartialUnless, UpdateRoomAccesses, DE, JsonObject, PlainLsonObject, ToJson, DS, QueryMetadata, DTM, ThreadData, DCM, UserSubscriptionData, CommentData, BaseMetadata, CommentBody, Patchable, SubscriptionData, CommentUserReaction, InboxNotificationData, UserRoomSubscriptionSettings, RoomSubscriptionSettings, KDAD, DAD, NotificationSettings, PartialNotificationSettings, GroupScopes, GroupData, LiveObject, Awaitable, DFM, Feed, FeedUpdateMetadata, FeedMessage, NotificationChannel } from '@liveblocks/core';
|
|
1
|
+
import { Permission, Json, DFMD, FeedCreateMetadata, RoomPermissions, RoomAccesses, OptionalTupleUnless, BaseUserMeta, DU, PartialUnless, UpdateRoomAccesses, DE, JsonObject, PlainLsonObject, ToJson, DS, QueryMetadata, DTM, ThreadVisibility, ThreadData, DCM, UserSubscriptionData, CommentData, BaseMetadata, CommentBody, Patchable, SubscriptionData, CommentUserReaction, InboxNotificationData, UserRoomSubscriptionSettings, RoomSubscriptionSettings, KDAD, DAD, NotificationSettings, PartialNotificationSettings, GroupScopes, GroupData, LiveObject, Awaitable, DFM, Feed, FeedUpdateMetadata, FeedMessage, NotificationChannel } from '@liveblocks/core';
|
|
2
2
|
export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveMap, LiveObject, LiveStructure, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, RoomAccesses, RoomPermissions, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionsFromCommentBody, isNotificationChannelEnabled, stringifyCommentBody } from '@liveblocks/core';
|
|
3
3
|
import { IncomingHttpHeaders } from 'http';
|
|
4
4
|
|
|
@@ -105,6 +105,7 @@ type AttachmentWithUrl = {
|
|
|
105
105
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
106
106
|
roomId: string;
|
|
107
107
|
data: {
|
|
108
|
+
visibility?: ThreadVisibility;
|
|
108
109
|
comment: {
|
|
109
110
|
userId: string;
|
|
110
111
|
createdAt?: Date;
|
|
@@ -764,7 +765,7 @@ declare class Liveblocks {
|
|
|
764
765
|
* Gets all the threads in a room.
|
|
765
766
|
*
|
|
766
767
|
* @param params.roomId The room ID to get the threads from.
|
|
767
|
-
* @param params.query The query to filter threads by. It is based on our query language and can filter by metadata.
|
|
768
|
+
* @param params.query The query to filter threads by. It is based on our query language and can filter by visibility, metadata, and resolved status.
|
|
768
769
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
769
770
|
* @returns A list of threads.
|
|
770
771
|
*/
|
|
@@ -776,7 +777,7 @@ declare class Liveblocks {
|
|
|
776
777
|
* @example
|
|
777
778
|
* ```
|
|
778
779
|
* {
|
|
779
|
-
* query: "metadata['organization']^'liveblocks:' AND metadata['status']:'open' AND metadata['pinned']:false AND metadata['priority']:3 AND resolved:true"
|
|
780
|
+
* query: "metadata['organization']^'liveblocks:' AND metadata['status']:'open' AND metadata['pinned']:false AND metadata['priority']:3 AND resolved:true AND visibility:'private'"
|
|
780
781
|
* }
|
|
781
782
|
* ```
|
|
782
783
|
* @example
|
|
@@ -791,7 +792,8 @@ declare class Liveblocks {
|
|
|
791
792
|
* startsWith: "liveblocks:"
|
|
792
793
|
* }
|
|
793
794
|
* },
|
|
794
|
-
* resolved: true
|
|
795
|
+
* resolved: true,
|
|
796
|
+
* visibility: "private"
|
|
795
797
|
* }
|
|
796
798
|
* }
|
|
797
799
|
* ```
|
|
@@ -799,6 +801,7 @@ declare class Liveblocks {
|
|
|
799
801
|
query?: string | {
|
|
800
802
|
metadata?: Partial<QueryMetadata<TM>>;
|
|
801
803
|
resolved?: boolean;
|
|
804
|
+
visibility?: ThreadVisibility;
|
|
802
805
|
};
|
|
803
806
|
}, options?: RequestOptions): Promise<{
|
|
804
807
|
data: ThreadData<TM, CM>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Permission, Json, DFMD, FeedCreateMetadata, RoomPermissions, RoomAccesses, OptionalTupleUnless, BaseUserMeta, DU, PartialUnless, UpdateRoomAccesses, DE, JsonObject, PlainLsonObject, ToJson, DS, QueryMetadata, DTM, ThreadData, DCM, UserSubscriptionData, CommentData, BaseMetadata, CommentBody, Patchable, SubscriptionData, CommentUserReaction, InboxNotificationData, UserRoomSubscriptionSettings, RoomSubscriptionSettings, KDAD, DAD, NotificationSettings, PartialNotificationSettings, GroupScopes, GroupData, LiveObject, Awaitable, DFM, Feed, FeedUpdateMetadata, FeedMessage, NotificationChannel } from '@liveblocks/core';
|
|
1
|
+
import { Permission, Json, DFMD, FeedCreateMetadata, RoomPermissions, RoomAccesses, OptionalTupleUnless, BaseUserMeta, DU, PartialUnless, UpdateRoomAccesses, DE, JsonObject, PlainLsonObject, ToJson, DS, QueryMetadata, DTM, ThreadVisibility, ThreadData, DCM, UserSubscriptionData, CommentData, BaseMetadata, CommentBody, Patchable, SubscriptionData, CommentUserReaction, InboxNotificationData, UserRoomSubscriptionSettings, RoomSubscriptionSettings, KDAD, DAD, NotificationSettings, PartialNotificationSettings, GroupScopes, GroupData, LiveObject, Awaitable, DFM, Feed, FeedUpdateMetadata, FeedMessage, NotificationChannel } from '@liveblocks/core';
|
|
2
2
|
export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveMap, LiveObject, LiveStructure, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, RoomAccesses, RoomPermissions, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionsFromCommentBody, isNotificationChannelEnabled, stringifyCommentBody } from '@liveblocks/core';
|
|
3
3
|
import { IncomingHttpHeaders } from 'http';
|
|
4
4
|
|
|
@@ -105,6 +105,7 @@ type AttachmentWithUrl = {
|
|
|
105
105
|
type CreateThreadOptions<TM extends BaseMetadata, CM extends BaseMetadata> = {
|
|
106
106
|
roomId: string;
|
|
107
107
|
data: {
|
|
108
|
+
visibility?: ThreadVisibility;
|
|
108
109
|
comment: {
|
|
109
110
|
userId: string;
|
|
110
111
|
createdAt?: Date;
|
|
@@ -764,7 +765,7 @@ declare class Liveblocks {
|
|
|
764
765
|
* Gets all the threads in a room.
|
|
765
766
|
*
|
|
766
767
|
* @param params.roomId The room ID to get the threads from.
|
|
767
|
-
* @param params.query The query to filter threads by. It is based on our query language and can filter by metadata.
|
|
768
|
+
* @param params.query The query to filter threads by. It is based on our query language and can filter by visibility, metadata, and resolved status.
|
|
768
769
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
769
770
|
* @returns A list of threads.
|
|
770
771
|
*/
|
|
@@ -776,7 +777,7 @@ declare class Liveblocks {
|
|
|
776
777
|
* @example
|
|
777
778
|
* ```
|
|
778
779
|
* {
|
|
779
|
-
* query: "metadata['organization']^'liveblocks:' AND metadata['status']:'open' AND metadata['pinned']:false AND metadata['priority']:3 AND resolved:true"
|
|
780
|
+
* query: "metadata['organization']^'liveblocks:' AND metadata['status']:'open' AND metadata['pinned']:false AND metadata['priority']:3 AND resolved:true AND visibility:'private'"
|
|
780
781
|
* }
|
|
781
782
|
* ```
|
|
782
783
|
* @example
|
|
@@ -791,7 +792,8 @@ declare class Liveblocks {
|
|
|
791
792
|
* startsWith: "liveblocks:"
|
|
792
793
|
* }
|
|
793
794
|
* },
|
|
794
|
-
* resolved: true
|
|
795
|
+
* resolved: true,
|
|
796
|
+
* visibility: "private"
|
|
795
797
|
* }
|
|
796
798
|
* }
|
|
797
799
|
* ```
|
|
@@ -799,6 +801,7 @@ declare class Liveblocks {
|
|
|
799
801
|
query?: string | {
|
|
800
802
|
metadata?: Partial<QueryMetadata<TM>>;
|
|
801
803
|
resolved?: boolean;
|
|
804
|
+
visibility?: ThreadVisibility;
|
|
802
805
|
};
|
|
803
806
|
}, options?: RequestOptions): Promise<{
|
|
804
807
|
data: ThreadData<TM, CM>[];
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { detectDupes } from "@liveblocks/core";
|
|
|
3
3
|
|
|
4
4
|
// src/version.ts
|
|
5
5
|
var PKG_NAME = "@liveblocks/node";
|
|
6
|
-
var PKG_VERSION = "3.21.0-
|
|
6
|
+
var PKG_VERSION = "3.21.0-private1";
|
|
7
7
|
var PKG_FORMAT = "esm";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
@@ -968,7 +968,7 @@ var Liveblocks = class {
|
|
|
968
968
|
* Gets all the threads in a room.
|
|
969
969
|
*
|
|
970
970
|
* @param params.roomId The room ID to get the threads from.
|
|
971
|
-
* @param params.query The query to filter threads by. It is based on our query language and can filter by metadata.
|
|
971
|
+
* @param params.query The query to filter threads by. It is based on our query language and can filter by visibility, metadata, and resolved status.
|
|
972
972
|
* @param options.signal (optional) An abort signal to cancel the request.
|
|
973
973
|
* @returns A list of threads.
|
|
974
974
|
*/
|