chelys 2.4.3 → 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.
package/dist/message.d.ts CHANGED
@@ -31,7 +31,8 @@ export declare enum EventType {
31
31
  INVITE_new = "INVITE-new",
32
32
  INVITE_unsubscribe = "INVITE-unsubscribe",
33
33
  USER_create = "USER-create",
34
- USER_edit = "USER-edit",
34
+ USER_edit_profile = "USER-edit-profile",
35
+ USER_edit_roles = "USER-edit-roles",
35
36
  USER_get = "USER-get",
36
37
  USER_get_all = "USER-get-all",
37
38
  USER_unsubscribe = "USER-unsubscribe",
package/dist/message.js CHANGED
@@ -33,7 +33,8 @@ var EventType;
33
33
  EventType["INVITE_new"] = "INVITE-new";
34
34
  EventType["INVITE_unsubscribe"] = "INVITE-unsubscribe";
35
35
  EventType["USER_create"] = "USER-create";
36
- EventType["USER_edit"] = "USER-edit";
36
+ EventType["USER_edit_profile"] = "USER-edit-profile";
37
+ EventType["USER_edit_roles"] = "USER-edit-roles";
37
38
  EventType["USER_get"] = "USER-get";
38
39
  EventType["USER_get_all"] = "USER-get-all";
39
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.3",
3
+ "version": "2.5.0",
4
4
  "description": "Common code between Yatga and Kalimba",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {