Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chatkitty

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chatkitty - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

build/main/lib/model/channel-session/channel-session.model.d.ts

4

build/main/environments/environment.js

@@ -5,4 +5,4 @@ "use strict";

exports.environment = {
production: true,
production: false,
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZW52aXJvbm1lbnRzL2Vudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsV0FBVyxHQUFHO0lBQ3pCLFVBQVUsRUFBRSxJQUFJO0NBQ2pCLENBQUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZW52aXJvbm1lbnRzL2Vudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFhLFFBQUEsV0FBVyxHQUFHO0lBQ3pCLFVBQVUsRUFBRSxLQUFLO0NBQ2xCLENBQUMifQ==
import { ChatKittyConfiguration } from './chatkitty.configuration';
import { ChannelSession } from './model/channel-session/channel-session.model';
import { StartChannelSessionRequest } from './model/channel-session/start/channel-session.start.request';
import { StartedChannelSessionResult } from './model/channel-session/start/channel-session.start.results';
import { CreateChannelRequest } from './model/channel/create/channel.create.request';

@@ -6,5 +9,9 @@ import { CreateChannelResult } from './model/channel/create/channel.create.results';

import { ChatkittyObserver } from './model/chatkitty.observer';
import { ChatkittyUnsubscribable } from './model/chatkitty.unsubscribable';
import { ChatKittyUnsubscribe } from './model/chatkitty.unsubscribe';
import { CurrentUser } from './model/current-user/current-user.model';
import { GetCurrentUserResult } from './model/current-user/get/current-user.get.results';
import { CreateChannelMessageRequest } from './model/message/create/message.create.request';
import { CreateMessageResult } from './model/message/create/message.create.results';
import { GetChannelMessagesRequest } from './model/message/get/message.get.request';
import { GetMessagesResult } from './model/message/get/message.get.results';
import { StartSessionRequest } from './model/session/start/session.start.request';

@@ -20,10 +27,15 @@ import { StartSessionResult } from './model/session/start/session.start.results';

private currentUser;
private channelSessions;
constructor(configuration: ChatKittyConfiguration);
startSession(request: StartSessionRequest): Promise<StartSessionResult>;
getCurrentUser(): Promise<GetCurrentUserResult>;
onCurrentUserChanged(onNextOrObserver: ChatkittyObserver<CurrentUser | null> | ((user: CurrentUser | null) => void)): ChatkittyUnsubscribable;
onCurrentUserChanged(onNextOrObserver: ChatkittyObserver<CurrentUser | null> | ((user: CurrentUser | null) => void)): ChatKittyUnsubscribe;
createChannel(request: CreateChannelRequest): Promise<CreateChannelResult>;
getChannels(): Promise<GetChannelsResult>;
getJoinableChannels(): Promise<GetChannelsResult>;
endSession(): Promise<void>;
startChannelSession(request: StartChannelSessionRequest): StartedChannelSessionResult;
createChannelMessage(request: CreateChannelMessageRequest): Promise<CreateMessageResult>;
getChannelMessages(request: GetChannelMessagesRequest): Promise<GetMessagesResult>;
endChannelSession(session: ChannelSession): void;
endSession(): void;
}

@@ -5,2 +5,3 @@ "use strict";

var environment_1 = require("../environments/environment");
var channel_session_start_results_1 = require("./model/channel-session/start/channel-session.start.results");
var channel_create_results_1 = require("./model/channel/create/channel.create.results");

@@ -11,2 +12,5 @@ var channel_get_results_1 = require("./model/channel/get/channel.get.results");

var current_user_get_results_1 = require("./model/current-user/get/current-user.get.results");
var message_create_request_1 = require("./model/message/create/message.create.request");
var message_create_results_1 = require("./model/message/create/message.create.results");
var message_get_results_1 = require("./model/message/get/message.get.results");
var session_errors_1 = require("./model/session/start/session.errors");

@@ -19,2 +23,3 @@ var session_start_results_1 = require("./model/session/start/session.start.results");

