chelys 2.5.0 → 2.7.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.
@@ -59,3 +59,9 @@ export interface CstReqUpdateState {
59
59
  export interface CstResJoin {
60
60
  status: ResponseStatus;
61
61
  }
62
+ export interface CstReqDelete {
63
+ id: string;
64
+ }
65
+ export interface CstResDelete {
66
+ id: string;
67
+ }
@@ -0,0 +1,19 @@
1
+ import { SongPlatform } from "./song";
2
+ export interface History {
3
+ id: string;
4
+ season: number;
5
+ part: number;
6
+ name: string;
7
+ date: string;
8
+ title: string;
9
+ platform: SongPlatform;
10
+ url: string;
11
+ user: string;
12
+ author: string;
13
+ users: string[];
14
+ }
15
+ export interface HistoryReqGet {
16
+ }
17
+ export interface HistoryResGet {
18
+ history: History;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // TYPE / CONST
3
+ Object.defineProperty(exports, "__esModule", { value: true });
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 './history';
5
6
  export * from './invite';
6
7
  export * from './message';
7
8
  export * from './song';
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("./history"), exports);
17
18
  __exportStar(require("./invite"), exports);
18
19
  __exportStar(require("./message"), exports);
19
20
  __exportStar(require("./song"), exports);
package/dist/message.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare enum EventType {
6
6
  CLIENT_authenticate = "CLIENT-authenticate",
7
7
  CLIENT_ping = "CLIENT-ping",
8
8
  CST_create = "CST-create",
9
+ CST_delete = "CST-delete",
9
10
  CST_get = "CST-get",
10
11
  CST_get_from_user = "CST-get-from-user",
11
12
  CST_join = "CST-join",
@@ -25,6 +26,7 @@ export declare enum EventType {
25
26
  CST_SONG_GRADE_get_user = "CST-SONG-GRADE-get-user",
26
27
  CST_SONG_GRADE_get_summary = "CST-SONG-GRADE-get-summary",
27
28
  CST_SONG_GRADE_unsubscribe = "CST-SONG-GRADE-unsubscribe",
29
+ HISTORY_get = "HISTORY-get",
28
30
  INVITE_check = "INVITE-check",
29
31
  INVITE_delete = "INVITE-delete",
30
32
  INVITE_get_all = "INVITE-get-all",
package/dist/message.js CHANGED
@@ -8,6 +8,7 @@ var EventType;
8
8
  EventType["CLIENT_authenticate"] = "CLIENT-authenticate";
9
9
  EventType["CLIENT_ping"] = "CLIENT-ping";
10
10
  EventType["CST_create"] = "CST-create";
11
+ EventType["CST_delete"] = "CST-delete";
11
12
  EventType["CST_get"] = "CST-get";
12
13
  EventType["CST_get_from_user"] = "CST-get-from-user";
13
14
  EventType["CST_join"] = "CST-join";
@@ -27,6 +28,7 @@ var EventType;
27
28
  EventType["CST_SONG_GRADE_get_user"] = "CST-SONG-GRADE-get-user";
28
29
  EventType["CST_SONG_GRADE_get_summary"] = "CST-SONG-GRADE-get-summary";
29
30
  EventType["CST_SONG_GRADE_unsubscribe"] = "CST-SONG-GRADE-unsubscribe";
31
+ EventType["HISTORY_get"] = "HISTORY-get";
30
32
  EventType["INVITE_check"] = "INVITE-check";
31
33
  EventType["INVITE_delete"] = "INVITE-delete";
32
34
  EventType["INVITE_get_all"] = "INVITE-get-all";
package/dist/song.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  export declare enum SongPlatform {
2
2
  YOUTUBE = 0
3
3
  }
4
+ export interface Title {
5
+ original: string;
6
+ translation?: string;
7
+ }
4
8
  export interface Song {
5
9
  id: number;
6
10
  title: string;
package/dist/song.js CHANGED
@@ -8,6 +8,7 @@ var SongPlatform;
8
8
  })(SongPlatform = exports.SongPlatform || (exports.SongPlatform = {}));
9
9
  exports.EMPTY_SONG = {
10
10
  id: -1,
11
+ // title: { original: '' },
11
12
  title: '',
12
13
  platform: -1,
13
14
  url: '',
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
- "name": "chelys",
3
- "version": "2.5.0",
4
- "description": "Common code between Yatga and Kalimba",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "tsc"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/TableauBits/Chelys.git"
13
- },
14
- "keywords": [
15
- "matbay"
16
- ],
17
- "author": "tableaubits",
18
- "license": "ISC",
19
- "bugs": {
20
- "url": "https://github.com/TableauBits/Chelys/issues"
21
- },
22
- "homepage": "https://github.com/TableauBits/Chelys#readme",
23
- "dependencies": {},
24
- "files": [
25
- "dist/"
26
- ],
27
- "types": "dist/index.d.ts",
28
- "devDependencies": {
29
- "@types/node": "^16.10.1",
30
- "eslint": "^7.32.0",
31
- "typescript": "^4.4.3"
32
- }
2
+ "name": "chelys",
3
+ "version": "2.7.0",
4
+ "description": "Common code between Yatga and Kalimba",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "tsc"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/TableauBits/Chelys.git"
13
+ },
14
+ "keywords": [
15
+ "matbay"
16
+ ],
17
+ "author": "tableaubits",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/TableauBits/Chelys/issues"
21
+ },
22
+ "homepage": "https://github.com/TableauBits/Chelys#readme",
23
+ "dependencies": {},
24
+ "files": [
25
+ "dist/"
26
+ ],
27
+ "types": "dist/index.d.ts",
28
+ "devDependencies": {
29
+ "@types/node": "^16.10.1",
30
+ "eslint": "^7.32.0",
31
+ "typescript": "^4.4.3"
32
+ }
33
33
  }