@liveblocks/node
Advanced tools
Comparing version 2.17.0-channels1 to 2.17.0-usrnotsettings1
@@ -1,3 +0,3 @@ | ||
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'; | ||
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'; | ||
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'; | ||
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'; | ||
import { IncomingHttpHeaders } from 'http'; | ||
@@ -759,22 +759,22 @@ | ||
/** | ||
* Get channels notification settings for a user for a project. | ||
* @param params.userId The user ID to get the channels notifications settings for. | ||
* Get notification settings for a user for a project. | ||
* @param params.userId The user ID to get the notifications settings for. | ||
*/ | ||
getChannelsNotificationSettings(params: { | ||
getsNotificationSettings(params: { | ||
userId: string; | ||
}): Promise<ChannelsNotificationSettings>; | ||
}): Promise<UserNotificationSettings>; | ||
/** | ||
* Update the user's channels notification settings. | ||
* @param params.userId The user ID to update the channels notification settings for. | ||
* @param params.data The new channels notification settings for the user. | ||
* Update the user's notification settings. | ||
* @param params.userId The user ID to update the notification settings for. | ||
* @param params.data The new notification settings for the user. | ||
*/ | ||
updateChannelsNotificationSettings(params: { | ||
updateNotificationSettings(params: { | ||
userId: string; | ||
data: PartialChannelsNotificationSettings; | ||
}): Promise<ChannelsNotificationSettings>; | ||
data: PartialUserNotificationSettings; | ||
}): Promise<UserNotificationSettings>; | ||
/** | ||
* Delete the user's channels notification settings | ||
* @param params.userId The user ID to update the channels notification settings for. | ||
* Delete the user's notification settings | ||
* @param params.userId The user ID to update the notification settings for. | ||
*/ | ||
deleteChannelsNotificationSettings(params: { | ||
deleteNotificationSettings(params: { | ||
userId: string; | ||
@@ -781,0 +781,0 @@ }): Promise<void>; |
@@ -6,3 +6,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;// src/index.ts | ||
var PKG_NAME = "@liveblocks/node"; | ||
var PKG_VERSION = "2.17.0-channels1"; | ||
var PKG_VERSION = "2.17.0-usrnotsettings1"; | ||
var PKG_FORMAT = "cjs"; | ||
@@ -1206,10 +1206,8 @@ | ||
/** | ||
* Get channels notification settings for a user for a project. | ||
* @param params.userId The user ID to get the channels notifications settings for. | ||
* Get notification settings for a user for a project. | ||
* @param params.userId The user ID to get the notifications settings for. | ||
*/ | ||
async getChannelsNotificationSettings(params) { | ||
async getsNotificationSettings(params) { | ||
const { userId } = params; | ||
const res = await this.#get( | ||
_core.url`/v2/users/${userId}/channels-notification-settings` | ||
); | ||
const res = await this.#get(_core.url`/v2/users/${userId}/notification-settings`); | ||
if (!res.ok) { | ||
@@ -1222,10 +1220,10 @@ const text = await res.text(); | ||
/** | ||
* Update the user's channels notification settings. | ||
* @param params.userId The user ID to update the channels notification settings for. | ||
* @param params.data The new channels notification settings for the user. | ||
* Update the user's notification settings. | ||
* @param params.userId The user ID to update the notification settings for. | ||
* @param params.data The new notification settings for the user. | ||
*/ | ||
async updateChannelsNotificationSettings(params) { | ||
async updateNotificationSettings(params) { | ||
const { userId, data } = params; | ||
const res = await this.#post( | ||
_core.url`/v2/users/${userId}/channels-notification-settings`, | ||
_core.url`/v2/users/${userId}/notification-settings`, | ||
data | ||
@@ -1240,9 +1238,9 @@ ); | ||
/** | ||
* Delete the user's channels notification settings | ||
* @param params.userId The user ID to update the channels notification settings for. | ||
* Delete the user's notification settings | ||
* @param params.userId The user ID to update the notification settings for. | ||
*/ | ||
async deleteChannelsNotificationSettings(params) { | ||
async deleteNotificationSettings(params) { | ||
const { userId } = params; | ||
const res = await this.#delete( | ||
_core.url`/v2/users/${userId}/channels-notification-settings` | ||
_core.url`/v2/users/${userId}/notification-settings` | ||
); | ||
@@ -1425,3 +1423,3 @@ if (!res.ok) { | ||
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; | ||
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; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@liveblocks/node", | ||
"version": "2.17.0-channels1", | ||
"version": "2.17.0-usrnotsettings1", | ||
"description": "A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -37,3 +37,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/core": "2.17.0-channels1", | ||
"@liveblocks/core": "2.17.0-usrnotsettings1", | ||
"@stablelib/base64": "^1.0.1", | ||
@@ -40,0 +40,0 @@ "fast-sha256": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
408392
3944
29
131
+ Added@liveblocks/core@2.17.0-usrnotsettings1(transitive)
- Removed@liveblocks/core@2.17.0-channels1(transitive)