this.currentUserNextSubject = new rxjs_1.BehaviorSubject(null);
this.channelSessions = new Map();
this.client = new stompx_client_1.StompXClient({

@@ -127,13 +132,72 @@ isSecure: configuration.isSecure === undefined || configuration.isSecure,

};
ChatKitty.prototype.endSession = function () {
var _this = this;
return new Promise(function (resolve) {
_this.client.disconnect({
onSuccess: function () {
_this.currentUserNextSubject.next(null);
resolve();
ChatKitty.prototype.startChannelSession = function (request) {
var channelUnsubscribe = this.client.listenToTopic(request.channel._topics.self);
var messagesUnsubscribe = this.client.listenToTopic(request.channel._topics.messages);
var receivedMessageUnsubscribe;
var onReceivedMessage = request.onReceivedMessage;
if (onReceivedMessage) {
receivedMessageUnsubscribe = this.client.listenForEvent({
topic: request.channel._topics.messages,
event: 'thread.message.created',
onSuccess: function (message) {
onReceivedMessage(message);
}
});
}
return new channel_session_start_results_1.StartedChannelSessionResult({
channel: request.channel,
unsubscribe: function () {
channelUnsubscribe();
messagesUnsubscribe();
if (receivedMessageUnsubscribe) {
receivedMessageUnsubscribe();
}
}
});
};
ChatKitty.prototype.createChannelMessage = function (request) {
var _this = this;
return new Promise(function (resolve, reject) {
if (_this.channelSessions.has(request.channel.id)) {
reject(new chatkitty_error_1.NoActiveChannelSessionChatKittyError(request.channel));
}
else {
if (message_create_request_1.createTextMessage(request)) {
_this.client.performAction({
destination: request.channel._actions.message,
body: {
type: 'TEXT',
body: request.body
},
onSuccess: function (message) {
resolve(new message_create_results_1.CreatedTextMessageResult(message));
}
});
}
}
});
};
ChatKitty.prototype.getChannelMessages = function (request) {
var _this = this;
return new Promise(function (resolve, reject) {
if (_this.channelSessions.has(request.channel.id)) {
reject(new chatkitty_error_1.NoActiveChannelSessionChatKittyError(request.channel));
}
else {
chatkitty_paginator_1.ChatKittyPaginator.createInstance(_this.client, request.channel._relays.messages, 'messages')
.then(function (paginator) { return resolve(new message_get_results_1.GetMessagesResult(paginator)); });
}
});
};
ChatKitty.prototype.endChannelSession = function (session) {
session.unsubscribe();
};
ChatKitty.prototype.endSession = function () {
var _this = this;
this.client.disconnect({
onSuccess: function () {
_this.currentUserNextSubject.next(null);
}
});
};
ChatKitty._instances = new Map();

@@ -144,2 +208,2 @@ ChatKitty.currentUserRelay = '/application/v1/users/me.relay';

exports.default = ChatKitty;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdGtpdHR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jaGF0a2l0dHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2QkFBdUM7QUFFdkMsMkRBQTBEO0FBSzFELHdGQUd1RDtBQUN2RCwrRUFBNEU7QUFDNUUsMkRBR2lDO0FBRWpDLG1FQUFpRTtBQUdqRSw4RkFBeUY7QUFDekYsdUVBQWdGO0FBRWhGLHFGQUdxRDtBQUNyRCx3REFBc0Q7QUFFdEQ7SUF5QkUsbUJBQW9DLGFBQXFDO1FBQXJDLGtCQUFhLEdBQWIsYUFBYSxDQUF3QjtRQUp4RCwyQkFBc0IsR0FBRyxJQUFJLHNCQUFlLENBQXFCLElBQUksQ0FBQyxDQUFDO1FBS3RGLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSw0QkFBWSxDQUFDO1lBQzdCLFFBQVEsRUFBRSxhQUFhLENBQUMsUUFBUSxLQUFLLFNBQVMsSUFBSSxhQUFhLENBQUMsUUFBUTtZQUN4RSxJQUFJLEVBQUUsYUFBYSxDQUFDLElBQUksSUFBSSxtQkFBbUI7WUFDL0MsT0FBTyxFQUFFLENBQUMseUJBQVcsQ0FBQyxVQUFVO1NBQ2pDLENBQUMsQ0FBQztJQUNMLENBQUM7SUExQmEscUJBQVcsR0FBekIsVUFBMEIsTUFBYztRQUN0QyxJQUFJLFFBQVEsR0FBRyxTQUFTLENBQUMsVUFBVSxDQUFDLEdBQUcsQ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TyxDQUFDLENBQUMsQ0FBQzthQUNuRTtpQkFBTTtnQkFDTCx3Q0FBa0IsQ0FBQyxjQUFjLENBQVUsS0FBSSxDQUFDLE1BQU0sRUFBRSxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxRQUFRLEVBQUUsVUFBVSxDQUFDO3FCQUNwRyxJQUFJLENBQUMsVUFBQSxTQUFTLElBQUksT0FBQSxPQUFPLENBQUMsSUFBSSx1Q0FBaUIsQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUF6QyxDQUF5QyxDQUFDLENBQUM7YUFDL0Q7UUFDSCxDQUFDLENBQ0YsQ0FBQztJQUNKLENBQUM7SUFFTSxxQ0FBaUIsR0FBeEIsVUFBeUIsT0FBdUI7UUFDOUMsT0FBTyxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQ3hCLENBQUM7SUFFTSw4QkFBVSxHQUFqQjtRQUFBLGlCQU1DO1FBTEMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxVQUFVLENBQUM7WUFDckIsU0FBUyxFQUFFO2dCQUNULEtBQUksQ0FBQyxzQkFBc0IsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDekMsQ0FBQztTQUNGLENBQUMsQ0FBQztJQUNMLENBQUM7SUF4TnVCLG9CQUFVLEdBQUcsSUFBSSxHQUFHLEVBQXFCLENBQUM7SUFFMUMsMEJBQWdCLEdBQUcsZ0NBQWdDLENBQUM7SUF1TjlFLGdCQUFDO0NBQUEsQUExTkQsSUEwTkM7a0JBMU5vQixTQUFTIn0=

@@ -6,2 +6,16 @@ export declare class Channel {

properties: Map<string, unknown>;
_relays: ChannelRelays;
_topics: ChannelTopics;
_actions: ChannelActions;
}
export declare class ChannelRelays {
self: string;
messages: string;
}
export declare class ChannelTopics {
self: string;
messages: string;
}
export declare class ChannelActions {
message: string;
}

@@ -0,1 +1,2 @@

import { Channel } from './channel/channel.model';
export declare abstract class ChatKittyError {

@@ -12,4 +13,8 @@ type: string;

}
export declare class NoActiveChannelSessionChatKittyError extends ChatKittyError {
channel: Channel;
constructor(channel: Channel);
}
export declare class PageOutOfBoundsChatKittyError extends ChatKittyError {
constructor();
}

@@ -16,3 +16,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PageOutOfBoundsChatKittyError = exports.NoActiveSessionChatKittyError = exports.UnknownChatKittyError = exports.ChatKittyError = void 0;
exports.PageOutOfBoundsChatKittyError = exports.NoActiveChannelSessionChatKittyError = exports.NoActiveSessionChatKittyError = exports.UnknownChatKittyError = exports.ChatKittyError = void 0;
var ChatKittyError = /** @class */ (function () {

@@ -42,2 +42,12 @@ function ChatKittyError(type, message) {

exports.NoActiveSessionChatKittyError = NoActiveSessionChatKittyError;
var NoActiveChannelSessionChatKittyError = /** @class */ (function (_super) {
__extends(NoActiveChannelSessionChatKittyError, _super);
function NoActiveChannelSessionChatKittyError(channel) {
var _this = _super.call(this, 'NoActiveChannelSessionChatKittyError', "You haven't started a session for the channel " + channel.name + ".") || this;
_this.channel = channel;
return _this;
}
return NoActiveChannelSessionChatKittyError;
}(ChatKittyError));
exports.NoActiveChannelSessionChatKittyError = NoActiveChannelSessionChatKittyError;
var PageOutOfBoundsChatKittyError = /** @class */ (function (_super) {

@@ -51,2 +61,2 @@ __extends(PageOutOfBoundsChatKittyError, _super);

exports.PageOutOfBoundsChatKittyError = PageOutOfBoundsChatKittyError;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdGtpdHR5LmVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2RlbC9jaGF0a2l0dHkuZXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0lBQ0Usd0JBQTZCLElBQVksRUFBUyxPQUFlO1FBQXBDLFNBQUksR0FBSixJQUFJLENB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UFjO0lBQ3ZEO2VBQ0Usa0JBQU0sdUJBQXVCLEVBQUUsZ0NBQWdDLENBQUM7SUFDbEUsQ0FBQztJQUNILDRCQUFDO0FBQUQsQ0FBQyxBQUpELENBQTJDLGNBQWMsR0FJeEQ7QUFKWSxzREFBcUI7QUFNbEM7SUFBbUQsaURBQWM7SUFDL0Q7ZUFDRSxrQkFBTSwrQkFBK0IsRUFBRSxxQ0FBcUMsQ0FBQztJQUMvRSxDQUFDO0lBQ0gsb0NBQUM7QUFBRCxDQUFDLEFBSkQsQ0FBbUQsY0FBYyxHQUloRTtBQUpZLHNFQUE2QjtBQU0xQztJQUEwRCx3REFBYztJQUN0RSw4Q0FBbUIsT0FBZ0I7UUFBbkMsWUFDRSxrQkFBTSxzQ0FBc0MsRUFBRSxtREFBaUQsT0FBTyxDQUFDLElBQUksTUFBRyxDQUFDLFNBQ2hIO1FBRmtCLGFBQU8sR0FBUCxPQUFPLENBQVM7O0lBRW5DLENBQUM7SUFDSCwyQ0FBQztBQUFELENBQUMsQUFKRCxDQUEwRCxjQUFjLEdBSXZFO0FBSlksb0ZBQW9DO0FBTWpEO0lBQW1ELGlEQUFjO0lBQy9EO2VBQ0Usa0JBQU0sK0JBQStCLEVBQUUsZ0RBQWdELENBQUM7SUFDMUYsQ0FBQztJQUNILG9DQUFDO0FBQUQsQ0FBQyxBQUpELENBQW1ELGNBQWMsR0FJaEU7QUFKWSxzRUFBNkIifQ==

@@ -62,3 +62,6 @@ "use strict";

page = _a.sent();
items = page._embedded[contentName];
items = [];
if (page._embedded) {
items = page._embedded[contentName];
}
return [2 /*return*/, new ChatKittyPaginator(items, client, contentName, page._relays.prev, page._relays.next)];

@@ -116,3 +119,6 @@ }

page = _a.sent();
items = page._embedded[this.contentName];
items = [];
if (page._embedded) {
items = page._embedded[this.contentName];
}
return [2 /*return*/, new ChatKittyPaginator(items, this.client, this.contentName, page._relays.prev, page._relays.next)];

@@ -126,2 +132,2 @@ }

exports.ChatKittyPaginator = ChatK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DQUFPLEdBQXJCLFVBQXNCLEtBQWM7Ozs7Ozs0QkFDckIscUJBQU0sSUFBSSxPQUFPLENBQzVCLFVBQUMsT0FBTyxFQUFFLE1BQU07NEJBQ2QsSUFBSSxLQUFLLEVBQUU7Z0NBQ1QsS0FBSSxDQUFDLE1BQU0sQ0FBQyxhQUFhLENBQWE7b0NBQ3BDLFdBQVcsRUFBRSxLQUFLO29DQUNsQixTQUFTLEVBQUUsVUFBQSxRQUFRLElBQUksT0FBQSxPQUFPLENBQUMsUUFBUSxDQUFDLEVBQWpCLENBQWlCO2lDQUN6QyxDQUFDLENBQUM7NkJBQ0o7aUNBQU07Z0NBQ0wsTUFBTSxDQUFDLElBQUksK0NBQTZCLEVBQUUsQ0FBQyxDQUFDOzZCQUM3Qzt3QkFDSCxDQUFDLENBQ0YsRUFBQTs7d0JBWEssSUFBSSxHQUFHLFNBV1o7d0JBRUcsS0FBSyxHQUFRLEVBQUUsQ0FBQzt3QkFFcEIsSUFBSSxJQUFJLENBQUMsU0FBUyxFQUFFOzRCQUNsQixLQUFLLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFRLENBQUM7eUJBQ2pEO3dCQUVELHNCQUFPLElBQUksa0JBQWtCLENBQUksS0FBSyxFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFDOzs7O0tBQzlHO0lBQ0gseUJBQUM7QUFBRCxDQUFDLEFBbkVELElBbUVDO0FBbkVZLGdEQUFrQiJ9
export declare class StompXPage {
_embedded: Record<string, unknown>;
_embedded?: Record<string, unknown>;
page: StompXPageMetadata;

@@ -4,0 +4,0 @@ _relays: StompXPageRelays;

@@ -1,5 +0,5 @@

export declare class StompXPerformActionRequest<B, R> {
export declare class StompXPerformActionRequest<R> {
destination: string;
body: B;
body: unknown;
onSuccess?: (resource: R) => void;
}
import { StompXConnectRequest } from './request/stompx.connect.request';
import { StompXDisconnectRequest } from './request/stompx.disconnect.request';
import { StompXListenForEventRequest } from './request/stompx.listen-for-event.request';
import { StompXPerformActionRequest } from './request/stompx.perform-action.request';

@@ -11,7 +12,9 @@ import { StompXRelayResourceRequest } from './request/stompx.relay-resource.request';

private readonly pendingActions;
private readonly eventHandlers;
constructor(configuration: StompXConfiguration);
connect(request: StompXConnectRequest): void;
relayResource<R>(request: StompXRelayResourceRequest<R>): void;
listenToTopic(topic: string): void;
performAction<B, R>(request: StompXPerformActionRequest<B, R>): void;
listenToTopic<R>(topic: string): () => void;
listenForEvent<R>(request: StompXListenForEventRequest<R>): () => void;
performAction<R>(request: StompXPerformActionRequest<R>): void;
disconnect(request: StompXDisconnectRequest): void;

@@ -18,0 +21,0 @@ private static generateSubscriptionId;

@@ -23,2 +23,3 @@ "use strict";

this.pendingActions = new Map();
this.eventHandlers = new Map();
var scheme;

@@ -80,2 +81,3 @@ if (configuration.isSecure) {

.subscribe(function (message) {
var event = JSON.parse(message.body);
var receipt = message.headers['receipt-id'];

@@ -85,9 +87,37 @@ if (receipt !== undefined) {

if (action !== undefined) {
action(JSON.parse(message.body).resource);
action(event.resource);
_this.pendingActions.delete(receipt);
}
}
var handlers = _this.eventHandlers.get(topic);
if (handlers) {
handlers.forEach(function (handler) {
if (handler.event === event.type) {
handler.onSuccess(event.resource);
}
});
}
});
this.topics.set(topic, subscription);
return function () {
subscription.unsubscribe();
};
};
StompXClient.prototype.listenForEvent = function (request) {
var handlers = this.eventHandlers.get(request.topic);
if (handlers === undefined) {
handlers = new Set();
}
var handler = {
event: request.event,
onSuccess: request.onSuccess
};
handlers.add(handler);
this.eventHandlers.set(request.topic, handlers);
return function () {
if (handlers) {
handlers.delete(handler);
}
};
};
StompXClient.prototype.performAction = function (request) {

@@ -120,2 +150,2 @@ var receipt = StompXClient.generateReceipt();

exports.StompXClient = Stomp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U8sQ0FBQztZQUNuQixXQUFXLEVBQUUsT0FBTyxDQUFDLFdBQVc7WUFDaEMsT0FBTyxFQUFFO2dCQUNQLGNBQWMsRUFBRSxnQ0FBZ0M7Z0JBQ2hELFNBQVMsRUFBRSxPQUFPO2FBQ25CO1lBQ0QsSUFBSSxFQUFFLElBQUksQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQztTQUNuQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBRU0saUNBQVUsR0FBakIsVUFBa0IsT0FBZ0M7UUFDaEQsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFVLEVBQUUsQ0FBQztRQUUxQixPQUFPLENBQUMsU0FBUyxFQUFFLENBQUM7SUFDdEIsQ0FBQztJQUVjLG1DQUFzQixHQUFyQztRQUNFLE9BQU8sa0JBQWtCLEdBQUcsU0FBRSxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUVjLDRCQUFlLEdBQTlCO1FBQ0UsT0FBTyxVQUFVLEdBQUcsU0FBRSxFQUFFLENBQUM7SUFDM0IsQ0FBQztJQUNILG1CQUFDO0FBQUQsQ0FBQyxBQTNLRCxJQTJLQztBQTNLWSxvQ0FBWSJ9
export const environment = {
production: true,
production: false,
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZW52aXJvbm1lbnRzL2Vudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRztJQUN6QixVQUFVLEVBQUUsSUFBSTtDQUNqQixDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52aXJvbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZW52aXJvbm1lbnRzL2Vudmlyb25tZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRztJQUN6QixVQUFVLEVBQUUsS0FBSztDQUNsQixDQUFDIn0=
import { ChatKittyConfiguration } from './chatkitty.configuration';
import { ChannelSession } from './model/channel-session/channel-session.model';
import { StartChannelSessionRequest } from './model/channel-session/start/channel-session.start.request';
import { StartedChannelSessionResult } from './model/channel-session/start/channel-session.start.results';
import { CreateChannelRequest } from './model/channel/create/channel.create.request';

@@ -6,5 +9,9 @@ import { CreateChannelResult } from './model/channel/create/channel.create.results';

import { ChatkittyObserver } from './model/chatkitty.observer';
import { ChatkittyUnsubscribable } from './model/chatkitty.unsubscribable';
import { ChatKittyUnsubscribe } from './model/chatkitty.unsubscribe';
import { CurrentUser } from './model/current-user/current-user.model';
import { GetCurrentUserResult } from './model/current-user/get/current-user.get.results';
import { CreateChannelMessageRequest } from './model/message/create/message.create.request';
import { CreateMessageResult } from './model/message/create/message.create.results';
import { GetChannelMessagesRequest } from './model/message/get/message.get.request';
import { GetMessagesResult } from './model/message/get/message.get.results';
import { StartSessionRequest } from './model/session/start/session.start.request';

@@ -20,10 +27,15 @@ import { StartSessionResult } from './model/session/start/session.start.results';

private currentUser;
private channelSessions;
constructor(configuration: ChatKittyConfiguration);
startSession(request: StartSessionRequest): Promise<StartSessionResult>;
getCurrentUser(): Promise<GetCurrentUserResult>;
onCurrentUserChanged(onNextOrObserver: ChatkittyObserver<CurrentUser | null> | ((user: CurrentUser | null) => void)): ChatkittyUnsubscribable;
onCurrentUserChanged(onNextOrObserver: ChatkittyObserver<CurrentUser | null> | ((user: CurrentUser | null) => void)): ChatKittyUnsubscribe;
createChannel(request: CreateChannelRequest): Promise<CreateChannelResult>;
getChannels(): Promise<GetChannelsResult>;
getJoinableChannels(): Promise<GetChannelsResult>;
endSession(): Promise<void>;
startChannelSession(request: StartChannelSessionRequest): StartedChannelSessionResult;
createChannelMessage(request: CreateChannelMessageRequest): Promise<CreateMessageResult>;
getChannelMessages(request: GetChannelMessagesRequest): Promise<GetMessagesResult>;
endChannelSession(session: ChannelSession): void;
endSession(): void;
}
import { BehaviorSubject } from 'rxjs';
import { environment } from '../environments/environment';
import { StartedChannelSessionResult } from './model/channel-session/start/channel-session.start.results';
import { CreatedChannelResult } from './model/channel/create/channel.create.results';
import { GetChannelsResult } from './model/channel/get/channel.get.results';
import { NoActiveSessionChatKittyError, UnknownChatKittyError } from './model/chatkitty.error';
import { NoActiveChannelSessionChatKittyError, NoActiveSessionChatKittyError, UnknownChatKittyError } from './model/chatkitty.error';
import { ChatKittyPaginator } from './model/chatkitty.paginator';
import { GetCurrentUserResult } from './model/current-user/get/current-user.get.results';
import { createTextMessage } from './model/message/create/message.create.request';
import { CreatedTextMessageResult } from './model/message/create/message.create.results';
import { GetMessagesResult } from './model/message/get/message.get.results';
import { AccessDeniedSessionError } from './model/session/start/session.errors';

@@ -15,2 +19,3 @@ import { AccessDeniedSessionResult, StartedSessionResult } from './model/session/start/session.start.results';

this.currentUserNextSubject = new BehaviorSubject(null);
this.channelSessions = new Map();
this.client = new StompXClient({

@@ -118,15 +123,72 @@ isSecure: configuration.isSecure === undefined || configuration.isSecure,

}
endSession() {
return new Promise(resolve => {
this.client.disconnect({
onSuccess: () => {
this.currentUserNextSubject.next(null);
resolve();
startChannelSession(request) {
const channelUnsubscribe = this.client.listenToTopic(request.channel._topics.self);
const messagesUnsubscribe = this.client.listenToTopic(request.channel._topics.messages);
let receivedMessageUnsubscribe;
const onReceivedMessage = request.onReceivedMessage;
if (onReceivedMessage) {
receivedMessageUnsubscribe = this.client.listenForEvent({
topic: request.channel._topics.messages,
event: 'thread.message.created',
onSuccess: message => {
onReceivedMessage(message);
}
});
}
return new StartedChannelSessionResult({
channel: request.channel,
unsubscribe: () => {
channelUnsubscribe();
messagesUnsubscribe();
if (receivedMessageUnsubscribe) {
receivedMessageUnsubscribe();
}
}
});
}
createChannelMessage(request) {
return new Promise((resolve, reject) => {
if (this.channelSessions.has(request.channel.id)) {
reject(new NoActiveChannelSessionChatKittyError(request.channel));
}
else {
if (createTextMessage(request)) {
this.client.performAction({
destination: request.channel._actions.message,
body: {
type: 'TEXT',
body: request.body
},
onSuccess: message => {
resolve(new CreatedTextMessageResult(message));
}
});
}
}
});
}
getChannelMessages(request) {
return new Promise((resolve, reject) => {
if (this.channelSessions.has(request.channel.id)) {
reject(new NoActiveChannelSessionChatKittyError(request.channel));
}
else {
ChatKittyPaginator.createInstance(this.client, request.channel._relays.messages, 'messages')
.then(paginator => resolve(new GetMessagesResult(paginator)));
}
});
}
endChannelSession(session) {
session.unsubscribe();
}
endSession() {
this.client.disconnect({
onSuccess: () => {
this.currentUserNextSubject.next(null);
}
});
}
}
ChatKitty._instances = new Map();
ChatKitty.currentUserRelay = '/application/v1/users/me.relay';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdGtpdHR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jaGF0a2l0dHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUV2QyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFLMUQsT0FBTyxFQUVMLG9CQUFvQixFQUNyQixNQUFNLCtDQUErQyxDQUFDO0FBQ3ZELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBQzVFLE9BQU8sRUFDTCw2QkFBNkIsRUFDN0IscUJBQXFCLEVBQ3RCLE1BQU0seUJBQXlCLENBQUM7QUFFakMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFHakUsT0FBTyxFQUFFL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yxPQUFPLEVBQUUsTUFBTSxFQUFFLEVBQUU7WUFDbEIsSUFBSSxJQUFJLENBQUMsZUFBZSxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxFQUFFO2dCQUNoRCxNQUFNLENBQUMsSUFBSSxvQ0FBb0MsQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQzthQUNuRTtpQkFBTTtnQkFDTCxrQkFBa0IsQ0FBQyxjQUFjLENBQVUsSUFBSSxDQUFDLE1BQU0sRUFBRSxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxRQUFRLEVBQUUsVUFBVSxDQUFDO3FCQUNwRyxJQUFJLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsSUFBSSxpQkFBaUIsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUM7YUFDL0Q7UUFDSCxDQUFDLENBQ0YsQ0FBQztJQUNKLENBQUM7SUFFTSxpQkFBaUIsQ0FBQyxPQUF1QjtRQUM5QyxPQUFPLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDeEIsQ0FBQztJQUVNLFVBQVU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsQ0FBQztZQUNyQixTQUFTLEVBQUUsR0FBRyxFQUFFO2dCQUNkLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDekMsQ0FBQztTQUNGLENBQUMsQ0FBQztJQUNMLENBQUM7O0FBeE51QixvQkFBVSxHQUFHLElBQUksR0FBRyxFQUFxQixDQUFDO0FBRTFDLDBCQUFnQixHQUFHLGdDQUFnQyxDQUFDIn0=

@@ -6,2 +6,16 @@ export declare class Channel {

properties: Map<string, unknown>;
_relays: ChannelRelays;
_topics: ChannelTopics;
_actions: ChannelActions;
}
export declare class ChannelRelays {
self: string;
messages: string;
}
export declare class ChannelTopics {
self: string;
messages: string;
}
export declare class ChannelActions {
message: string;
}

@@ -0,1 +1,2 @@

import { Channel } from './channel/channel.model';
export declare abstract class ChatKittyError {

@@ -12,4 +13,8 @@ type: string;

}
export declare class NoActiveChannelSessionChatKittyError extends ChatKittyError {
channel: Channel;
constructor(channel: Channel);
}
export declare class PageOutOfBoundsChatKittyError extends ChatKittyError {
constructor();
}

@@ -17,2 +17,8 @@ export class ChatKittyError {

}
export class NoActiveChannelSessionChatKittyError extends ChatKittyError {
constructor(channel) {
super('NoActiveChannelSessionChatKittyError', `You haven't started a session for the channel ${channel.name}.`);
this.channel = channel;
}
}
export class PageOutOfBoundsChatKittyError extends ChatKittyError {

@@ -23,2 +29,2 @@ constructor() {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdGtpdHR5LmVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9tb2RlbC9jaGF0a2l0dHkuZXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFnQixjQUFjO0lBQ2xDLFlBQTZCLElBQVksRUFBUyxPQUFlO1FBQXBDLFNBQUksR0FBSixJQUFJLENBQVE7UUFBUyxZQUFPLEdBQVAsT0FBTyxDQUFRO0lBQ2pFLENBQUM7Q0FDRjtBQUVELE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxjQUFjO0lBQ3ZEO1FBQ0UsS0FBSyxDQUFDLHVCQUF1QixFQUFFLGdDQUFnQyxDQUFDLENBQUM7SUFDbkUsQ0FBQztDQUNGO0FBRUQsTUFBTSxPQUFPLDZCQUE4QixTQUFRLGNBQWM7SUFDL0Q7UUFDRSxLQUFLLENBQUMsK0JBQStCLEVBQUUscUNBQXFDLENBQUMsQ0FBQztJQUNoRixDQUFDO0NBQ0Y7QUFFRCxNQUFNLE9BQU8sNkJBQThCLFNBQVEsY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FDO0NBQ0YifQ==

@@ -17,3 +17,6 @@ import { PageOutOfBoundsChatKittyError } from './chatkitty.error';

});
const items = page._embedded[contentName];
let items = [];
if (page._embedded) {
items = page._embedded[contentName];
}
return new ChatKittyPaginator(items, client, contentName, page._relays.prev, page._relays.next);

@@ -45,6 +48,9 @@ }

});
const items = page._embedded[this.contentName];
let items = [];
if (page._embedded) {
items = page._embedded[this.contentName];
}
return new ChatKittyPaginator(items, this.client, this.contentName, page._relays.prev, page._relays.next);
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdGtpdHR5LnBhZ2luYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvbW9kZWwvY2hhdGtpdHR5LnBhZ2luYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEVBQ0wsNkJBQTZCLEVBQzlCLE1BQU0sbUJBQW1CLENBQUM7QUFFM0IsTUFBTSxPQUFPLGtCQUFrQjtJQWdCN0IsWUFDUyxLQUFVLEVBQ1QsTUFBb0IsRUFDcEIsV0FBbUIsRUFDbkIsU0FBa0IsRUFDbEIsU0FBa0I7UUFKbkIsVUFBSyxHQUFMLEtBQUssQ0FBSztRQUNULFdBQU0sR0FBTixNQUFNLENBQWM7UUFDcEIsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFDbkIsY0FBUyxHQUFULFNBQVMsQ0FBUztRQUNsQixjQUFTLEdBQVQsU0FBUyxDQUFTO0lBRTVCLENBQUM7SUF0QkQsTUFBTSxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUksTUFBb0IsRUFBRSxLQUFhLEVBQUUsV0FBbUI7UUFDckYsTUFBTSxJQUFJLEdBQUcsTUFBTSxJQUFJLE9BQU8sQ0FDNUIsT0FBTyxDQUFDLEVBQUU7WUFDUixNQUFNLENBQUMsYUFBYSxDQUFhO2dCQUMv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UFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUVPLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBYztRQUNsQyxNQUFNLElBQUksR0FBRyxNQUFNLElBQUksT0FBTyxDQUM1QixDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtZQUNsQixJQUFJLEtBQUssRUFBRTtnQkFDVCxJQUFJLENBQUMsTUFBTSxDQUFDLGFBQWEsQ0FBYTtvQkFDcEMsV0FBVyxFQUFFLEtBQUs7b0JBQ2xCLFNBQVMsRUFBRSxRQUFRLENBQUMsRUFBRSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUM7aUJBQ3pDLENBQUMsQ0FBQzthQUNKO2lCQUFNO2dCQUNMLE1BQU0sQ0FBQyxJQUFJLDZCQUE2QixFQUFFLENBQUMsQ0FBQzthQUM3QztRQUNILENBQUMsQ0FDRixDQUFDO1FBRUYsSUFBSSxLQUFLLEdBQVEsRUFBRSxDQUFDO1FBRXBCLElBQUksSUFBSSxDQUFDLFNBQVMsRUFBRTtZQUNsQixLQUFLLEdBQUcsSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFRLENBQUM7U0FDakQ7UUFFRCxPQUFPLElBQUksa0JBQWtCLENBQUksS0FBSyxFQUFFLElBQUksQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLFdBQVcsRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQy9HLENBQUM7Q0FDRiJ9
export declare class StompXPage {
_embedded: Record<string, unknown>;
_embedded?: Record<string, unknown>;
page: StompXPageMetadata;

@@ -4,0 +4,0 @@ _relays: StompXPageRelays;

@@ -1,5 +0,5 @@

export declare class StompXPerformActionRequest<B, R> {
export declare class StompXPerformActionRequest<R> {
destination: string;
body: B;
body: unknown;
onSuccess?: (resource: R) => void;
}
import { StompXConnectRequest } from './request/stompx.connect.request';
import { StompXDisconnectRequest } from './request/stompx.disconnect.request';
import { StompXListenForEventRequest } from './request/stompx.listen-for-event.request';
import { StompXPerformActionRequest } from './request/stompx.perform-action.request';

@@ -11,7 +12,9 @@ import { StompXRelayResourceRequest } from './request/stompx.relay-resource.request';

private readonly pendingActions;
private readonly eventHandlers;
constructor(configuration: StompXConfiguration);
connect(request: StompXConnectRequest): void;
relayResource<R>(request: StompXRelayResourceRequest<R>): void;
listenToTopic(topic: string): void;
performAction<B, R>(request: StompXPerformActionRequest<B, R>): void;
listenToTopic<R>(topic: string): () => void;
listenForEvent<R>(request: StompXListenForEventRequest<R>): () => void;
performAction<R>(request: StompXPerformActionRequest<R>): void;
disconnect(request: StompXDisconnectRequest): void;

@@ -18,0 +21,0 @@ private static generateSubscriptionId;

@@ -9,2 +9,3 @@ import { RxStomp } from '@stomp/rx-stomp';

this.pendingActions = new Map();
this.eventHandlers = new Map();
let scheme;

@@ -67,2 +68,3 @@ if (configuration.isSecure) {

.subscribe(message => {
const event = JSON.parse(message.body);
const receipt = message.headers['receipt-id'];

@@ -72,9 +74,37 @@ if (receipt !== undefined) {

if (action !== undefined) {
action(JSON.parse(message.body).resource);
action(event.resource);
this.pendingActions.delete(receipt);
}
}
const handlers = this.eventHandlers.get(topic);
if (handlers) {
handlers.forEach(handler => {
if (handler.event === event.type) {
handler.onSuccess(event.resource);
}
});
}
});
this.topics.set(topic, subscription);
return () => {
subscription.unsubscribe();
};
}
listenForEvent(request) {
let handlers = this.eventHandlers.get(request.topic);
if (handlers === undefined) {
handlers = new Set();
}
const handler = {
event: request.event,
onSuccess: request.onSuccess
};
handlers.add(handler);
this.eventHandlers.set(request.topic, handlers);
return () => {
if (handlers) {
handlers.delete(handler);
}
};
}
performAction(request) {

@@ -105,2 +135,2 @@ const receipt = StompXClient.generateReceipt();

}
//# sourceMappingURL=data:application/json;base64,eyJ2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BQyxTQUFTLEVBQUU7WUFDckIsSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxTQUF3QyxDQUFDLENBQUM7U0FDcEY7UUFFRCxJQUFJLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQztZQUNuQixXQUFXLEVBQUUsT0FBTyxDQUFDLFdBQVc7WUFDaEMsT0FBTyxFQUFFO2dCQUNQLGNBQWMsRUFBRSxnQ0FBZ0M7Z0JBQ2hELFNBQVMsRUFBRSxPQUFPO2FBQ25CO1lBQ0QsSUFBSSxFQUFFLElBQUksQ0FBQyxTQUFTLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQztTQUNuQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBRU0sVUFBVSxDQUFDLE9BQWdDO1FBQ2hELElBQUksQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLENBQUM7UUFFMUIsT0FBTyxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQ3RCLENBQUM7SUFFTyxNQUFNLENBQUMsc0JBQXNCO1FBQ25DLE9BQU8sa0JBQWtCLEdBQUcsRUFBRSxFQUFFLENBQUM7SUFDbkMsQ0FBQztJQUVPLE1BQU0sQ0FBQyxlQUFlO1FBQzVCLE9BQU8sVUFBVSxHQUFHLEVBQUUsRUFBRSxDQUFDO0lBQzNCLENBQUM7Q0FDRiJ9
{
"name": "chatkitty",
"version": "0.0.16",
"version": "0.0.17",
"description": "JS SDK for the ChatKitty Chat API",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc