chelys 2.0.4 → 2.2.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/README.md CHANGED
@@ -1,2 +1,7 @@
1
- # Hang
2
- Common code between Yatga and Kalimba
1
+ # Chelys
2
+ Common code between [Yatga](https://github.com/TableauBits/Yatga) and [Kalimba](https://github.com/TableauBits/Kalimba)
3
+
4
+ * Constitutions
5
+ * Songs
6
+ * Users
7
+ * Votes
@@ -34,6 +34,9 @@ export interface CstReqCreate {
34
34
  export interface CstReqJoin {
35
35
  id: string;
36
36
  }
37
+ export interface CstReqState {
38
+ state: number;
39
+ }
37
40
  export interface CstReqUnsubscribe {
38
41
  ids: string[];
39
42
  }
@@ -41,3 +44,7 @@ export interface CstResUpdate {
41
44
  cstInfo: Constitution;
42
45
  }
43
46
  export declare type CstReqGetFromUser = {};
47
+ export interface CstReqUpdateState {
48
+ id: string;
49
+ newState: number;
50
+ }
@@ -8,6 +8,15 @@ export interface GradeUserData {
8
8
  }
9
9
  export interface GradeSummary {
10
10
  voteCount: number;
11
+ userCount: Map<string, number>;
12
+ }
13
+ export interface KGradeUserData {
14
+ uid: string;
15
+ values: Record<string, unknown>;
16
+ }
17
+ export interface KGradeSummary {
18
+ voteCount: number;
19
+ userCount: Record<string, number>;
11
20
  }
12
21
  export interface GradeReqEdit {
13
22
  cstId: string;
@@ -25,10 +34,10 @@ export interface GradeReqGetSummary {
25
34
  export interface GradeReqUnsubscribe {
26
35
  cstId: string;
27
36
  }
37
+ export interface GradeResSummaryUpdate {
38
+ summary: KGradeSummary;
39
+ }
28
40
  export interface GradeResUserDataUpdate {
29
41
  status: "added" | "modified" | "removed";
30
- userData: GradeUserData;
31
- }
32
- export interface GradeResSummaryUpdate {
33
- summary: GradeSummary;
42
+ userData: KGradeUserData;
34
43
  }
File without changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './client';
2
2
  export * from './constitution';
3
+ export * from './grade';
3
4
  export * from './message';
4
5
  export * from './song';
5
6
  export * from './user';
6
- export * from './vote';
package/dist/index.js CHANGED
@@ -12,7 +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("./grade"), exports);
15
16
  __exportStar(require("./message"), exports);
16
17
  __exportStar(require("./song"), exports);
17
18
  __exportStar(require("./user"), exports);
18
- __exportStar(require("./vote"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chelys",
3
- "version": "2.0.4",
3
+ "version": "2.2.0",
4
4
  "description": "Common code between Yatga and Kalimba",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {