chelys 2.4.0 → 2.4.3

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/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # Chelys
2
2
  Common code between [Yatga](https://github.com/TableauBits/Yatga) and [Kalimba](https://github.com/TableauBits/Kalimba)
3
3
 
4
+ Data struct for :
4
5
  * Constitutions
6
+ * Invites
5
7
  * Songs
6
8
  * Users
7
9
  * Votes
@@ -40,6 +40,11 @@ export interface CstReqState {
40
40
  state: number;
41
41
  id: string;
42
42
  }
43
+ export interface CstReqNameURL {
44
+ id: string;
45
+ name: string | undefined;
46
+ url: string | undefined;
47
+ }
43
48
  export interface CstReqUnsubscribe {
44
49
  ids: string[];
45
50
  }
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './client';
2
2
  export * from './constitution';
3
3
  export * from './favorite';
4
4
  export * from './grade';
5
+ export * from './invite';
5
6
  export * from './message';
6
7
  export * from './song';
7
8
  export * from './user';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ __exportStar(require("./client"), exports);
14
14
  __exportStar(require("./constitution"), exports);
15
15
  __exportStar(require("./favorite"), exports);
16
16
  __exportStar(require("./grade"), exports);
17
+ __exportStar(require("./invite"), exports);
17
18
  __exportStar(require("./message"), exports);
18
19
  __exportStar(require("./song"), exports);
19
20
  __exportStar(require("./user"), exports);
package/dist/invite.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ResponseStatus } from "./client";
1
2
  export interface Invite {
2
3
  id: string;
3
4
  createdBy: string;
@@ -5,13 +6,20 @@ export interface Invite {
5
6
  }
6
7
  export interface InvReqNew {
7
8
  }
8
- export interface InvReqGet {
9
+ export interface InvReqGetAll {
10
+ }
11
+ export interface InvRefCheck {
12
+ id: string;
9
13
  }
10
14
  export interface InvReqDelete {
11
15
  id: string;
12
16
  }
17
+ export interface InvResCheck {
18
+ status: ResponseStatus;
19
+ }
13
20
  export interface InvResUnsubscribe {
14
21
  }
15
22
  export interface InvResUpdate {
23
+ status: "added" | "modified" | "removed";
16
24
  invite: Invite;
17
25
  }
package/dist/invite.js CHANGED
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
- // TYPE / CONST
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/message.d.ts CHANGED
@@ -9,6 +9,7 @@ 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_name_url = "CST-name-url",
12
13
  CST_state = "CST-state",
13
14
  CST_unsubscribe = "CST-unsubscribe",
14
15
  CST_FAV_add = "CST-FAV-add",
@@ -24,8 +25,9 @@ export declare enum EventType {
24
25
  CST_SONG_GRADE_get_user = "CST-SONG-GRADE-get-user",
25
26
  CST_SONG_GRADE_get_summary = "CST-SONG-GRADE-get-summary",
26
27
  CST_SONG_GRADE_unsubscribe = "CST-SONG-GRADE-unsubscribe",
28
+ INVITE_check = "INVITE-check",
27
29
  INVITE_delete = "INVITE-delete",
28
- INVITE_get = "INVITE-get",
30
+ INVITE_get_all = "INVITE-get-all",
29
31
  INVITE_new = "INVITE-new",
30
32
  INVITE_unsubscribe = "INVITE-unsubscribe",
31
33
  USER_create = "USER-create",
package/dist/message.js CHANGED
@@ -11,6 +11,7 @@ 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_name_url"] = "CST-name-url";
14
15
  EventType["CST_state"] = "CST-state";
15
16
  EventType["CST_unsubscribe"] = "CST-unsubscribe";
16
17
  EventType["CST_FAV_add"] = "CST-FAV-add";
@@ -26,8 +27,9 @@ var EventType;
26
27
  EventType["CST_SONG_GRADE_get_user"] = "CST-SONG-GRADE-get-user";
27
28
  EventType["CST_SONG_GRADE_get_summary"] = "CST-SONG-GRADE-get-summary";
28
29
  EventType["CST_SONG_GRADE_unsubscribe"] = "CST-SONG-GRADE-unsubscribe";
30
+ EventType["INVITE_check"] = "INVITE-check";
29
31
  EventType["INVITE_delete"] = "INVITE-delete";
30
- EventType["INVITE_get"] = "INVITE-get";
32
+ EventType["INVITE_get_all"] = "INVITE-get-all";
31
33
  EventType["INVITE_new"] = "INVITE-new";
32
34
  EventType["INVITE_unsubscribe"] = "INVITE-unsubscribe";
33
35
  EventType["USER_create"] = "USER-create";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chelys",
3
- "version": "2.4.0",
3
+ "version": "2.4.3",
4
4
  "description": "Common code between Yatga and Kalimba",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {