polfan-server-js-client 0.0.7 → 0.0.9
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/.eslintignore +0 -0
- package/.eslintrc.json +0 -0
- package/.idea/php.xml +18 -0
- package/.idea/vcs.xml +0 -1
- package/CONTRIBUTING.md +0 -15
- package/LICENSE +0 -21
- package/README.md +16 -16
- package/babel.config.js +7 -0
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/types/Client.d.ts +36 -8
- package/build/types/ObservableInterface.d.ts +8 -1
- package/build/types/connections/ConnectionAssets.d.ts +16 -0
- package/build/types/connections/RestApiConnection.d.ts +14 -0
- package/build/types/connections/WebApiConnection.d.ts +17 -12
- package/build/types/connections/WebSocketConnection.d.ts +16 -14
- package/build/types/dtos/Dto.d.ts +1 -1
- package/build/types/dtos/protocol/Envelope.d.ts +2 -2
- package/build/types/index.d.ts +5 -19
- package/package.json +1 -1
- package/scripts/getPackageJson.js +25 -0
- package/scripts/testMock.js +1 -0
- package/src/Client.ts +247 -0
- package/src/ObservableInterface.ts +39 -0
- package/src/connections/ConnectionAssets.ts +19 -0
- package/src/connections/RestApiConnection.ts +47 -0
- package/src/connections/WebApiConnection.ts +78 -0
- package/src/connections/WebSocketConnection.ts +95 -0
- package/src/dtos/Dto.ts +45 -0
- package/src/dtos/Message.ts +16 -0
- package/src/dtos/Permission.ts +12 -0
- package/src/dtos/Role.ts +12 -0
- package/src/dtos/Room.ts +15 -0
- package/src/dtos/RoomMember.ts +13 -0
- package/src/dtos/RoomSummary.ts +12 -0
- package/src/dtos/Space.ts +15 -0
- package/src/dtos/SpaceMember.ts +14 -0
- package/src/dtos/Topic.ts +12 -0
- package/src/dtos/User.ts +15 -0
- package/src/dtos/UserState.ts +16 -0
- package/src/dtos/protocol/Envelope.ts +12 -0
- package/src/dtos/protocol/commands/AssignRole.ts +12 -0
- package/src/dtos/protocol/commands/CreateMessage.ts +12 -0
- package/src/dtos/protocol/commands/CreateRole.ts +12 -0
- package/src/dtos/protocol/commands/CreateRoom.ts +12 -0
- package/src/dtos/protocol/commands/CreateSpace.ts +10 -0
- package/src/dtos/protocol/commands/CreateTopic.ts +12 -0
- package/src/dtos/protocol/commands/DeassignRole.ts +12 -0
- package/src/dtos/protocol/commands/DeleteRole.ts +11 -0
- package/src/dtos/protocol/commands/DeleteRoom.ts +10 -0
- package/src/dtos/protocol/commands/DeleteSpace.ts +10 -0
- package/src/dtos/protocol/commands/DeleteTopic.ts +10 -0
- package/src/dtos/protocol/commands/GetComputedPermissions.ts +13 -0
- package/src/dtos/protocol/commands/GetRolePermissions.ts +13 -0
- package/src/dtos/protocol/commands/GetRoomMembers.ts +10 -0
- package/src/dtos/protocol/commands/GetSession.ts +8 -0
- package/src/dtos/protocol/commands/GetSpaceMembers.ts +10 -0
- package/src/dtos/protocol/commands/GetSpaceRooms.ts +10 -0
- package/src/dtos/protocol/commands/GetUserPermissions.ts +13 -0
- package/src/dtos/protocol/commands/JoinRoom.ts +10 -0
- package/src/dtos/protocol/commands/JoinSpace.ts +10 -0
- package/src/dtos/protocol/commands/LeaveRoom.ts +10 -0
- package/src/dtos/protocol/commands/LeaveSpace.ts +10 -0
- package/src/dtos/protocol/commands/SetRolePermissions.ts +16 -0
- package/src/dtos/protocol/commands/SetUserPermissions.ts +16 -0
- package/src/dtos/protocol/events/Bye.ts +10 -0
- package/src/dtos/protocol/events/Error.ts +11 -0
- package/src/dtos/protocol/events/NewMessage.ts +13 -0
- package/src/dtos/protocol/events/NewRole.ts +14 -0
- package/src/dtos/protocol/events/NewRoom.ts +14 -0
- package/src/dtos/protocol/events/NewTopic.ts +14 -0
- package/src/dtos/protocol/events/Ok.ts +8 -0
- package/src/dtos/protocol/events/Permissions.ts +13 -0
- package/src/dtos/protocol/events/RoleDeleted.ts +11 -0
- package/src/dtos/protocol/events/RoomDeleted.ts +10 -0
- package/src/dtos/protocol/events/RoomJoined.ts +13 -0
- package/src/dtos/protocol/events/RoomLeft.ts +10 -0
- package/src/dtos/protocol/events/RoomMemberJoined.ts +13 -0
- package/src/dtos/protocol/events/RoomMemberLeft.ts +10 -0
- package/src/dtos/protocol/events/RoomMembers.ts +13 -0
- package/src/dtos/protocol/events/Session.ts +17 -0
- package/src/dtos/protocol/events/SpaceDeleted.ts +10 -0
- package/src/dtos/protocol/events/SpaceJoined.ts +13 -0
- package/src/dtos/protocol/events/SpaceLeft.ts +10 -0
- package/src/dtos/protocol/events/SpaceMemberJoined.ts +13 -0
- package/src/dtos/protocol/events/SpaceMemberLeft.ts +10 -0
- package/src/dtos/protocol/events/SpaceMemberUpdate.ts +13 -0
- package/src/dtos/protocol/events/SpaceMembers.ts +13 -0
- package/src/dtos/protocol/events/SpaceRooms.ts +13 -0
- package/src/dtos/protocol/events/TopicDeleted.ts +10 -0
- package/src/index.ts +14 -0
- package/src/protocol.ts +113 -0
- package/tsconfig.json +2 -2
- package/webpack.config.js +69 -0
- package/build/types/Token.d.ts +0 -9
- package/build/types/connections/ConnectionInterface.d.ts +0 -17
- package/build/types/dtos/protocol/EnvelopeMeta.d.ts +0 -6
- package/old/dist/Client.d.ts +0 -76
- package/old/dist/ObservableInterface.d.ts +0 -9
- package/old/dist/Token.d.ts +0 -5
- package/old/dist/connections/ConnectionInterface.d.ts +0 -17
- package/old/dist/connections/WebApiConnection.d.ts +0 -15
- package/old/dist/connections/WebSocketConnection.d.ts +0 -19
- package/old/dist/dtos/Dto.d.ts +0 -16
- package/old/dist/dtos/Message.d.ts +0 -9
- package/old/dist/dtos/Permission.d.ts +0 -7
- package/old/dist/dtos/Role.d.ts +0 -7
- package/old/dist/dtos/Room.d.ts +0 -8
- package/old/dist/dtos/RoomMember.d.ts +0 -6
- package/old/dist/dtos/RoomSummary.d.ts +0 -7
- package/old/dist/dtos/Space.d.ts +0 -8
- package/old/dist/dtos/SpaceMember.d.ts +0 -7
- package/old/dist/dtos/Topic.d.ts +0 -7
- package/old/dist/dtos/User.d.ts +0 -9
- package/old/dist/dtos/UserState.d.ts +0 -8
- package/old/dist/dtos/protocol/Envelope.d.ts +0 -7
- package/old/dist/dtos/protocol/EnvelopeMeta.d.ts +0 -6
- package/old/dist/dtos/protocol/ProtocolMessage.d.ts +0 -7
- package/old/dist/dtos/protocol/ProtocolMetaData.d.ts +0 -6
- package/old/dist/dtos/protocol/commands/AssignRole.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/CreateMessage.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/CreateRole.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/CreateRoom.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/CreateSpace.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/CreateTopic.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/DeassignRole.d.ts +0 -7
- package/old/dist/dtos/protocol/commands/DeleteRole.d.ts +0 -6
- package/old/dist/dtos/protocol/commands/DeleteRoom.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/DeleteSpace.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/DeleteTopic.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/GetComputedPermissions.d.ts +0 -8
- package/old/dist/dtos/protocol/commands/GetRolePermissions.d.ts +0 -8
- package/old/dist/dtos/protocol/commands/GetRoomMembers.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/GetSession.d.ts +0 -4
- package/old/dist/dtos/protocol/commands/GetSpaceMembers.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/GetSpaceRooms.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/GetUserPermissions.d.ts +0 -8
- package/old/dist/dtos/protocol/commands/JoinRoom.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/JoinSpace.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/LeaveRoom.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/LeaveSpace.d.ts +0 -5
- package/old/dist/dtos/protocol/commands/SetRolePermissions.d.ts +0 -9
- package/old/dist/dtos/protocol/commands/SetUserPermissions.d.ts +0 -9
- package/old/dist/dtos/protocol/events/Bye.d.ts +0 -5
- package/old/dist/dtos/protocol/events/Error.d.ts +0 -6
- package/old/dist/dtos/protocol/events/NewMessage.d.ts +0 -6
- package/old/dist/dtos/protocol/events/NewRole.d.ts +0 -7
- package/old/dist/dtos/protocol/events/NewRoom.d.ts +0 -7
- package/old/dist/dtos/protocol/events/NewTopic.d.ts +0 -7
- package/old/dist/dtos/protocol/events/Ok.d.ts +0 -4
- package/old/dist/dtos/protocol/events/Permissions.d.ts +0 -6
- package/old/dist/dtos/protocol/events/RoleDeleted.d.ts +0 -6
- package/old/dist/dtos/protocol/events/RoomDeleted.d.ts +0 -5
- package/old/dist/dtos/protocol/events/RoomJoined.d.ts +0 -6
- package/old/dist/dtos/protocol/events/RoomLeft.d.ts +0 -5
- package/old/dist/dtos/protocol/events/RoomMemberJoined.d.ts +0 -6
- package/old/dist/dtos/protocol/events/RoomMemberLeft.d.ts +0 -5
- package/old/dist/dtos/protocol/events/RoomMembers.d.ts +0 -6
- package/old/dist/dtos/protocol/events/Session.d.ts +0 -9
- package/old/dist/dtos/protocol/events/SpaceDeleted.d.ts +0 -5
- package/old/dist/dtos/protocol/events/SpaceJoined.d.ts +0 -6
- package/old/dist/dtos/protocol/events/SpaceLeft.d.ts +0 -5
- package/old/dist/dtos/protocol/events/SpaceMemberJoined.d.ts +0 -6
- package/old/dist/dtos/protocol/events/SpaceMemberLeft.d.ts +0 -5
- package/old/dist/dtos/protocol/events/SpaceMemberUpdate.d.ts +0 -6
- package/old/dist/dtos/protocol/events/SpaceMembers.d.ts +0 -6
- package/old/dist/dtos/protocol/events/SpaceRooms.d.ts +0 -6
- package/old/dist/dtos/protocol/events/TopicDeleted.d.ts +0 -5
- package/old/dist/index.d.ts +0 -27
- package/old/dist/index.js +0 -1916
- package/old/dist/index.js.map +0 -1
- package/old/dist/protocol.d.ts +0 -7
- package/old/dist/pserv-js-client.js +0 -2
- package/old/dist/pserv-js-client.js.map +0 -1
- package/old/package-lock.json +0 -2654
- package/old/package.json +0 -22
- package/old/tsconfig.json +0 -12
package/old/dist/index.js
DELETED
|
@@ -1,1916 +0,0 @@
|
|
|
1
|
-
var PServ;
|
|
2
|
-
/******/ (() => { // webpackBootstrap
|
|
3
|
-
/******/ "use strict";
|
|
4
|
-
/******/ var __webpack_modules__ = ({
|
|
5
|
-
|
|
6
|
-
/***/ "./src/Client.ts":
|
|
7
|
-
/*!***********************!*\
|
|
8
|
-
!*** ./src/Client.ts ***!
|
|
9
|
-
\***********************/
|
|
10
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23
|
-
exports.Client = void 0;
|
|
24
|
-
const ConnectionInterface_1 = __webpack_require__(/*! ./connections/ConnectionInterface */ "./src/connections/ConnectionInterface.ts");
|
|
25
|
-
const ObservableInterface_1 = __webpack_require__(/*! ./ObservableInterface */ "./src/ObservableInterface.ts");
|
|
26
|
-
const Envelope_1 = __webpack_require__(/*! ./dtos/protocol/Envelope */ "./src/dtos/protocol/Envelope.ts");
|
|
27
|
-
const protocol_1 = __webpack_require__(/*! ./protocol */ "./src/protocol.ts");
|
|
28
|
-
function guessCommandType(obj) {
|
|
29
|
-
for (const type in protocol_1.commands) {
|
|
30
|
-
if (obj instanceof protocol_1.commands[type]) {
|
|
31
|
-
return type;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return Object.getPrototypeOf(obj).constructor.name;
|
|
35
|
-
}
|
|
36
|
-
class Client extends ObservableInterface_1.EventTarget {
|
|
37
|
-
constructor(connection) {
|
|
38
|
-
super();
|
|
39
|
-
this.connection = connection;
|
|
40
|
-
this.commandsCount = 0;
|
|
41
|
-
this.awaitingResponse = new Map();
|
|
42
|
-
this.setCustomEventMap({}); // Set default event map.
|
|
43
|
-
this.connection.on(ConnectionInterface_1.ConnectionEvent.message, payload => this.onMessage(payload));
|
|
44
|
-
this.connection.on(ConnectionInterface_1.ConnectionEvent.disconnect, () => this.onDisconnect());
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Send command to server.
|
|
48
|
-
* @param commandPayload Command payload object.
|
|
49
|
-
* @param commandType Command type; if not specified, it will be guessed from the command payload class name.
|
|
50
|
-
* @return Promise which resolves to the event returned by server (including `Error`)
|
|
51
|
-
* in response to command and rejects with connection error.
|
|
52
|
-
*/
|
|
53
|
-
exec(commandPayload, commandType) {
|
|
54
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const message = this.createEnvelope(commandType !== null && commandType !== void 0 ? commandType : guessCommandType(commandPayload), commandPayload);
|
|
56
|
-
this.connection.send(message.toJson());
|
|
57
|
-
return new Promise((...args) => this.awaitingResponse.set(message.meta.ref, args));
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Set custom DTO classes for events.
|
|
62
|
-
*/
|
|
63
|
-
setCustomEventMap(customMap) {
|
|
64
|
-
this.eventsMap = Object.assign(Object.assign({}, protocol_1.events), customMap);
|
|
65
|
-
return this;
|
|
66
|
-
}
|
|
67
|
-
onMessage(payload) {
|
|
68
|
-
var _a, _b, _c;
|
|
69
|
-
const message = JSON.parse(payload);
|
|
70
|
-
const dto = this.createEventByEnvelope(message);
|
|
71
|
-
const [resolve] = (_b = this.awaitingResponse.get((_a = message.meta.ref) !== null && _a !== void 0 ? _a : '')) !== null && _b !== void 0 ? _b : [];
|
|
72
|
-
if (resolve) {
|
|
73
|
-
resolve(dto !== null && dto !== void 0 ? dto : message.data);
|
|
74
|
-
this.awaitingResponse.delete(message.meta.ref);
|
|
75
|
-
}
|
|
76
|
-
this.emit('message', message);
|
|
77
|
-
this.emit((_c = message.meta.type) !== null && _c !== void 0 ? _c : 'unknown', message, dto);
|
|
78
|
-
}
|
|
79
|
-
onDisconnect() {
|
|
80
|
-
this.awaitingResponse.forEach(([resolve, reject], key) => {
|
|
81
|
-
reject('Disconnected');
|
|
82
|
-
this.awaitingResponse.delete(key);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
createEnvelope(commandType, dto) {
|
|
86
|
-
return new Envelope_1.Envelope({
|
|
87
|
-
meta: {
|
|
88
|
-
type: commandType,
|
|
89
|
-
ref: (++this.commandsCount).toString()
|
|
90
|
-
},
|
|
91
|
-
data: dto
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
createEventByEnvelope(message) {
|
|
95
|
-
var _a;
|
|
96
|
-
if (((_a = message.meta.type) !== null && _a !== void 0 ? _a : false) && this.eventsMap.hasOwnProperty(message.meta.type)) {
|
|
97
|
-
return new this.eventsMap[message.meta.type](message.data);
|
|
98
|
-
}
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.Client = Client;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
/***/ }),
|
|
106
|
-
|
|
107
|
-
/***/ "./src/ObservableInterface.ts":
|
|
108
|
-
/*!************************************!*\
|
|
109
|
-
!*** ./src/ObservableInterface.ts ***!
|
|
110
|
-
\************************************/
|
|
111
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
115
|
-
exports.EventTarget = void 0;
|
|
116
|
-
class EventTarget {
|
|
117
|
-
constructor() {
|
|
118
|
-
this.events = new Map();
|
|
119
|
-
}
|
|
120
|
-
on(eventName, handler) {
|
|
121
|
-
var _a;
|
|
122
|
-
const handlers = (_a = this.events.get(eventName)) !== null && _a !== void 0 ? _a : [];
|
|
123
|
-
handlers.push(handler);
|
|
124
|
-
this.events.set(eventName, handlers);
|
|
125
|
-
return this;
|
|
126
|
-
}
|
|
127
|
-
emit(eventName, ...args) {
|
|
128
|
-
var _a;
|
|
129
|
-
(_a = this.events.get(eventName)) === null || _a === void 0 ? void 0 : _a.forEach(callback => callback(...args));
|
|
130
|
-
return this;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
exports.EventTarget = EventTarget;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/***/ }),
|
|
137
|
-
|
|
138
|
-
/***/ "./src/Token.ts":
|
|
139
|
-
/*!**********************!*\
|
|
140
|
-
!*** ./src/Token.ts ***!
|
|
141
|
-
\**********************/
|
|
142
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
146
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
147
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
148
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
149
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
150
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
151
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
155
|
-
exports.getToken = void 0;
|
|
156
|
-
const apiUrl = 'https://polfan.pl/webservice/api/auth/token';
|
|
157
|
-
const defaultClientName = 'Polfan JS Library';
|
|
158
|
-
function getToken(login, password, clientName = defaultClientName) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
const response = yield fetch(apiUrl, {
|
|
161
|
-
method: 'POST',
|
|
162
|
-
headers: {
|
|
163
|
-
'Content-Type': 'application/json',
|
|
164
|
-
Accept: 'application/json'
|
|
165
|
-
},
|
|
166
|
-
body: JSON.stringify({
|
|
167
|
-
login, password, client_name: clientName
|
|
168
|
-
})
|
|
169
|
-
});
|
|
170
|
-
return response.json();
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
exports.getToken = getToken;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/***/ }),
|
|
177
|
-
|
|
178
|
-
/***/ "./src/connections/ConnectionInterface.ts":
|
|
179
|
-
/*!************************************************!*\
|
|
180
|
-
!*** ./src/connections/ConnectionInterface.ts ***!
|
|
181
|
-
\************************************************/
|
|
182
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
186
|
-
exports.ConnectionEvent = exports.ConnectionState = void 0;
|
|
187
|
-
var ConnectionState;
|
|
188
|
-
(function (ConnectionState) {
|
|
189
|
-
ConnectionState[ConnectionState["pending"] = 0] = "pending";
|
|
190
|
-
ConnectionState[ConnectionState["ready"] = 1] = "ready";
|
|
191
|
-
ConnectionState[ConnectionState["disconnected"] = 2] = "disconnected";
|
|
192
|
-
})(ConnectionState = exports.ConnectionState || (exports.ConnectionState = {}));
|
|
193
|
-
var ConnectionEvent;
|
|
194
|
-
(function (ConnectionEvent) {
|
|
195
|
-
ConnectionEvent["message"] = "message";
|
|
196
|
-
ConnectionEvent["connect"] = "connect";
|
|
197
|
-
ConnectionEvent["disconnect"] = "disconnect";
|
|
198
|
-
})(ConnectionEvent = exports.ConnectionEvent || (exports.ConnectionEvent = {}));
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
/***/ }),
|
|
202
|
-
|
|
203
|
-
/***/ "./src/connections/WebApiConnection.ts":
|
|
204
|
-
/*!*********************************************!*\
|
|
205
|
-
!*** ./src/connections/WebApiConnection.ts ***!
|
|
206
|
-
\*********************************************/
|
|
207
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
211
|
-
exports.WebApiConnection = void 0;
|
|
212
|
-
const ConnectionInterface_1 = __webpack_require__(/*! ./ConnectionInterface */ "./src/connections/ConnectionInterface.ts");
|
|
213
|
-
const ObservableInterface_1 = __webpack_require__(/*! ../ObservableInterface */ "./src/ObservableInterface.ts");
|
|
214
|
-
class WebApiConnection extends ObservableInterface_1.EventTarget {
|
|
215
|
-
constructor(config) {
|
|
216
|
-
super();
|
|
217
|
-
this.config = config;
|
|
218
|
-
this.state = ConnectionInterface_1.ConnectionState.ready;
|
|
219
|
-
}
|
|
220
|
-
connect() {
|
|
221
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.connect);
|
|
222
|
-
}
|
|
223
|
-
disconnect() {
|
|
224
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.disconnect);
|
|
225
|
-
}
|
|
226
|
-
send(data) {
|
|
227
|
-
fetch(this.config.url, {
|
|
228
|
-
method: 'POST',
|
|
229
|
-
headers: {
|
|
230
|
-
Authorization: `Bearer ${this.config.token}`,
|
|
231
|
-
ContentType: 'application/json',
|
|
232
|
-
Accept: 'application/json'
|
|
233
|
-
},
|
|
234
|
-
body: JSON.stringify(data)
|
|
235
|
-
})
|
|
236
|
-
.then((response) => response.text())
|
|
237
|
-
.then(this.onMessage);
|
|
238
|
-
}
|
|
239
|
-
onMessage(message) {
|
|
240
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.message, message);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
exports.WebApiConnection = WebApiConnection;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
/***/ }),
|
|
247
|
-
|
|
248
|
-
/***/ "./src/connections/WebSocketConnection.ts":
|
|
249
|
-
/*!************************************************!*\
|
|
250
|
-
!*** ./src/connections/WebSocketConnection.ts ***!
|
|
251
|
-
\************************************************/
|
|
252
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
256
|
-
exports.WebSocketConnection = void 0;
|
|
257
|
-
const ObservableInterface_1 = __webpack_require__(/*! ../ObservableInterface */ "./src/ObservableInterface.ts");
|
|
258
|
-
const ConnectionInterface_1 = __webpack_require__(/*! ./ConnectionInterface */ "./src/connections/ConnectionInterface.ts");
|
|
259
|
-
class WebSocketConnection extends ObservableInterface_1.EventTarget {
|
|
260
|
-
constructor(config) {
|
|
261
|
-
super();
|
|
262
|
-
this.config = config;
|
|
263
|
-
this.state = ConnectionInterface_1.ConnectionState.disconnected;
|
|
264
|
-
this.ws = null;
|
|
265
|
-
}
|
|
266
|
-
connect() {
|
|
267
|
-
this.ws = new WebSocket(`${this.config.url}?token=${this.config.token}`);
|
|
268
|
-
this.ws.onopen = () => this.onOpen();
|
|
269
|
-
this.ws.onclose = () => this.onClose();
|
|
270
|
-
this.ws.onerror = () => this.onClose();
|
|
271
|
-
this.ws.onmessage = ev => this.onMessage(ev);
|
|
272
|
-
}
|
|
273
|
-
disconnect() {
|
|
274
|
-
var _a;
|
|
275
|
-
(_a = this.ws) === null || _a === void 0 ? void 0 : _a.close();
|
|
276
|
-
}
|
|
277
|
-
send(data) {
|
|
278
|
-
var _a;
|
|
279
|
-
(_a = this.ws) === null || _a === void 0 ? void 0 : _a.send(data);
|
|
280
|
-
}
|
|
281
|
-
onMessage(event) {
|
|
282
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.message, event.data);
|
|
283
|
-
}
|
|
284
|
-
onClose() {
|
|
285
|
-
this.state = ConnectionInterface_1.ConnectionState.disconnected;
|
|
286
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.disconnect);
|
|
287
|
-
}
|
|
288
|
-
onOpen() {
|
|
289
|
-
this.state = ConnectionInterface_1.ConnectionState.ready;
|
|
290
|
-
this.emit(ConnectionInterface_1.ConnectionEvent.connect);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
exports.WebSocketConnection = WebSocketConnection;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
/***/ }),
|
|
297
|
-
|
|
298
|
-
/***/ "./src/dtos/Dto.ts":
|
|
299
|
-
/*!*************************!*\
|
|
300
|
-
!*** ./src/dtos/Dto.ts ***!
|
|
301
|
-
\*************************/
|
|
302
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
306
|
-
exports.Dto = exports.castArray = exports.cast = void 0;
|
|
307
|
-
function cast(data, dto) {
|
|
308
|
-
if (data instanceof dto) {
|
|
309
|
-
return data;
|
|
310
|
-
}
|
|
311
|
-
return new dto(data);
|
|
312
|
-
}
|
|
313
|
-
exports.cast = cast;
|
|
314
|
-
function castArray(data, dto) {
|
|
315
|
-
if (!Array.isArray(data))
|
|
316
|
-
throw new Error(`Passed data is not an array of ${dto.name}`);
|
|
317
|
-
return data.map(item => cast(item, dto));
|
|
318
|
-
}
|
|
319
|
-
exports.castArray = castArray;
|
|
320
|
-
class Dto {
|
|
321
|
-
constructor(...args) {
|
|
322
|
-
}
|
|
323
|
-
toJson(overrideBy = {}) {
|
|
324
|
-
return JSON.stringify(this.toRaw(overrideBy));
|
|
325
|
-
}
|
|
326
|
-
toRaw(overrideBy = {}) {
|
|
327
|
-
const object = {};
|
|
328
|
-
Object.keys(this).forEach(key => {
|
|
329
|
-
if (overrideBy.hasOwnProperty(key)) {
|
|
330
|
-
object[key] = overrideBy[key];
|
|
331
|
-
}
|
|
332
|
-
else if (this[key] instanceof Dto) {
|
|
333
|
-
object[key] = this[key].toRaw();
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
object[key] = this[key];
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
return object;
|
|
340
|
-
}
|
|
341
|
-
clone(overrideBy = {}) {
|
|
342
|
-
return new this.constructor(this.toRaw(overrideBy));
|
|
343
|
-
}
|
|
344
|
-
fill(data, overrideBy = {}) {
|
|
345
|
-
Object.assign(this, Object.assign(Object.assign({}, data), overrideBy));
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
exports.Dto = Dto;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
/***/ }),
|
|
352
|
-
|
|
353
|
-
/***/ "./src/dtos/Message.ts":
|
|
354
|
-
/*!*****************************!*\
|
|
355
|
-
!*** ./src/dtos/Message.ts ***!
|
|
356
|
-
\*****************************/
|
|
357
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
361
|
-
exports.Message = void 0;
|
|
362
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
363
|
-
const User_1 = __webpack_require__(/*! ./User */ "./src/dtos/User.ts");
|
|
364
|
-
class Message extends Dto_1.Dto {
|
|
365
|
-
constructor(data) {
|
|
366
|
-
super();
|
|
367
|
-
this.fill(data, {
|
|
368
|
-
author: (0, Dto_1.cast)(data.author, User_1.User),
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
exports.Message = Message;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
/***/ }),
|
|
376
|
-
|
|
377
|
-
/***/ "./src/dtos/Permission.ts":
|
|
378
|
-
/*!********************************!*\
|
|
379
|
-
!*** ./src/dtos/Permission.ts ***!
|
|
380
|
-
\********************************/
|
|
381
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
385
|
-
exports.Permission = void 0;
|
|
386
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
387
|
-
class Permission extends Dto_1.Dto {
|
|
388
|
-
constructor(data) {
|
|
389
|
-
super(data);
|
|
390
|
-
this.fill(data);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
exports.Permission = Permission;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
/***/ }),
|
|
397
|
-
|
|
398
|
-
/***/ "./src/dtos/Role.ts":
|
|
399
|
-
/*!**************************!*\
|
|
400
|
-
!*** ./src/dtos/Role.ts ***!
|
|
401
|
-
\**************************/
|
|
402
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
406
|
-
exports.Role = void 0;
|
|
407
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
408
|
-
class Role extends Dto_1.Dto {
|
|
409
|
-
constructor(data) {
|
|
410
|
-
super();
|
|
411
|
-
this.fill(data);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
exports.Role = Role;
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
/***/ }),
|
|
418
|
-
|
|
419
|
-
/***/ "./src/dtos/Room.ts":
|
|
420
|
-
/*!**************************!*\
|
|
421
|
-
!*** ./src/dtos/Room.ts ***!
|
|
422
|
-
\**************************/
|
|
423
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
427
|
-
exports.Room = void 0;
|
|
428
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
429
|
-
const Topic_1 = __webpack_require__(/*! ./Topic */ "./src/dtos/Topic.ts");
|
|
430
|
-
class Room extends Dto_1.Dto {
|
|
431
|
-
constructor(data) {
|
|
432
|
-
super();
|
|
433
|
-
this.fill(data, {
|
|
434
|
-
topics: (0, Dto_1.castArray)(data.topics, Topic_1.Topic),
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
exports.Room = Room;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
/***/ }),
|
|
442
|
-
|
|
443
|
-
/***/ "./src/dtos/RoomMember.ts":
|
|
444
|
-
/*!********************************!*\
|
|
445
|
-
!*** ./src/dtos/RoomMember.ts ***!
|
|
446
|
-
\********************************/
|
|
447
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
451
|
-
exports.RoomMember = void 0;
|
|
452
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
453
|
-
const User_1 = __webpack_require__(/*! ./User */ "./src/dtos/User.ts");
|
|
454
|
-
class RoomMember extends Dto_1.Dto {
|
|
455
|
-
constructor(data) {
|
|
456
|
-
super();
|
|
457
|
-
this.fill(data, {
|
|
458
|
-
user: (0, Dto_1.cast)(data.user, User_1.User),
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
exports.RoomMember = RoomMember;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
/***/ }),
|
|
466
|
-
|
|
467
|
-
/***/ "./src/dtos/RoomSummary.ts":
|
|
468
|
-
/*!*********************************!*\
|
|
469
|
-
!*** ./src/dtos/RoomSummary.ts ***!
|
|
470
|
-
\*********************************/
|
|
471
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
475
|
-
exports.RoomSummary = void 0;
|
|
476
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
477
|
-
class RoomSummary extends Dto_1.Dto {
|
|
478
|
-
constructor(data) {
|
|
479
|
-
super();
|
|
480
|
-
this.fill(data);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
exports.RoomSummary = RoomSummary;
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
/***/ }),
|
|
487
|
-
|
|
488
|
-
/***/ "./src/dtos/Space.ts":
|
|
489
|
-
/*!***************************!*\
|
|
490
|
-
!*** ./src/dtos/Space.ts ***!
|
|
491
|
-
\***************************/
|
|
492
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
496
|
-
exports.Space = void 0;
|
|
497
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
498
|
-
const Role_1 = __webpack_require__(/*! ./Role */ "./src/dtos/Role.ts");
|
|
499
|
-
class Space extends Dto_1.Dto {
|
|
500
|
-
constructor(data) {
|
|
501
|
-
super();
|
|
502
|
-
this.fill(data, {
|
|
503
|
-
roles: (0, Dto_1.castArray)(data.roles, Role_1.Role)
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
exports.Space = Space;
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
/***/ }),
|
|
511
|
-
|
|
512
|
-
/***/ "./src/dtos/SpaceMember.ts":
|
|
513
|
-
/*!*********************************!*\
|
|
514
|
-
!*** ./src/dtos/SpaceMember.ts ***!
|
|
515
|
-
\*********************************/
|
|
516
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
520
|
-
exports.SpaceMember = void 0;
|
|
521
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
522
|
-
const User_1 = __webpack_require__(/*! ./User */ "./src/dtos/User.ts");
|
|
523
|
-
class SpaceMember extends Dto_1.Dto {
|
|
524
|
-
constructor(data) {
|
|
525
|
-
super();
|
|
526
|
-
this.fill(data, {
|
|
527
|
-
user: (0, Dto_1.castArray)(data.user, User_1.User),
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
exports.SpaceMember = SpaceMember;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
/***/ }),
|
|
535
|
-
|
|
536
|
-
/***/ "./src/dtos/Topic.ts":
|
|
537
|
-
/*!***************************!*\
|
|
538
|
-
!*** ./src/dtos/Topic.ts ***!
|
|
539
|
-
\***************************/
|
|
540
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
544
|
-
exports.Topic = void 0;
|
|
545
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
546
|
-
class Topic extends Dto_1.Dto {
|
|
547
|
-
constructor(data) {
|
|
548
|
-
super();
|
|
549
|
-
this.fill(data);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
exports.Topic = Topic;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
/***/ }),
|
|
556
|
-
|
|
557
|
-
/***/ "./src/dtos/User.ts":
|
|
558
|
-
/*!**************************!*\
|
|
559
|
-
!*** ./src/dtos/User.ts ***!
|
|
560
|
-
\**************************/
|
|
561
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
565
|
-
exports.User = void 0;
|
|
566
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
567
|
-
class User extends Dto_1.Dto {
|
|
568
|
-
constructor(data) {
|
|
569
|
-
super();
|
|
570
|
-
this.fill(data);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
exports.User = User;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
/***/ }),
|
|
577
|
-
|
|
578
|
-
/***/ "./src/dtos/UserState.ts":
|
|
579
|
-
/*!*******************************!*\
|
|
580
|
-
!*** ./src/dtos/UserState.ts ***!
|
|
581
|
-
\*******************************/
|
|
582
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
586
|
-
exports.UserState = void 0;
|
|
587
|
-
const Space_1 = __webpack_require__(/*! ./Space */ "./src/dtos/Space.ts");
|
|
588
|
-
const Room_1 = __webpack_require__(/*! ./Room */ "./src/dtos/Room.ts");
|
|
589
|
-
const Dto_1 = __webpack_require__(/*! ./Dto */ "./src/dtos/Dto.ts");
|
|
590
|
-
class UserState extends Dto_1.Dto {
|
|
591
|
-
constructor(data) {
|
|
592
|
-
super();
|
|
593
|
-
this.fill(data, {
|
|
594
|
-
spaces: (0, Dto_1.castArray)(data.spaces, Space_1.Space),
|
|
595
|
-
rooms: (0, Dto_1.castArray)(data.rooms, Room_1.Room),
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
exports.UserState = UserState;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
/***/ }),
|
|
603
|
-
|
|
604
|
-
/***/ "./src/dtos/protocol/Envelope.ts":
|
|
605
|
-
/*!***************************************!*\
|
|
606
|
-
!*** ./src/dtos/protocol/Envelope.ts ***!
|
|
607
|
-
\***************************************/
|
|
608
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
612
|
-
exports.Envelope = void 0;
|
|
613
|
-
const Dto_1 = __webpack_require__(/*! ../Dto */ "./src/dtos/Dto.ts");
|
|
614
|
-
const EnvelopeMeta_1 = __webpack_require__(/*! ./EnvelopeMeta */ "./src/dtos/protocol/EnvelopeMeta.ts");
|
|
615
|
-
class Envelope extends Dto_1.Dto {
|
|
616
|
-
constructor(data) {
|
|
617
|
-
super();
|
|
618
|
-
this.fill(data, {
|
|
619
|
-
meta: (0, Dto_1.cast)(data.meta, EnvelopeMeta_1.EnvelopeMeta),
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
exports.Envelope = Envelope;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
/***/ }),
|
|
627
|
-
|
|
628
|
-
/***/ "./src/dtos/protocol/EnvelopeMeta.ts":
|
|
629
|
-
/*!*******************************************!*\
|
|
630
|
-
!*** ./src/dtos/protocol/EnvelopeMeta.ts ***!
|
|
631
|
-
\*******************************************/
|
|
632
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
636
|
-
exports.EnvelopeMeta = void 0;
|
|
637
|
-
const Dto_1 = __webpack_require__(/*! ../Dto */ "./src/dtos/Dto.ts");
|
|
638
|
-
class EnvelopeMeta extends Dto_1.Dto {
|
|
639
|
-
constructor(data) {
|
|
640
|
-
super();
|
|
641
|
-
this.fill(data);
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
exports.EnvelopeMeta = EnvelopeMeta;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
/***/ }),
|
|
648
|
-
|
|
649
|
-
/***/ "./src/dtos/protocol/commands/AssignRole.ts":
|
|
650
|
-
/*!**************************************************!*\
|
|
651
|
-
!*** ./src/dtos/protocol/commands/AssignRole.ts ***!
|
|
652
|
-
\**************************************************/
|
|
653
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
657
|
-
exports.AssignRole = void 0;
|
|
658
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
659
|
-
class AssignRole extends Dto_1.Dto {
|
|
660
|
-
constructor(data) {
|
|
661
|
-
super();
|
|
662
|
-
this.fill(data);
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
exports.AssignRole = AssignRole;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
/***/ }),
|
|
669
|
-
|
|
670
|
-
/***/ "./src/dtos/protocol/commands/CreateMessage.ts":
|
|
671
|
-
/*!*****************************************************!*\
|
|
672
|
-
!*** ./src/dtos/protocol/commands/CreateMessage.ts ***!
|
|
673
|
-
\*****************************************************/
|
|
674
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
678
|
-
exports.CreateMessage = void 0;
|
|
679
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
680
|
-
class CreateMessage extends Dto_1.Dto {
|
|
681
|
-
constructor(data) {
|
|
682
|
-
super();
|
|
683
|
-
this.fill(data);
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
exports.CreateMessage = CreateMessage;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
/***/ }),
|
|
690
|
-
|
|
691
|
-
/***/ "./src/dtos/protocol/commands/CreateRole.ts":
|
|
692
|
-
/*!**************************************************!*\
|
|
693
|
-
!*** ./src/dtos/protocol/commands/CreateRole.ts ***!
|
|
694
|
-
\**************************************************/
|
|
695
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
699
|
-
exports.CreateRole = void 0;
|
|
700
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
701
|
-
class CreateRole extends Dto_1.Dto {
|
|
702
|
-
constructor(data) {
|
|
703
|
-
super();
|
|
704
|
-
this.fill(data);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
exports.CreateRole = CreateRole;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
/***/ }),
|
|
711
|
-
|
|
712
|
-
/***/ "./src/dtos/protocol/commands/CreateRoom.ts":
|
|
713
|
-
/*!**************************************************!*\
|
|
714
|
-
!*** ./src/dtos/protocol/commands/CreateRoom.ts ***!
|
|
715
|
-
\**************************************************/
|
|
716
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
720
|
-
exports.CreateRoom = void 0;
|
|
721
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
722
|
-
class CreateRoom extends Dto_1.Dto {
|
|
723
|
-
constructor(data) {
|
|
724
|
-
super();
|
|
725
|
-
this.fill(data);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
exports.CreateRoom = CreateRoom;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
/***/ }),
|
|
732
|
-
|
|
733
|
-
/***/ "./src/dtos/protocol/commands/CreateSpace.ts":
|
|
734
|
-
/*!***************************************************!*\
|
|
735
|
-
!*** ./src/dtos/protocol/commands/CreateSpace.ts ***!
|
|
736
|
-
\***************************************************/
|
|
737
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
741
|
-
exports.CreateSpace = void 0;
|
|
742
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
743
|
-
class CreateSpace extends Dto_1.Dto {
|
|
744
|
-
constructor(data) {
|
|
745
|
-
super();
|
|
746
|
-
this.fill(data);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
exports.CreateSpace = CreateSpace;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
/***/ }),
|
|
753
|
-
|
|
754
|
-
/***/ "./src/dtos/protocol/commands/CreateTopic.ts":
|
|
755
|
-
/*!***************************************************!*\
|
|
756
|
-
!*** ./src/dtos/protocol/commands/CreateTopic.ts ***!
|
|
757
|
-
\***************************************************/
|
|
758
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
762
|
-
exports.CreateTopic = void 0;
|
|
763
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
764
|
-
class CreateTopic extends Dto_1.Dto {
|
|
765
|
-
constructor(data) {
|
|
766
|
-
super();
|
|
767
|
-
this.fill(data);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
exports.CreateTopic = CreateTopic;
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
/***/ }),
|
|
774
|
-
|
|
775
|
-
/***/ "./src/dtos/protocol/commands/DeassignRole.ts":
|
|
776
|
-
/*!****************************************************!*\
|
|
777
|
-
!*** ./src/dtos/protocol/commands/DeassignRole.ts ***!
|
|
778
|
-
\****************************************************/
|
|
779
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
783
|
-
exports.DeassignRole = void 0;
|
|
784
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
785
|
-
class DeassignRole extends Dto_1.Dto {
|
|
786
|
-
constructor(data) {
|
|
787
|
-
super();
|
|
788
|
-
this.fill(data);
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
exports.DeassignRole = DeassignRole;
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
/***/ }),
|
|
795
|
-
|
|
796
|
-
/***/ "./src/dtos/protocol/commands/DeleteRole.ts":
|
|
797
|
-
/*!**************************************************!*\
|
|
798
|
-
!*** ./src/dtos/protocol/commands/DeleteRole.ts ***!
|
|
799
|
-
\**************************************************/
|
|
800
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
804
|
-
exports.DeleteRole = void 0;
|
|
805
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
806
|
-
class DeleteRole extends Dto_1.Dto {
|
|
807
|
-
constructor(data) {
|
|
808
|
-
super();
|
|
809
|
-
this.fill(data);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
exports.DeleteRole = DeleteRole;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
/***/ }),
|
|
816
|
-
|
|
817
|
-
/***/ "./src/dtos/protocol/commands/DeleteRoom.ts":
|
|
818
|
-
/*!**************************************************!*\
|
|
819
|
-
!*** ./src/dtos/protocol/commands/DeleteRoom.ts ***!
|
|
820
|
-
\**************************************************/
|
|
821
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
825
|
-
exports.DeleteRoom = void 0;
|
|
826
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
827
|
-
class DeleteRoom extends Dto_1.Dto {
|
|
828
|
-
constructor(data) {
|
|
829
|
-
super();
|
|
830
|
-
this.fill(data);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
exports.DeleteRoom = DeleteRoom;
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
/***/ }),
|
|
837
|
-
|
|
838
|
-
/***/ "./src/dtos/protocol/commands/DeleteSpace.ts":
|
|
839
|
-
/*!***************************************************!*\
|
|
840
|
-
!*** ./src/dtos/protocol/commands/DeleteSpace.ts ***!
|
|
841
|
-
\***************************************************/
|
|
842
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
846
|
-
exports.DeleteSpace = void 0;
|
|
847
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
848
|
-
class DeleteSpace extends Dto_1.Dto {
|
|
849
|
-
constructor(data) {
|
|
850
|
-
super();
|
|
851
|
-
this.fill(data);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
exports.DeleteSpace = DeleteSpace;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
/***/ }),
|
|
858
|
-
|
|
859
|
-
/***/ "./src/dtos/protocol/commands/DeleteTopic.ts":
|
|
860
|
-
/*!***************************************************!*\
|
|
861
|
-
!*** ./src/dtos/protocol/commands/DeleteTopic.ts ***!
|
|
862
|
-
\***************************************************/
|
|
863
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
867
|
-
exports.DeleteTopic = void 0;
|
|
868
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
869
|
-
class DeleteTopic extends Dto_1.Dto {
|
|
870
|
-
constructor(data) {
|
|
871
|
-
super();
|
|
872
|
-
this.fill(data);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
exports.DeleteTopic = DeleteTopic;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
/***/ }),
|
|
879
|
-
|
|
880
|
-
/***/ "./src/dtos/protocol/commands/GetComputedPermissions.ts":
|
|
881
|
-
/*!**************************************************************!*\
|
|
882
|
-
!*** ./src/dtos/protocol/commands/GetComputedPermissions.ts ***!
|
|
883
|
-
\**************************************************************/
|
|
884
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
888
|
-
exports.GetComputedPermissions = void 0;
|
|
889
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
890
|
-
class GetComputedPermissions extends Dto_1.Dto {
|
|
891
|
-
constructor(data) {
|
|
892
|
-
super();
|
|
893
|
-
this.fill(data);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
exports.GetComputedPermissions = GetComputedPermissions;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
/***/ }),
|
|
900
|
-
|
|
901
|
-
/***/ "./src/dtos/protocol/commands/GetRolePermissions.ts":
|
|
902
|
-
/*!**********************************************************!*\
|
|
903
|
-
!*** ./src/dtos/protocol/commands/GetRolePermissions.ts ***!
|
|
904
|
-
\**********************************************************/
|
|
905
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
909
|
-
exports.GetRolePermissions = void 0;
|
|
910
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
911
|
-
class GetRolePermissions extends Dto_1.Dto {
|
|
912
|
-
constructor(data) {
|
|
913
|
-
super();
|
|
914
|
-
this.fill(data);
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
exports.GetRolePermissions = GetRolePermissions;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
/***/ }),
|
|
921
|
-
|
|
922
|
-
/***/ "./src/dtos/protocol/commands/GetRoomMembers.ts":
|
|
923
|
-
/*!******************************************************!*\
|
|
924
|
-
!*** ./src/dtos/protocol/commands/GetRoomMembers.ts ***!
|
|
925
|
-
\******************************************************/
|
|
926
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
930
|
-
exports.GetRoomMembers = void 0;
|
|
931
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
932
|
-
class GetRoomMembers extends Dto_1.Dto {
|
|
933
|
-
constructor(data) {
|
|
934
|
-
super();
|
|
935
|
-
this.fill(data);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
exports.GetRoomMembers = GetRoomMembers;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
/***/ }),
|
|
942
|
-
|
|
943
|
-
/***/ "./src/dtos/protocol/commands/GetSession.ts":
|
|
944
|
-
/*!**************************************************!*\
|
|
945
|
-
!*** ./src/dtos/protocol/commands/GetSession.ts ***!
|
|
946
|
-
\**************************************************/
|
|
947
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
951
|
-
exports.GetSession = void 0;
|
|
952
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
953
|
-
class GetSession extends Dto_1.Dto {
|
|
954
|
-
constructor(data) {
|
|
955
|
-
super();
|
|
956
|
-
this.fill(data);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
exports.GetSession = GetSession;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
/***/ }),
|
|
963
|
-
|
|
964
|
-
/***/ "./src/dtos/protocol/commands/GetSpaceMembers.ts":
|
|
965
|
-
/*!*******************************************************!*\
|
|
966
|
-
!*** ./src/dtos/protocol/commands/GetSpaceMembers.ts ***!
|
|
967
|
-
\*******************************************************/
|
|
968
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
972
|
-
exports.GetSpaceMembers = void 0;
|
|
973
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
974
|
-
class GetSpaceMembers extends Dto_1.Dto {
|
|
975
|
-
constructor(data) {
|
|
976
|
-
super();
|
|
977
|
-
this.fill(data);
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
exports.GetSpaceMembers = GetSpaceMembers;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
/***/ }),
|
|
984
|
-
|
|
985
|
-
/***/ "./src/dtos/protocol/commands/GetSpaceRooms.ts":
|
|
986
|
-
/*!*****************************************************!*\
|
|
987
|
-
!*** ./src/dtos/protocol/commands/GetSpaceRooms.ts ***!
|
|
988
|
-
\*****************************************************/
|
|
989
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
993
|
-
exports.GetSpaceRooms = void 0;
|
|
994
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
995
|
-
class GetSpaceRooms extends Dto_1.Dto {
|
|
996
|
-
constructor(data) {
|
|
997
|
-
super();
|
|
998
|
-
this.fill(data);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
exports.GetSpaceRooms = GetSpaceRooms;
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
/***/ }),
|
|
1005
|
-
|
|
1006
|
-
/***/ "./src/dtos/protocol/commands/GetUserPermissions.ts":
|
|
1007
|
-
/*!**********************************************************!*\
|
|
1008
|
-
!*** ./src/dtos/protocol/commands/GetUserPermissions.ts ***!
|
|
1009
|
-
\**********************************************************/
|
|
1010
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1014
|
-
exports.GetUserPermissions = void 0;
|
|
1015
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1016
|
-
class GetUserPermissions extends Dto_1.Dto {
|
|
1017
|
-
constructor(data) {
|
|
1018
|
-
super();
|
|
1019
|
-
this.fill(data);
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
exports.GetUserPermissions = GetUserPermissions;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
/***/ }),
|
|
1026
|
-
|
|
1027
|
-
/***/ "./src/dtos/protocol/commands/JoinRoom.ts":
|
|
1028
|
-
/*!************************************************!*\
|
|
1029
|
-
!*** ./src/dtos/protocol/commands/JoinRoom.ts ***!
|
|
1030
|
-
\************************************************/
|
|
1031
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1035
|
-
exports.JoinRoom = void 0;
|
|
1036
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1037
|
-
class JoinRoom extends Dto_1.Dto {
|
|
1038
|
-
constructor(data) {
|
|
1039
|
-
super();
|
|
1040
|
-
this.fill(data);
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
exports.JoinRoom = JoinRoom;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
/***/ }),
|
|
1047
|
-
|
|
1048
|
-
/***/ "./src/dtos/protocol/commands/JoinSpace.ts":
|
|
1049
|
-
/*!*************************************************!*\
|
|
1050
|
-
!*** ./src/dtos/protocol/commands/JoinSpace.ts ***!
|
|
1051
|
-
\*************************************************/
|
|
1052
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1056
|
-
exports.JoinSpace = void 0;
|
|
1057
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1058
|
-
class JoinSpace extends Dto_1.Dto {
|
|
1059
|
-
constructor(data) {
|
|
1060
|
-
super();
|
|
1061
|
-
this.fill(data);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
exports.JoinSpace = JoinSpace;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
/***/ }),
|
|
1068
|
-
|
|
1069
|
-
/***/ "./src/dtos/protocol/commands/LeaveRoom.ts":
|
|
1070
|
-
/*!*************************************************!*\
|
|
1071
|
-
!*** ./src/dtos/protocol/commands/LeaveRoom.ts ***!
|
|
1072
|
-
\*************************************************/
|
|
1073
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1077
|
-
exports.LeaveRoom = void 0;
|
|
1078
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1079
|
-
class LeaveRoom extends Dto_1.Dto {
|
|
1080
|
-
constructor(data) {
|
|
1081
|
-
super();
|
|
1082
|
-
this.fill(data);
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
exports.LeaveRoom = LeaveRoom;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
/***/ }),
|
|
1089
|
-
|
|
1090
|
-
/***/ "./src/dtos/protocol/commands/LeaveSpace.ts":
|
|
1091
|
-
/*!**************************************************!*\
|
|
1092
|
-
!*** ./src/dtos/protocol/commands/LeaveSpace.ts ***!
|
|
1093
|
-
\**************************************************/
|
|
1094
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1098
|
-
exports.LeaveSpace = void 0;
|
|
1099
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1100
|
-
class LeaveSpace extends Dto_1.Dto {
|
|
1101
|
-
constructor(data) {
|
|
1102
|
-
super();
|
|
1103
|
-
this.fill(data);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
exports.LeaveSpace = LeaveSpace;
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
/***/ }),
|
|
1110
|
-
|
|
1111
|
-
/***/ "./src/dtos/protocol/commands/SetRolePermissions.ts":
|
|
1112
|
-
/*!**********************************************************!*\
|
|
1113
|
-
!*** ./src/dtos/protocol/commands/SetRolePermissions.ts ***!
|
|
1114
|
-
\**********************************************************/
|
|
1115
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1119
|
-
exports.SetRolePermissions = void 0;
|
|
1120
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1121
|
-
const Permission_1 = __webpack_require__(/*! ../../Permission */ "./src/dtos/Permission.ts");
|
|
1122
|
-
class SetRolePermissions extends Dto_1.Dto {
|
|
1123
|
-
constructor(data) {
|
|
1124
|
-
super();
|
|
1125
|
-
this.fill(data, {
|
|
1126
|
-
permissions: (0, Dto_1.castArray)(data.permissions, Permission_1.Permission),
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
exports.SetRolePermissions = SetRolePermissions;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
/***/ }),
|
|
1134
|
-
|
|
1135
|
-
/***/ "./src/dtos/protocol/commands/SetUserPermissions.ts":
|
|
1136
|
-
/*!**********************************************************!*\
|
|
1137
|
-
!*** ./src/dtos/protocol/commands/SetUserPermissions.ts ***!
|
|
1138
|
-
\**********************************************************/
|
|
1139
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1143
|
-
exports.SetUserPermissions = void 0;
|
|
1144
|
-
const Permission_1 = __webpack_require__(/*! ../../Permission */ "./src/dtos/Permission.ts");
|
|
1145
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1146
|
-
class SetUserPermissions extends Dto_1.Dto {
|
|
1147
|
-
constructor(data) {
|
|
1148
|
-
super();
|
|
1149
|
-
this.fill(data, {
|
|
1150
|
-
permissions: (0, Dto_1.castArray)(data.permissions, Permission_1.Permission),
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
exports.SetUserPermissions = SetUserPermissions;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
/***/ }),
|
|
1158
|
-
|
|
1159
|
-
/***/ "./src/dtos/protocol/events/Bye.ts":
|
|
1160
|
-
/*!*****************************************!*\
|
|
1161
|
-
!*** ./src/dtos/protocol/events/Bye.ts ***!
|
|
1162
|
-
\*****************************************/
|
|
1163
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1167
|
-
exports.Bye = void 0;
|
|
1168
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1169
|
-
class Bye extends Dto_1.Dto {
|
|
1170
|
-
constructor(data) {
|
|
1171
|
-
super();
|
|
1172
|
-
this.fill(data);
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
exports.Bye = Bye;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
/***/ }),
|
|
1179
|
-
|
|
1180
|
-
/***/ "./src/dtos/protocol/events/Error.ts":
|
|
1181
|
-
/*!*******************************************!*\
|
|
1182
|
-
!*** ./src/dtos/protocol/events/Error.ts ***!
|
|
1183
|
-
\*******************************************/
|
|
1184
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1188
|
-
exports.Error = void 0;
|
|
1189
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1190
|
-
class Error extends Dto_1.Dto {
|
|
1191
|
-
constructor(data) {
|
|
1192
|
-
super();
|
|
1193
|
-
this.fill(data);
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
exports.Error = Error;
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
/***/ }),
|
|
1200
|
-
|
|
1201
|
-
/***/ "./src/dtos/protocol/events/NewMessage.ts":
|
|
1202
|
-
/*!************************************************!*\
|
|
1203
|
-
!*** ./src/dtos/protocol/events/NewMessage.ts ***!
|
|
1204
|
-
\************************************************/
|
|
1205
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1209
|
-
exports.NewMessage = void 0;
|
|
1210
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1211
|
-
const Message_1 = __webpack_require__(/*! ../../Message */ "./src/dtos/Message.ts");
|
|
1212
|
-
class NewMessage extends Dto_1.Dto {
|
|
1213
|
-
constructor(data) {
|
|
1214
|
-
super();
|
|
1215
|
-
this.fill(data, {
|
|
1216
|
-
message: (0, Dto_1.cast)(data.message, Message_1.Message),
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
exports.NewMessage = NewMessage;
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
/***/ }),
|
|
1224
|
-
|
|
1225
|
-
/***/ "./src/dtos/protocol/events/NewRole.ts":
|
|
1226
|
-
/*!*********************************************!*\
|
|
1227
|
-
!*** ./src/dtos/protocol/events/NewRole.ts ***!
|
|
1228
|
-
\*********************************************/
|
|
1229
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1233
|
-
exports.NewRole = void 0;
|
|
1234
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1235
|
-
const Role_1 = __webpack_require__(/*! ../../Role */ "./src/dtos/Role.ts");
|
|
1236
|
-
class NewRole extends Dto_1.Dto {
|
|
1237
|
-
constructor(data) {
|
|
1238
|
-
super();
|
|
1239
|
-
this.fill(data, {
|
|
1240
|
-
role: (0, Dto_1.cast)(data.role, Role_1.Role),
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
exports.NewRole = NewRole;
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
/***/ }),
|
|
1248
|
-
|
|
1249
|
-
/***/ "./src/dtos/protocol/events/NewRoom.ts":
|
|
1250
|
-
/*!*********************************************!*\
|
|
1251
|
-
!*** ./src/dtos/protocol/events/NewRoom.ts ***!
|
|
1252
|
-
\*********************************************/
|
|
1253
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1257
|
-
exports.NewRoom = void 0;
|
|
1258
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1259
|
-
const RoomSummary_1 = __webpack_require__(/*! ../../RoomSummary */ "./src/dtos/RoomSummary.ts");
|
|
1260
|
-
class NewRoom extends Dto_1.Dto {
|
|
1261
|
-
constructor(data) {
|
|
1262
|
-
super();
|
|
1263
|
-
this.fill(data, {
|
|
1264
|
-
summary: (0, Dto_1.cast)(data.summary, RoomSummary_1.RoomSummary),
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
exports.NewRoom = NewRoom;
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
/***/ }),
|
|
1272
|
-
|
|
1273
|
-
/***/ "./src/dtos/protocol/events/NewTopic.ts":
|
|
1274
|
-
/*!**********************************************!*\
|
|
1275
|
-
!*** ./src/dtos/protocol/events/NewTopic.ts ***!
|
|
1276
|
-
\**********************************************/
|
|
1277
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1281
|
-
exports.NewTopic = void 0;
|
|
1282
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1283
|
-
const Topic_1 = __webpack_require__(/*! ../../Topic */ "./src/dtos/Topic.ts");
|
|
1284
|
-
class NewTopic extends Dto_1.Dto {
|
|
1285
|
-
constructor(data) {
|
|
1286
|
-
super();
|
|
1287
|
-
this.fill(data, {
|
|
1288
|
-
topic: (0, Dto_1.cast)(data.topic, Topic_1.Topic),
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
exports.NewTopic = NewTopic;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
/***/ }),
|
|
1296
|
-
|
|
1297
|
-
/***/ "./src/dtos/protocol/events/Ok.ts":
|
|
1298
|
-
/*!****************************************!*\
|
|
1299
|
-
!*** ./src/dtos/protocol/events/Ok.ts ***!
|
|
1300
|
-
\****************************************/
|
|
1301
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1305
|
-
exports.Ok = void 0;
|
|
1306
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1307
|
-
class Ok extends Dto_1.Dto {
|
|
1308
|
-
constructor(data) {
|
|
1309
|
-
super();
|
|
1310
|
-
this.fill(data);
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
exports.Ok = Ok;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
/***/ }),
|
|
1317
|
-
|
|
1318
|
-
/***/ "./src/dtos/protocol/events/Permissions.ts":
|
|
1319
|
-
/*!*************************************************!*\
|
|
1320
|
-
!*** ./src/dtos/protocol/events/Permissions.ts ***!
|
|
1321
|
-
\*************************************************/
|
|
1322
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1326
|
-
exports.Permissions = void 0;
|
|
1327
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1328
|
-
const Permission_1 = __webpack_require__(/*! ../../Permission */ "./src/dtos/Permission.ts");
|
|
1329
|
-
class Permissions extends Dto_1.Dto {
|
|
1330
|
-
constructor(data) {
|
|
1331
|
-
super();
|
|
1332
|
-
this.fill(data, {
|
|
1333
|
-
permissions: (0, Dto_1.castArray)(data.permissions, Permission_1.Permission),
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
exports.Permissions = Permissions;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
/***/ }),
|
|
1341
|
-
|
|
1342
|
-
/***/ "./src/dtos/protocol/events/RoleDeleted.ts":
|
|
1343
|
-
/*!*************************************************!*\
|
|
1344
|
-
!*** ./src/dtos/protocol/events/RoleDeleted.ts ***!
|
|
1345
|
-
\*************************************************/
|
|
1346
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1350
|
-
exports.RoleDeleted = void 0;
|
|
1351
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1352
|
-
class RoleDeleted extends Dto_1.Dto {
|
|
1353
|
-
constructor(data) {
|
|
1354
|
-
super();
|
|
1355
|
-
this.fill(data);
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
exports.RoleDeleted = RoleDeleted;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
/***/ }),
|
|
1362
|
-
|
|
1363
|
-
/***/ "./src/dtos/protocol/events/RoomDeleted.ts":
|
|
1364
|
-
/*!*************************************************!*\
|
|
1365
|
-
!*** ./src/dtos/protocol/events/RoomDeleted.ts ***!
|
|
1366
|
-
\*************************************************/
|
|
1367
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1371
|
-
exports.RoomDeleted = void 0;
|
|
1372
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1373
|
-
class RoomDeleted extends Dto_1.Dto {
|
|
1374
|
-
constructor(data) {
|
|
1375
|
-
super();
|
|
1376
|
-
this.fill(data);
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
exports.RoomDeleted = RoomDeleted;
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
/***/ }),
|
|
1383
|
-
|
|
1384
|
-
/***/ "./src/dtos/protocol/events/RoomJoined.ts":
|
|
1385
|
-
/*!************************************************!*\
|
|
1386
|
-
!*** ./src/dtos/protocol/events/RoomJoined.ts ***!
|
|
1387
|
-
\************************************************/
|
|
1388
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1392
|
-
exports.RoomJoined = void 0;
|
|
1393
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1394
|
-
const Room_1 = __webpack_require__(/*! ../../Room */ "./src/dtos/Room.ts");
|
|
1395
|
-
class RoomJoined extends Dto_1.Dto {
|
|
1396
|
-
constructor(data) {
|
|
1397
|
-
super();
|
|
1398
|
-
this.fill(data, {
|
|
1399
|
-
room: (0, Dto_1.cast)(data.room, Room_1.Room),
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
exports.RoomJoined = RoomJoined;
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
/***/ }),
|
|
1407
|
-
|
|
1408
|
-
/***/ "./src/dtos/protocol/events/RoomLeft.ts":
|
|
1409
|
-
/*!**********************************************!*\
|
|
1410
|
-
!*** ./src/dtos/protocol/events/RoomLeft.ts ***!
|
|
1411
|
-
\**********************************************/
|
|
1412
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1416
|
-
exports.RoomLeft = void 0;
|
|
1417
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1418
|
-
class RoomLeft extends Dto_1.Dto {
|
|
1419
|
-
constructor(data) {
|
|
1420
|
-
super();
|
|
1421
|
-
this.fill(data);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
exports.RoomLeft = RoomLeft;
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
/***/ }),
|
|
1428
|
-
|
|
1429
|
-
/***/ "./src/dtos/protocol/events/RoomMemberJoined.ts":
|
|
1430
|
-
/*!******************************************************!*\
|
|
1431
|
-
!*** ./src/dtos/protocol/events/RoomMemberJoined.ts ***!
|
|
1432
|
-
\******************************************************/
|
|
1433
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1437
|
-
exports.RoomMemberJoined = void 0;
|
|
1438
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1439
|
-
const RoomMember_1 = __webpack_require__(/*! ../../RoomMember */ "./src/dtos/RoomMember.ts");
|
|
1440
|
-
class RoomMemberJoined extends Dto_1.Dto {
|
|
1441
|
-
constructor(data) {
|
|
1442
|
-
super();
|
|
1443
|
-
this.fill(data, {
|
|
1444
|
-
member: (0, Dto_1.cast)(data.member, RoomMember_1.RoomMember),
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
exports.RoomMemberJoined = RoomMemberJoined;
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
/***/ }),
|
|
1452
|
-
|
|
1453
|
-
/***/ "./src/dtos/protocol/events/RoomMemberLeft.ts":
|
|
1454
|
-
/*!****************************************************!*\
|
|
1455
|
-
!*** ./src/dtos/protocol/events/RoomMemberLeft.ts ***!
|
|
1456
|
-
\****************************************************/
|
|
1457
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1461
|
-
exports.RoomMemberLeft = void 0;
|
|
1462
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1463
|
-
class RoomMemberLeft extends Dto_1.Dto {
|
|
1464
|
-
constructor(data) {
|
|
1465
|
-
super();
|
|
1466
|
-
this.fill(data);
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
exports.RoomMemberLeft = RoomMemberLeft;
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
/***/ }),
|
|
1473
|
-
|
|
1474
|
-
/***/ "./src/dtos/protocol/events/RoomMembers.ts":
|
|
1475
|
-
/*!*************************************************!*\
|
|
1476
|
-
!*** ./src/dtos/protocol/events/RoomMembers.ts ***!
|
|
1477
|
-
\*************************************************/
|
|
1478
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1482
|
-
exports.RoomMembers = void 0;
|
|
1483
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1484
|
-
const RoomMember_1 = __webpack_require__(/*! ../../RoomMember */ "./src/dtos/RoomMember.ts");
|
|
1485
|
-
class RoomMembers extends Dto_1.Dto {
|
|
1486
|
-
constructor(data) {
|
|
1487
|
-
super();
|
|
1488
|
-
this.fill(data, {
|
|
1489
|
-
members: (0, Dto_1.castArray)(data.members, RoomMember_1.RoomMember),
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
exports.RoomMembers = RoomMembers;
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
/***/ }),
|
|
1497
|
-
|
|
1498
|
-
/***/ "./src/dtos/protocol/events/Session.ts":
|
|
1499
|
-
/*!*********************************************!*\
|
|
1500
|
-
!*** ./src/dtos/protocol/events/Session.ts ***!
|
|
1501
|
-
\*********************************************/
|
|
1502
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1506
|
-
exports.Session = void 0;
|
|
1507
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1508
|
-
const UserState_1 = __webpack_require__(/*! ../../UserState */ "./src/dtos/UserState.ts");
|
|
1509
|
-
const User_1 = __webpack_require__(/*! ../../User */ "./src/dtos/User.ts");
|
|
1510
|
-
class Session extends Dto_1.Dto {
|
|
1511
|
-
constructor(data) {
|
|
1512
|
-
super();
|
|
1513
|
-
this.fill(data, {
|
|
1514
|
-
state: (0, Dto_1.cast)(data.state, UserState_1.UserState),
|
|
1515
|
-
user: (0, Dto_1.cast)(data.user, User_1.User),
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
}
|
|
1519
|
-
exports.Session = Session;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
/***/ }),
|
|
1523
|
-
|
|
1524
|
-
/***/ "./src/dtos/protocol/events/SpaceDeleted.ts":
|
|
1525
|
-
/*!**************************************************!*\
|
|
1526
|
-
!*** ./src/dtos/protocol/events/SpaceDeleted.ts ***!
|
|
1527
|
-
\**************************************************/
|
|
1528
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1532
|
-
exports.SpaceDeleted = void 0;
|
|
1533
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1534
|
-
class SpaceDeleted extends Dto_1.Dto {
|
|
1535
|
-
constructor(data) {
|
|
1536
|
-
super();
|
|
1537
|
-
this.fill(data);
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
exports.SpaceDeleted = SpaceDeleted;
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
/***/ }),
|
|
1544
|
-
|
|
1545
|
-
/***/ "./src/dtos/protocol/events/SpaceJoined.ts":
|
|
1546
|
-
/*!*************************************************!*\
|
|
1547
|
-
!*** ./src/dtos/protocol/events/SpaceJoined.ts ***!
|
|
1548
|
-
\*************************************************/
|
|
1549
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1553
|
-
exports.SpaceJoined = void 0;
|
|
1554
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1555
|
-
const Space_1 = __webpack_require__(/*! ../../Space */ "./src/dtos/Space.ts");
|
|
1556
|
-
class SpaceJoined extends Dto_1.Dto {
|
|
1557
|
-
constructor(data) {
|
|
1558
|
-
super();
|
|
1559
|
-
this.fill(data, {
|
|
1560
|
-
space: (0, Dto_1.cast)(data.space, Space_1.Space),
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
exports.SpaceJoined = SpaceJoined;
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
/***/ }),
|
|
1568
|
-
|
|
1569
|
-
/***/ "./src/dtos/protocol/events/SpaceLeft.ts":
|
|
1570
|
-
/*!***********************************************!*\
|
|
1571
|
-
!*** ./src/dtos/protocol/events/SpaceLeft.ts ***!
|
|
1572
|
-
\***********************************************/
|
|
1573
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1577
|
-
exports.SpaceLeft = void 0;
|
|
1578
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1579
|
-
class SpaceLeft extends Dto_1.Dto {
|
|
1580
|
-
constructor(data) {
|
|
1581
|
-
super();
|
|
1582
|
-
this.fill(data);
|
|
1583
|
-
}
|
|
1584
|
-
}
|
|
1585
|
-
exports.SpaceLeft = SpaceLeft;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
/***/ }),
|
|
1589
|
-
|
|
1590
|
-
/***/ "./src/dtos/protocol/events/SpaceMemberJoined.ts":
|
|
1591
|
-
/*!*******************************************************!*\
|
|
1592
|
-
!*** ./src/dtos/protocol/events/SpaceMemberJoined.ts ***!
|
|
1593
|
-
\*******************************************************/
|
|
1594
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1598
|
-
exports.SpaceMemberJoined = void 0;
|
|
1599
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1600
|
-
const SpaceMember_1 = __webpack_require__(/*! ../../SpaceMember */ "./src/dtos/SpaceMember.ts");
|
|
1601
|
-
class SpaceMemberJoined extends Dto_1.Dto {
|
|
1602
|
-
constructor(data) {
|
|
1603
|
-
super();
|
|
1604
|
-
this.fill(data, {
|
|
1605
|
-
member: (0, Dto_1.cast)(data.member, SpaceMember_1.SpaceMember),
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
exports.SpaceMemberJoined = SpaceMemberJoined;
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
/***/ }),
|
|
1613
|
-
|
|
1614
|
-
/***/ "./src/dtos/protocol/events/SpaceMemberLeft.ts":
|
|
1615
|
-
/*!*****************************************************!*\
|
|
1616
|
-
!*** ./src/dtos/protocol/events/SpaceMemberLeft.ts ***!
|
|
1617
|
-
\*****************************************************/
|
|
1618
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1622
|
-
exports.SpaceMemberLeft = void 0;
|
|
1623
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1624
|
-
class SpaceMemberLeft extends Dto_1.Dto {
|
|
1625
|
-
constructor(data) {
|
|
1626
|
-
super();
|
|
1627
|
-
this.fill(data);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
exports.SpaceMemberLeft = SpaceMemberLeft;
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
/***/ }),
|
|
1634
|
-
|
|
1635
|
-
/***/ "./src/dtos/protocol/events/SpaceMemberUpdate.ts":
|
|
1636
|
-
/*!*******************************************************!*\
|
|
1637
|
-
!*** ./src/dtos/protocol/events/SpaceMemberUpdate.ts ***!
|
|
1638
|
-
\*******************************************************/
|
|
1639
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1643
|
-
exports.SpaceMemberUpdate = void 0;
|
|
1644
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1645
|
-
const SpaceMember_1 = __webpack_require__(/*! ../../SpaceMember */ "./src/dtos/SpaceMember.ts");
|
|
1646
|
-
class SpaceMemberUpdate extends Dto_1.Dto {
|
|
1647
|
-
constructor(data) {
|
|
1648
|
-
super();
|
|
1649
|
-
this.fill(data, {
|
|
1650
|
-
member: (0, Dto_1.cast)(data.member, SpaceMember_1.SpaceMember),
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
exports.SpaceMemberUpdate = SpaceMemberUpdate;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
/***/ }),
|
|
1658
|
-
|
|
1659
|
-
/***/ "./src/dtos/protocol/events/SpaceMembers.ts":
|
|
1660
|
-
/*!**************************************************!*\
|
|
1661
|
-
!*** ./src/dtos/protocol/events/SpaceMembers.ts ***!
|
|
1662
|
-
\**************************************************/
|
|
1663
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1667
|
-
exports.SpaceMembers = void 0;
|
|
1668
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1669
|
-
const SpaceMember_1 = __webpack_require__(/*! ../../SpaceMember */ "./src/dtos/SpaceMember.ts");
|
|
1670
|
-
class SpaceMembers extends Dto_1.Dto {
|
|
1671
|
-
constructor(data) {
|
|
1672
|
-
super();
|
|
1673
|
-
this.fill(data, {
|
|
1674
|
-
members: (0, Dto_1.castArray)(data.members, SpaceMember_1.SpaceMember),
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
exports.SpaceMembers = SpaceMembers;
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
/***/ }),
|
|
1682
|
-
|
|
1683
|
-
/***/ "./src/dtos/protocol/events/SpaceRooms.ts":
|
|
1684
|
-
/*!************************************************!*\
|
|
1685
|
-
!*** ./src/dtos/protocol/events/SpaceRooms.ts ***!
|
|
1686
|
-
\************************************************/
|
|
1687
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1691
|
-
exports.SpaceRooms = void 0;
|
|
1692
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1693
|
-
const RoomSummary_1 = __webpack_require__(/*! ../../RoomSummary */ "./src/dtos/RoomSummary.ts");
|
|
1694
|
-
class SpaceRooms extends Dto_1.Dto {
|
|
1695
|
-
constructor(data) {
|
|
1696
|
-
super();
|
|
1697
|
-
this.fill(data, {
|
|
1698
|
-
summaries: (0, Dto_1.castArray)(data.summaries, RoomSummary_1.RoomSummary),
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
exports.SpaceRooms = SpaceRooms;
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
/***/ }),
|
|
1706
|
-
|
|
1707
|
-
/***/ "./src/dtos/protocol/events/TopicDeleted.ts":
|
|
1708
|
-
/*!**************************************************!*\
|
|
1709
|
-
!*** ./src/dtos/protocol/events/TopicDeleted.ts ***!
|
|
1710
|
-
\**************************************************/
|
|
1711
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1715
|
-
exports.TopicDeleted = void 0;
|
|
1716
|
-
const Dto_1 = __webpack_require__(/*! ../../Dto */ "./src/dtos/Dto.ts");
|
|
1717
|
-
class TopicDeleted extends Dto_1.Dto {
|
|
1718
|
-
constructor(data) {
|
|
1719
|
-
super();
|
|
1720
|
-
this.fill(data);
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
exports.TopicDeleted = TopicDeleted;
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
/***/ }),
|
|
1727
|
-
|
|
1728
|
-
/***/ "./src/protocol.ts":
|
|
1729
|
-
/*!*************************!*\
|
|
1730
|
-
!*** ./src/protocol.ts ***!
|
|
1731
|
-
\*************************/
|
|
1732
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1736
|
-
exports.commands = exports.events = void 0;
|
|
1737
|
-
const Bye_1 = __webpack_require__(/*! ./dtos/protocol/events/Bye */ "./src/dtos/protocol/events/Bye.ts");
|
|
1738
|
-
const Ok_1 = __webpack_require__(/*! ./dtos/protocol/events/Ok */ "./src/dtos/protocol/events/Ok.ts");
|
|
1739
|
-
const Error_1 = __webpack_require__(/*! ./dtos/protocol/events/Error */ "./src/dtos/protocol/events/Error.ts");
|
|
1740
|
-
const Session_1 = __webpack_require__(/*! ./dtos/protocol/events/Session */ "./src/dtos/protocol/events/Session.ts");
|
|
1741
|
-
const Permissions_1 = __webpack_require__(/*! ./dtos/protocol/events/Permissions */ "./src/dtos/protocol/events/Permissions.ts");
|
|
1742
|
-
const SpaceJoined_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceJoined */ "./src/dtos/protocol/events/SpaceJoined.ts");
|
|
1743
|
-
const SpaceLeft_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceLeft */ "./src/dtos/protocol/events/SpaceLeft.ts");
|
|
1744
|
-
const SpaceMemberJoined_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceMemberJoined */ "./src/dtos/protocol/events/SpaceMemberJoined.ts");
|
|
1745
|
-
const SpaceMemberLeft_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceMemberLeft */ "./src/dtos/protocol/events/SpaceMemberLeft.ts");
|
|
1746
|
-
const SpaceMemberUpdate_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceMemberUpdate */ "./src/dtos/protocol/events/SpaceMemberUpdate.ts");
|
|
1747
|
-
const SpaceDeleted_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceDeleted */ "./src/dtos/protocol/events/SpaceDeleted.ts");
|
|
1748
|
-
const SpaceMembers_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceMembers */ "./src/dtos/protocol/events/SpaceMembers.ts");
|
|
1749
|
-
const SpaceRooms_1 = __webpack_require__(/*! ./dtos/protocol/events/SpaceRooms */ "./src/dtos/protocol/events/SpaceRooms.ts");
|
|
1750
|
-
const NewRole_1 = __webpack_require__(/*! ./dtos/protocol/events/NewRole */ "./src/dtos/protocol/events/NewRole.ts");
|
|
1751
|
-
const RoleDeleted_1 = __webpack_require__(/*! ./dtos/protocol/events/RoleDeleted */ "./src/dtos/protocol/events/RoleDeleted.ts");
|
|
1752
|
-
const RoomJoined_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomJoined */ "./src/dtos/protocol/events/RoomJoined.ts");
|
|
1753
|
-
const RoomLeft_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomLeft */ "./src/dtos/protocol/events/RoomLeft.ts");
|
|
1754
|
-
const RoomMemberJoined_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomMemberJoined */ "./src/dtos/protocol/events/RoomMemberJoined.ts");
|
|
1755
|
-
const RoomMemberLeft_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomMemberLeft */ "./src/dtos/protocol/events/RoomMemberLeft.ts");
|
|
1756
|
-
const RoomMembers_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomMembers */ "./src/dtos/protocol/events/RoomMembers.ts");
|
|
1757
|
-
const NewRoom_1 = __webpack_require__(/*! ./dtos/protocol/events/NewRoom */ "./src/dtos/protocol/events/NewRoom.ts");
|
|
1758
|
-
const RoomDeleted_1 = __webpack_require__(/*! ./dtos/protocol/events/RoomDeleted */ "./src/dtos/protocol/events/RoomDeleted.ts");
|
|
1759
|
-
const NewTopic_1 = __webpack_require__(/*! ./dtos/protocol/events/NewTopic */ "./src/dtos/protocol/events/NewTopic.ts");
|
|
1760
|
-
const TopicDeleted_1 = __webpack_require__(/*! ./dtos/protocol/events/TopicDeleted */ "./src/dtos/protocol/events/TopicDeleted.ts");
|
|
1761
|
-
const NewMessage_1 = __webpack_require__(/*! ./dtos/protocol/events/NewMessage */ "./src/dtos/protocol/events/NewMessage.ts");
|
|
1762
|
-
const GetSession_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetSession */ "./src/dtos/protocol/commands/GetSession.ts");
|
|
1763
|
-
const SetUserPermissions_1 = __webpack_require__(/*! ./dtos/protocol/commands/SetUserPermissions */ "./src/dtos/protocol/commands/SetUserPermissions.ts");
|
|
1764
|
-
const GetUserPermissions_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetUserPermissions */ "./src/dtos/protocol/commands/GetUserPermissions.ts");
|
|
1765
|
-
const GetComputedPermissions_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetComputedPermissions */ "./src/dtos/protocol/commands/GetComputedPermissions.ts");
|
|
1766
|
-
const JoinSpace_1 = __webpack_require__(/*! ./dtos/protocol/commands/JoinSpace */ "./src/dtos/protocol/commands/JoinSpace.ts");
|
|
1767
|
-
const LeaveSpace_1 = __webpack_require__(/*! ./dtos/protocol/commands/LeaveSpace */ "./src/dtos/protocol/commands/LeaveSpace.ts");
|
|
1768
|
-
const CreateSpace_1 = __webpack_require__(/*! ./dtos/protocol/commands/CreateSpace */ "./src/dtos/protocol/commands/CreateSpace.ts");
|
|
1769
|
-
const DeleteSpace_1 = __webpack_require__(/*! ./dtos/protocol/commands/DeleteSpace */ "./src/dtos/protocol/commands/DeleteSpace.ts");
|
|
1770
|
-
const GetSpaceMembers_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetSpaceMembers */ "./src/dtos/protocol/commands/GetSpaceMembers.ts");
|
|
1771
|
-
const GetSpaceRooms_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetSpaceRooms */ "./src/dtos/protocol/commands/GetSpaceRooms.ts");
|
|
1772
|
-
const CreateRole_1 = __webpack_require__(/*! ./dtos/protocol/commands/CreateRole */ "./src/dtos/protocol/commands/CreateRole.ts");
|
|
1773
|
-
const DeleteRole_1 = __webpack_require__(/*! ./dtos/protocol/commands/DeleteRole */ "./src/dtos/protocol/commands/DeleteRole.ts");
|
|
1774
|
-
const AssignRole_1 = __webpack_require__(/*! ./dtos/protocol/commands/AssignRole */ "./src/dtos/protocol/commands/AssignRole.ts");
|
|
1775
|
-
const DeassignRole_1 = __webpack_require__(/*! ./dtos/protocol/commands/DeassignRole */ "./src/dtos/protocol/commands/DeassignRole.ts");
|
|
1776
|
-
const SetRolePermissions_1 = __webpack_require__(/*! ./dtos/protocol/commands/SetRolePermissions */ "./src/dtos/protocol/commands/SetRolePermissions.ts");
|
|
1777
|
-
const GetRolePermissions_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetRolePermissions */ "./src/dtos/protocol/commands/GetRolePermissions.ts");
|
|
1778
|
-
const JoinRoom_1 = __webpack_require__(/*! ./dtos/protocol/commands/JoinRoom */ "./src/dtos/protocol/commands/JoinRoom.ts");
|
|
1779
|
-
const LeaveRoom_1 = __webpack_require__(/*! ./dtos/protocol/commands/LeaveRoom */ "./src/dtos/protocol/commands/LeaveRoom.ts");
|
|
1780
|
-
const CreateRoom_1 = __webpack_require__(/*! ./dtos/protocol/commands/CreateRoom */ "./src/dtos/protocol/commands/CreateRoom.ts");
|
|
1781
|
-
const DeleteRoom_1 = __webpack_require__(/*! ./dtos/protocol/commands/DeleteRoom */ "./src/dtos/protocol/commands/DeleteRoom.ts");
|
|
1782
|
-
const GetRoomMembers_1 = __webpack_require__(/*! ./dtos/protocol/commands/GetRoomMembers */ "./src/dtos/protocol/commands/GetRoomMembers.ts");
|
|
1783
|
-
const CreateTopic_1 = __webpack_require__(/*! ./dtos/protocol/commands/CreateTopic */ "./src/dtos/protocol/commands/CreateTopic.ts");
|
|
1784
|
-
const DeleteTopic_1 = __webpack_require__(/*! ./dtos/protocol/commands/DeleteTopic */ "./src/dtos/protocol/commands/DeleteTopic.ts");
|
|
1785
|
-
const CreateMessage_1 = __webpack_require__(/*! ./dtos/protocol/commands/CreateMessage */ "./src/dtos/protocol/commands/CreateMessage.ts");
|
|
1786
|
-
exports.events = {
|
|
1787
|
-
// General events
|
|
1788
|
-
Bye: Bye_1.Bye,
|
|
1789
|
-
Ok: Ok_1.Ok,
|
|
1790
|
-
Error: Error_1.Error,
|
|
1791
|
-
Session: Session_1.Session,
|
|
1792
|
-
Permissions: Permissions_1.Permissions,
|
|
1793
|
-
// Space events
|
|
1794
|
-
SpaceJoined: SpaceJoined_1.SpaceJoined,
|
|
1795
|
-
SpaceLeft: SpaceLeft_1.SpaceLeft,
|
|
1796
|
-
SpaceMemberJoined: SpaceMemberJoined_1.SpaceMemberJoined,
|
|
1797
|
-
SpaceMemberLeft: SpaceMemberLeft_1.SpaceMemberLeft,
|
|
1798
|
-
SpaceMemberUpdate: SpaceMemberUpdate_1.SpaceMemberUpdate,
|
|
1799
|
-
SpaceDeleted: SpaceDeleted_1.SpaceDeleted,
|
|
1800
|
-
SpaceMembers: SpaceMembers_1.SpaceMembers,
|
|
1801
|
-
SpaceRooms: SpaceRooms_1.SpaceRooms,
|
|
1802
|
-
NewRole: NewRole_1.NewRole,
|
|
1803
|
-
RoleDeleted: RoleDeleted_1.RoleDeleted,
|
|
1804
|
-
// Room events
|
|
1805
|
-
RoomJoined: RoomJoined_1.RoomJoined,
|
|
1806
|
-
RoomLeft: RoomLeft_1.RoomLeft,
|
|
1807
|
-
RoomMemberJoined: RoomMemberJoined_1.RoomMemberJoined,
|
|
1808
|
-
RoomMemberLeft: RoomMemberLeft_1.RoomMemberLeft,
|
|
1809
|
-
RoomMembers: RoomMembers_1.RoomMembers,
|
|
1810
|
-
NewRoom: NewRoom_1.NewRoom,
|
|
1811
|
-
RoomDeleted: RoomDeleted_1.RoomDeleted,
|
|
1812
|
-
// Topic events
|
|
1813
|
-
NewTopic: NewTopic_1.NewTopic,
|
|
1814
|
-
TopicDeleted: TopicDeleted_1.TopicDeleted,
|
|
1815
|
-
NewMessage: NewMessage_1.NewMessage,
|
|
1816
|
-
};
|
|
1817
|
-
exports.commands = {
|
|
1818
|
-
// General commands
|
|
1819
|
-
GetSession: GetSession_1.GetSession,
|
|
1820
|
-
SetUserPermissions: SetUserPermissions_1.SetUserPermissions,
|
|
1821
|
-
GetUserPermissions: GetUserPermissions_1.GetUserPermissions,
|
|
1822
|
-
GetComputedPermissions: GetComputedPermissions_1.GetComputedPermissions,
|
|
1823
|
-
// Space commands
|
|
1824
|
-
JoinSpace: JoinSpace_1.JoinSpace,
|
|
1825
|
-
LeaveSpace: LeaveSpace_1.LeaveSpace,
|
|
1826
|
-
CreateSpace: CreateSpace_1.CreateSpace,
|
|
1827
|
-
DeleteSpace: DeleteSpace_1.DeleteSpace,
|
|
1828
|
-
GetSpaceMembers: GetSpaceMembers_1.GetSpaceMembers,
|
|
1829
|
-
GetSpaceRooms: GetSpaceRooms_1.GetSpaceRooms,
|
|
1830
|
-
CreateRole: CreateRole_1.CreateRole,
|
|
1831
|
-
DeleteRole: DeleteRole_1.DeleteRole,
|
|
1832
|
-
AssignRole: AssignRole_1.AssignRole,
|
|
1833
|
-
DeassignRole: DeassignRole_1.DeassignRole,
|
|
1834
|
-
SetRolePermissions: SetRolePermissions_1.SetRolePermissions,
|
|
1835
|
-
GetRolePermissions: GetRolePermissions_1.GetRolePermissions,
|
|
1836
|
-
// Room commands
|
|
1837
|
-
JoinRoom: JoinRoom_1.JoinRoom,
|
|
1838
|
-
LeaveRoom: LeaveRoom_1.LeaveRoom,
|
|
1839
|
-
CreateRoom: CreateRoom_1.CreateRoom,
|
|
1840
|
-
DeleteRoom: DeleteRoom_1.DeleteRoom,
|
|
1841
|
-
GetRoomMembers: GetRoomMembers_1.GetRoomMembers,
|
|
1842
|
-
// Topic commands
|
|
1843
|
-
CreateTopic: CreateTopic_1.CreateTopic,
|
|
1844
|
-
DeleteTopic: DeleteTopic_1.DeleteTopic,
|
|
1845
|
-
CreateMessage: CreateMessage_1.CreateMessage,
|
|
1846
|
-
};
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
/***/ })
|
|
1850
|
-
|
|
1851
|
-
/******/ });
|
|
1852
|
-
/************************************************************************/
|
|
1853
|
-
/******/ // The module cache
|
|
1854
|
-
/******/ var __webpack_module_cache__ = {};
|
|
1855
|
-
/******/
|
|
1856
|
-
/******/ // The require function
|
|
1857
|
-
/******/ function __webpack_require__(moduleId) {
|
|
1858
|
-
/******/ // Check if module is in cache
|
|
1859
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1860
|
-
/******/ if (cachedModule !== undefined) {
|
|
1861
|
-
/******/ return cachedModule.exports;
|
|
1862
|
-
/******/ }
|
|
1863
|
-
/******/ // Create a new module (and put it into the cache)
|
|
1864
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1865
|
-
/******/ // no module.id needed
|
|
1866
|
-
/******/ // no module.loaded needed
|
|
1867
|
-
/******/ exports: {}
|
|
1868
|
-
/******/ };
|
|
1869
|
-
/******/
|
|
1870
|
-
/******/ // Execute the module function
|
|
1871
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1872
|
-
/******/
|
|
1873
|
-
/******/ // Return the exports of the module
|
|
1874
|
-
/******/ return module.exports;
|
|
1875
|
-
/******/ }
|
|
1876
|
-
/******/
|
|
1877
|
-
/************************************************************************/
|
|
1878
|
-
var __webpack_exports__ = {};
|
|
1879
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
1880
|
-
(() => {
|
|
1881
|
-
var exports = __webpack_exports__;
|
|
1882
|
-
/*!**********************!*\
|
|
1883
|
-
!*** ./src/index.ts ***!
|
|
1884
|
-
\**********************/
|
|
1885
|
-
|
|
1886
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1887
|
-
const Client_1 = __webpack_require__(/*! ./Client */ "./src/Client.ts");
|
|
1888
|
-
const WebApiConnection_1 = __webpack_require__(/*! ./connections/WebApiConnection */ "./src/connections/WebApiConnection.ts");
|
|
1889
|
-
const Token_1 = __webpack_require__(/*! ./Token */ "./src/Token.ts");
|
|
1890
|
-
const WebSocketConnection_1 = __webpack_require__(/*! ./connections/WebSocketConnection */ "./src/connections/WebSocketConnection.ts");
|
|
1891
|
-
const protocol_1 = __webpack_require__(/*! ./protocol */ "./src/protocol.ts");
|
|
1892
|
-
const Dto_1 = __webpack_require__(/*! ./dtos/Dto */ "./src/dtos/Dto.ts");
|
|
1893
|
-
const Envelope_1 = __webpack_require__(/*! ./dtos/protocol/Envelope */ "./src/dtos/protocol/Envelope.ts");
|
|
1894
|
-
const EnvelopeMeta_1 = __webpack_require__(/*! ./dtos/protocol/EnvelopeMeta */ "./src/dtos/protocol/EnvelopeMeta.ts");
|
|
1895
|
-
const connections = {
|
|
1896
|
-
WebApi: WebApiConnection_1.WebApiConnection, WebSocket: WebSocketConnection_1.WebSocketConnection
|
|
1897
|
-
};
|
|
1898
|
-
const data = {
|
|
1899
|
-
Dto: Dto_1.Dto,
|
|
1900
|
-
Envelope: Envelope_1.Envelope,
|
|
1901
|
-
EnvelopeMeta: EnvelopeMeta_1.EnvelopeMeta,
|
|
1902
|
-
events: protocol_1.events, commands: protocol_1.commands
|
|
1903
|
-
};
|
|
1904
|
-
exports["default"] = {
|
|
1905
|
-
Client: Client_1.Client,
|
|
1906
|
-
connections,
|
|
1907
|
-
data,
|
|
1908
|
-
getToken: Token_1.getToken
|
|
1909
|
-
};
|
|
1910
|
-
|
|
1911
|
-
})();
|
|
1912
|
-
|
|
1913
|
-
PServ = __webpack_exports__;
|
|
1914
|
-
/******/ })()
|
|
1915
|
-
;
|
|
1916
|
-
//# sourceMappingURL=index.js.map
|