chelys 2.4.1 → 2.5.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.
@@ -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/invite.d.ts CHANGED
@@ -20,5 +20,6 @@ export interface InvResCheck {
20
20
  export interface InvResUnsubscribe {
21
21
  }
22
22
  export interface InvResUpdate {
23
+ status: "added" | "modified" | "removed";
23
24
  invite: Invite;
24
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",
@@ -30,7 +31,8 @@ export declare enum EventType {
30
31
  INVITE_new = "INVITE-new",
31
32
  INVITE_unsubscribe = "INVITE-unsubscribe",
32
33
  USER_create = "USER-create",
33
- USER_edit = "USER-edit",
34
+ USER_edit_profile = "USER-edit-profile",
35
+ USER_edit_roles = "USER-edit-roles",
34
36
  USER_get = "USER-get",
35
37
  USER_get_all = "USER-get-all",
36
38
  USER_unsubscribe = "USER-unsubscribe",
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";
@@ -32,7 +33,8 @@ var EventType;
32
33
  EventType["INVITE_new"] = "INVITE-new";
33
34
  EventType["INVITE_unsubscribe"] = "INVITE-unsubscribe";
34
35
  EventType["USER_create"] = "USER-create";
35
- EventType["USER_edit"] = "USER-edit";
36
+ EventType["USER_edit_profile"] = "USER-edit-profile";
37
+ EventType["USER_edit_roles"] = "USER-edit-roles";
36
38
  EventType["USER_get"] = "USER-get";
37
39
  EventType["USER_get_all"] = "USER-get-all";
38
40
  EventType["USER_unsubscribe"] = "USER-unsubscribe";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "chelys",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "Common code between Yatga and Kalimba",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {