@liveblocks/node 2.17.0-channels1 → 2.17.0-usrnotsettings1

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseUserMeta, DU, OptionalTupleUnless, PlainLsonObject, JsonObject, QueryMetadata, ThreadData, CommentData, CommentBody, Patchable, CommentUserReaction, InboxNotificationData, RoomNotificationSettings, KDAD, DAD, ChannelsNotificationSettings, PartialChannelsNotificationSettings, LsonObject, ToImmutable, PartialUnless, BaseMetadata, DE, DM, DS, NotificationChannel } from '@liveblocks/core';
2
- export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionedIdsFromCommentBody, isChannelNotificationSettingEnabled, stringifyCommentBody } from '@liveblocks/core';
1
+ import { BaseUserMeta, DU, OptionalTupleUnless, PlainLsonObject, JsonObject, QueryMetadata, ThreadData, CommentData, CommentBody, Patchable, CommentUserReaction, InboxNotificationData, RoomNotificationSettings, KDAD, DAD, UserNotificationSettings, PartialUserNotificationSettings, LsonObject, ToImmutable, PartialUnless, BaseMetadata, DE, DM, DS, NotificationChannel } from '@liveblocks/core';
2
+ export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionedIdsFromCommentBody, isNotificationChannelEnabled, stringifyCommentBody } from '@liveblocks/core';
3
3
  import { IncomingHttpHeaders } from 'http';
4
4
 
5
5
  declare const ALL_PERMISSIONS: readonly ["room:write", "room:read", "room:presence:write", "comments:write", "comments:read"];
@@ -756,26 +756,26 @@ declare class Liveblocks {
756
756
  userId: string;
757
757
  }): Promise<void>;
758
758
  /**
759
- * Get channels notification settings for a user for a project.
760
- * @param params.userId The user ID to get the channels notifications settings for.
759
+ * Get notification settings for a user for a project.
760
+ * @param params.userId The user ID to get the notifications settings for.
761
761
  */
762
- getChannelsNotificationSettings(params: {
762
+ getsNotificationSettings(params: {
763
763
  userId: string;
764
- }): Promise<ChannelsNotificationSettings>;
764
+ }): Promise<UserNotificationSettings>;
765
765
  /**
766
- * Update the user's channels notification settings.
767
- * @param params.userId The user ID to update the channels notification settings for.
768
- * @param params.data The new channels notification settings for the user.
766
+ * Update the user's notification settings.
767
+ * @param params.userId The user ID to update the notification settings for.
768
+ * @param params.data The new notification settings for the user.
769
769
  */
770
- updateChannelsNotificationSettings(params: {
770
+ updateNotificationSettings(params: {
771
771
  userId: string;
772
- data: PartialChannelsNotificationSettings;
773
- }): Promise<ChannelsNotificationSettings>;
772
+ data: PartialUserNotificationSettings;
773
+ }): Promise<UserNotificationSettings>;
774
774
  /**
775
- * Delete the user's channels notification settings
776
- * @param params.userId The user ID to update the channels notification settings for.
775
+ * Delete the user's notification settings
776
+ * @param params.userId The user ID to update the notification settings for.
777
777
  */
778
- deleteChannelsNotificationSettings(params: {
778
+ deleteNotificationSettings(params: {
779
779
  userId: string;
780
780
  }): Promise<void>;
781
781
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseUserMeta, DU, OptionalTupleUnless, PlainLsonObject, JsonObject, QueryMetadata, ThreadData, CommentData, CommentBody, Patchable, CommentUserReaction, InboxNotificationData, RoomNotificationSettings, KDAD, DAD, ChannelsNotificationSettings, PartialChannelsNotificationSettings, LsonObject, ToImmutable, PartialUnless, BaseMetadata, DE, DM, DS, NotificationChannel } from '@liveblocks/core';
2
- export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionedIdsFromCommentBody, isChannelNotificationSettingEnabled, stringifyCommentBody } from '@liveblocks/core';
1
+ import { BaseUserMeta, DU, OptionalTupleUnless, PlainLsonObject, JsonObject, QueryMetadata, ThreadData, CommentData, CommentBody, Patchable, CommentUserReaction, InboxNotificationData, RoomNotificationSettings, KDAD, DAD, UserNotificationSettings, PartialUserNotificationSettings, LsonObject, ToImmutable, PartialUnless, BaseMetadata, DE, DM, DS, NotificationChannel } from '@liveblocks/core';
2
+ export { CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, CommentUserReaction, IUserInfo, Json, JsonArray, JsonObject, JsonScalar, Lson, LsonObject, PlainLsonObject, ResolveUsersArgs, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, getMentionedIdsFromCommentBody, isNotificationChannelEnabled, stringifyCommentBody } from '@liveblocks/core';
3
3
  import { IncomingHttpHeaders } from 'http';
4
4
 
5
5
  declare const ALL_PERMISSIONS: readonly ["room:write", "room:read", "room:presence:write", "comments:write", "comments:read"];
@@ -756,26 +756,26 @@ declare class Liveblocks {
756
756
  userId: string;
757
757
  }): Promise<void>;
758
758
  /**
759
- * Get channels notification settings for a user for a project.
760
- * @param params.userId The user ID to get the channels notifications settings for.
759
+ * Get notification settings for a user for a project.
760
+ * @param params.userId The user ID to get the notifications settings for.
761
761
  */
