chelys 2.2.0 → 2.3.1

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.
@@ -36,6 +36,7 @@ export interface CstReqJoin {
36
36
  }
37
37
  export interface CstReqState {
38
38
  state: number;
39
+ id: string;
39
40
  }
40
41
  export interface CstReqUnsubscribe {
41
42
  ids: string[];
@@ -0,0 +1,22 @@
1
+ export declare const FAVORITES_MAX_LENGTH = 5;
2
+ export interface UserFavorites {
3
+ uid: string;
4
+ favs: number[];
5
+ }
6
+ export interface CstFavReqAdd {
7
+ cstId: string;
8
+ songId: number;
9
+ }
10
+ export interface CstFavReqRemove {
11
+ cstId: string;
12
+ songId: number;
13
+ }
14
+ export interface CstFavReqGet {
15
+ cstId: string;
16
+ }
17
+ export interface CstFavReqUnsubscribe {
18
+ cstId: string;
19
+ }
20
+ export interface CstFavResUpdate {
21
+ userFavorites: UserFavorites;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // TYPE / CONST
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FAVORITES_MAX_LENGTH = void 0;
5
+ exports.FAVORITES_MAX_LENGTH = 5;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './client';
2
2
  export * from './constitution';
3
+ export * from './favorite';
3
4
  export * from './grade';
4
5
  export * from './message';
5
6
  export * from './song';
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./client"), exports);
14
14
  __exportStar(require("./constitution"), exports);
15
+ __exportStar(require("./favorite"), exports);
15
16
  __exportStar(require("./grade"), exports);
16
17
  __exportStar(require("./message"), exports);
17
18
  __exportStar(require("./song"), exports);
package/dist/message.d.ts CHANGED
@@ -9,7 +9,12 @@ export declare enum EventType {
9
9
  CST_get = "CST-get",
10
10
  CST_get_from_user = "CST-get-from-user",
11
11
  CST_join = "CST-join",
12
+ CST_state = "CST-state",
12
13
  CST_unsubscribe = "CST-unsubscribe",
14
+ CST_FAV_add = "CST-FAV-add",
15
+ CST_FAV_remove = "CST-FAV-remove",
16
+ CST_FAV_get = "CST-FAV-get",
17
+ CST_FAV_unsubscribe = "CST-FAV-unsubscribe",
13
18
  CST_SONG_add = "CST-SONG-add",
14
19
  CST_SONG_get_all = "CST-SONG-get-all",
15
20
  CST_SONG_remove = "CST-SONG-remove",
@@ -25,6 +30,7 @@ export declare enum EventType {
25
30
  USER_get_all = "USER-get-all",
26
31
  USER_unsubscribe = "USER-unsubscribe",
27
32
  CST_update = "CST-update",
33
+ CST_FAV_update = "CST-FAV-update",
28
34
  CST_SONG_update = "CST-SONG-update",
29
35
  CST_SONG_GRADE_summary_update = "CST-SONG-GRADE-summary-update",
30
36
  CST_SONG_GRADE_userdata_update = "CST-SONG-GRADE-userdata-update",
package/dist/message.js CHANGED
@@ -11,7 +11,12 @@ var EventType;
11
11
  EventType["CST_get"] = "CST-get";
12
12
  EventType["CST_get_from_user"] = "CST-get-from-user";
13
13
  EventType["CST_join"] = "CST-join";
14
+ EventType["CST_state"] = "CST-state";
14
15
  EventType["CST_unsubscribe"] = "CST-unsubscribe";
16
+ EventType["CST_FAV_add"] = "CST-FAV-add";
17
+ EventType["CST_FAV_remove"] = "CST-FAV-remove";
18
+ EventType["CST_FAV_get"] = "CST-FAV-get";
19
+ EventType["CST_FAV_unsubscribe"] = "CST-FAV-unsubscribe";
15
20
  EventType["CST_SONG_add"] = "CST-SONG-add";
16
21
  EventType["CST_SONG_get_all"] = "CST-SONG-get-all";
17
22
  EventType["CST_SONG_remove"] = "CST-SONG-remove";
@@ -28,6 +33,7 @@ var EventType;
28
33
  EventType["USER_unsubscribe"] = "USER-unsubscribe";
29
34
  // From server
30
35
  EventType["CST_update"] = "CST-update";
36
+ EventType["CST_FAV_update"] = "CST-FAV-update";
31
37
  EventType["CST_SONG_update"] = "CST-SONG-update";
32
38
  EventType["CST_SONG_GRADE_summary_update"] = "CST-SONG-GRADE-summary-update";
33
39
  EventType["CST_SONG_GRADE_userdata_update"] = "CST-SONG-GRADE-userdata-update";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chelys",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "Common code between Yatga and Kalimba",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {