chelys 2.4.3 → 2.6.0

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.
@@ -59,3 +59,9 @@ export interface CstReqUpdateState {
59
59
  export interface CstResJoin {
60
60
  status: ResponseStatus;
61
61
  }
62
+ export interface CstReqDelete {
63
+ id: string;
64
+ }
65
+ export interface CstResDelete {
66
+ id: string;
67
+ }
package/dist/message.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare enum EventType {
6
6
  CLIENT_authenticate = "CLIENT-authenticate",
7
7
  CLIENT_ping = "CLIENT-ping",
8
8
  CST_create = "CST-create",
9
+ CST_delete = "CST-delete",
9
10
  CST_get = "CST-get",
10
11
  CST_get_from_user = "CST-get-from-user",
11
12
  CST_join = "CST-join",
@@ -31,7 +32,8 @@ export declare enum EventType {
31
32
  INVITE_new = "INVITE-new",
32
33
  INVITE_unsubscribe = "INVITE-unsubscribe",
33
34
  USER_create = "USER-create",
34
- USER_edit = "USER-edit",
35
+ USER_edit_profile = "USER-edit-profile",
36
+ USER_edit_roles = "USER-edit-roles",
35
37
  USER_get = "USER-get",
36
38
  USER_get_all = "USER-get-all",
37
39
  USER_unsubscribe = "USER-unsubscribe",
package/dist/message.js CHANGED
@@ -8,6 +8,7 @@ var EventType;
8
8
  EventType["CLIENT_authenticate"] = "CLIENT-authenticate";
9
9
  EventType["CLIENT_ping"] = "CLIENT-ping";
10
10
  EventType["CST_create"] = "CST-create";
11
+ EventType["CST_delete"] = "CST-delete";
11
12
  EventType["CST_get"] = "CST-get";
12
13
  EventType["CST_get_from_user"] = "CST-get-from-user";
13
14
  EventType["CST_join"] = "CST-join";
@@ -33,7 +34,8 @@ var EventType;
33
34
  EventType["INVITE_new"] = "INVITE-new";
34
35
  EventType["INVITE_unsubscribe"] = "INVITE-unsubscribe";
35
36
  EventType["USER_create"] = "USER-create";
36
- EventType["USER_edit"] = "USER-edit";
37
+ EventType["USER_edit_profile"] = "USER-edit-profile";
38
+ EventType["USER_edit_roles"] = "USER-edit-roles";
37
39
  EventType["USER_get"] = "USER-get";
38
40
  EventType["USER_get_all"] = "USER-get-all";
39
41
  EventType["USER_unsubscribe"] = "USER-unsubscribe";
package/dist/song.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  export declare enum SongPlatform {
2
2
  YOUTUBE = 0
3
3
  }
4
+ export interface Title {
5
+ original: string;
6
+ translation?: string;
7
+ }
4
8
  export interface Song {
5
9
  id: number;
6
10
  title: string;
package/dist/song.js CHANGED
@@ -8,6 +8,7 @@ var SongPlatform;
8
8
  })(SongPlatform = exports.SongPlatform || (exports.SongPlatform = {}));
9
9
  exports.EMPTY_SONG = {
10
10
  id: -1,
11
+ // title: { original: '' },
11
12
  title: '',
12
13
  platform: -1,
13
14
  url: '',
package/dist/user.d.ts CHANGED
@@ -16,9 +16,13 @@ export declare const EMPTY_USER: User;
16
16
  export interface UsrReqGet {
17
17
  uids: string[];
18
18
  }
19
- export interface UsrReqEdit {
19
+ export interface UsrReqEditProfile {
20
20
  userData: User;
21
21
  }
22
+ export interface UsrReqEditRoles {
23
+ uid: string;
24
+ roles: string[];
25
+ }
22
26
  export interface UsrReqUnsubscribe {
23
27
  uids: string[];
24
28
  }
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
- "name": "chelys",
3
- "version": "2.4.3",
4
- "description": "Common code between Yatga and Kalimba",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "tsc"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/TableauBits/Chelys.git"
13
- },
14
- "keywords": [
15
- "matbay"
16
- ],
17
- "author": "tableaubits",
18
- "license": "ISC",
19
- "bugs": {
20
- "url": "https://github.com/TableauBits/Chelys/issues"
21
- },
22
- "homepage": "https://github.com/TableauBits/Chelys#readme",
23
- "dependencies": {},
24
- "files": [
25
- "dist/"
26
- ],
27
- "types": "dist/index.d.ts",
28
- "devDependencies": {
29
- "@types/node": "^16.10.1",
30
- "eslint": "^7.32.0",
31
- "typescript": "^4.4.3"
32
- }
2
+ "name": "chelys",
3
+ "version": "2.6.0",
4
+ "description": "Common code between Yatga and Kalimba",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "tsc"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/TableauBits/Chelys.git"
13
+ },
14
+ "keywords": [
15
+ "matbay"
16
+ ],
17
+ "author": "tableaubits",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/TableauBits/Chelys/issues"
21
+ },
22
+ "homepage": "https://github.com/TableauBits/Chelys#readme",
23
+ "dependencies": {},
24
+ "files": [
25
+ "dist/"
26
+ ],
27
+ "types": "dist/index.d.ts",
28
+ "devDependencies": {
29
+ "@types/node": "^16.10.1",
30
+ "eslint": "^7.32.0",
31
+ "typescript": "^4.4.3"
32
+ }
33
33
  }