762
- getChannelsNotificationSettings(params: {
762
+ getsNotificationSettings(params: {
763
763
  userId: string;
764
- }): Promise<ChannelsNotificationSettings>;
764
+ }): Promise<UserNotificationSettings>;
765
765
  /**
766
- * Update the user's channels notification settings.
767
- * @param params.userId The user ID to update the channels notification settings for.
768
- * @param params.data The new channels notification settings for the user.
766
+ * Update the user's notification settings.
767
+ * @param params.userId The user ID to update the notification settings for.
768
+ * @param params.data The new notification settings for the user.
769
769
  */
770
- updateChannelsNotificationSettings(params: {
770
+ updateNotificationSettings(params: {
771
771
  userId: string;
772
- data: PartialChannelsNotificationSettings;
773
- }): Promise<ChannelsNotificationSettings>;
772
+ data: PartialUserNotificationSettings;
773
+ }): Promise<UserNotificationSettings>;
774
774
  /**
775
- * Delete the user's channels notification settings
776
- * @param params.userId The user ID to update the channels notification settings for.
775
+ * Delete the user's notification settings
776
+ * @param params.userId The user ID to update the notification settings for.
777
777
  */
778
- deleteChannelsNotificationSettings(params: {
778
+ deleteNotificationSettings(params: {
779
779
  userId: string;
780
780
  }): Promise<void>;
781
781
  }
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var _core = require('@liveblocks/core');
3
3
 
4
4
  // src/version.ts
5
5
  var PKG_NAME = "@liveblocks/node";
6
- var PKG_VERSION = "2.17.0-channels1";
6
+ var PKG_VERSION = "2.17.0-usrnotsettings1";
7
7
  var PKG_FORMAT = "cjs";
8
8
 
9
9
  // src/client.ts
@@ -1202,14 +1202,12 @@ var Liveblocks = class {
1202
1202
  }
1203
1203
  }
1204
1204
  /**
1205
- * Get channels notification settings for a user for a project.
1206
- * @param params.userId The user ID to get the channels notifications settings for.
1205
+ * Get notification settings for a user for a project.
1206
+ * @param params.userId The user ID to get the notifications settings for.
1207
1207
  */
1208
- async getChannelsNotificationSettings(params) {
1208
+ async getsNotificationSettings(params) {
1209
1209
  const { userId } = params;
1210
- const res = await this.#get(
1211
- _core.url`/v2/users/${userId}/channels-notification-settings`
1212
- );
1210
+ const res = await this.#get(_core.url`/v2/users/${userId}/notification-settings`);
1213
1211
  if (!res.ok) {
1214
1212
  const text = await res.text();
1215
1213
  throw new LiveblocksError(res.status, text);
@@ -1217,14 +1215,14 @@ var Liveblocks = class {
1217
1215
  return await res.json();
1218
1216
  }
1219
1217
  /**
1220
- * Update the user's channels notification settings.
1221
- * @param params.userId The user ID to update the channels notification settings for.
1222
- * @param params.data The new channels notification settings for the user.
1218
+ * Update the user's notification settings.
1219
+ * @param params.userId The user ID to update the notification settings for.
1220
+ * @param params.data The new notification settings for the user.
1223
1221
  */
1224
- async updateChannelsNotificationSettings(params) {
1222
+ async updateNotificationSettings(params) {
1225
1223
  const { userId, data } = params;
1226
1224
  const res = await this.#post(
1227
- _core.url`/v2/users/${userId}/channels-notification-settings`,
1225
+ _core.url`/v2/users/${userId}/notification-settings`,
1228
1226
  data
1229
1227
  );
1230
1228
  if (!res.ok) {
@@ -1234,13 +1232,13 @@ var Liveblocks = class {
1234
1232
  return await res.json();
1235
1233
  }
1236
1234
  /**
1237
- * Delete the user's channels notification settings
1238
- * @param params.userId The user ID to update the channels notification settings for.
1235
+ * Delete the user's notification settings
1236
+ * @param params.userId The user ID to update the notification settings for.
1239
1237
  */
1240
- async deleteChannelsNotificationSettings(params) {
1238
+ async deleteNotificationSettings(params) {
1241
1239
  const { userId } = params;
1242
1240
  const res = await this.#delete(
1243
- _core.url`/v2/users/${userId}/channels-notification-settings`
1241
+ _core.url`/v2/users/${userId}/notification-settings`
1244
1242
  );
1245
1243
  if (!res.ok) {
1246
1244
  const text = await res.text();
@@ -1418,5 +1416,5 @@ _core.detectDupes.call(void 0, PKG_NAME, PKG_VERSION, PKG_FORMAT);
1418
1416
 
1419
1417
 
1420
1418
 
1421
- exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionedIdsFromCommentBody = _core.getMentionedIdsFromCommentBody; exports.isChannelNotificationSettingEnabled = _core.isChannelNotificationSettingEnabled; exports.isCustomNotificationEvent = isCustomNotificationEvent; exports.isTextMentionNotificationEvent = isTextMentionNotificationEvent; exports.isThreadNotificationEvent = isThreadNotificationEvent; exports.stringifyCommentBody = _core.stringifyCommentBody;
1419
+ exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionedIdsFromCommentBody = _core.getMentionedIdsFromCommentBody; exports.isCustomNotificationEvent = isCustomNotificationEvent; exports.isNotificationChannelEnabled = _core.isNotificationChannelEnabled; exports.isTextMentionNotificationEvent = isTextMentionNotificationEvent; exports.isThreadNotificationEvent = isThreadNotificationEvent; exports.stringifyCommentBody = _core.stringifyCommentBody;
1422
1420
  //# sourceMappingURL=index.js.map