@reachu/database 1.0.213 → 1.0.214

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.
@@ -5,7 +5,13 @@ export default class LiveShow extends AuditedModel {
5
5
  deletedAt: Date;
6
6
  title?: string;
7
7
  description?: string;
8
- startDate?: string;
8
+ eventId?: string;
9
+ videoId?: string;
10
+ liveEnd?: boolean;
11
+ broadcasting?: boolean;
12
+ hls?: string;
13
+ streamKey?: string;
14
+ startDate?: Date;
9
15
  endDate?: Date;
10
16
  thumbnail?: string;
11
17
  channelUser?: ChannelUser;
@@ -34,8 +34,32 @@ __decorate([
34
34
  __metadata("design:type", String)
35
35
  ], LiveShow.prototype, "description", void 0);
36
36
  __decorate([
37
- typeorm_1.Column({ type: 'timestamp', nullable: true }),
37
+ typeorm_1.Column('varchar', { nullable: true }),
38
+ __metadata("design:type", String)
39
+ ], LiveShow.prototype, "eventId", void 0);
40
+ __decorate([
41
+ typeorm_1.Column('varchar', { nullable: true }),
42
+ __metadata("design:type", String)
43
+ ], LiveShow.prototype, "videoId", void 0);
44
+ __decorate([
45
+ typeorm_1.Column('boolean', { nullable: true, default: false }),
46
+ __metadata("design:type", Boolean)
47
+ ], LiveShow.prototype, "liveEnd", void 0);
48
+ __decorate([
49
+ typeorm_1.Column('boolean', { nullable: true, default: false }),
50
+ __metadata("design:type", Boolean)
51
+ ], LiveShow.prototype, "broadcasting", void 0);
52
+ __decorate([
53
+ typeorm_1.Column('varchar', { nullable: true }),
54
+ __metadata("design:type", String)
55
+ ], LiveShow.prototype, "hls", void 0);
56
+ __decorate([
57
+ typeorm_1.Column('varchar', { nullable: true }),
38
58
  __metadata("design:type", String)
59
+ ], LiveShow.prototype, "streamKey", void 0);
60
+ __decorate([
61
+ typeorm_1.Column({ type: 'timestamp', nullable: true }),
62
+ __metadata("design:type", Date)
39
63
  ], LiveShow.prototype, "startDate", void 0);
40
64
  __decorate([
41
65
  typeorm_1.Column({ type: 'timestamp', nullable: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"LiveShow.js","sourceRoot":"","sources":["../../../../src/entity/modules/liveshow/LiveShow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9C,oEAA4C;AAG5C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA4BjD,CAAA;AA1BC;IADC,gCAAsB,CAAC,MAAM,CAAC;;oCACpB;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACvB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACjB;AAGrB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC3B;AAGnB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;yCAAC;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACpC;AAOnB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,qBAAW,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC1E,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACC,qBAAW;6CAAC;AA3BP,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA4B5B;kBA5BoB,QAAQ"}
1
+ {"version":3,"file":"LiveShow.js","sourceRoot":"","sources":["../../../../src/entity/modules/liveshow/LiveShow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,sEAA8C;AAC9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AG,EAAE,CAAC,qBAAW,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC1E,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACC,qBAAW;6CAAC;AA7CP,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA8C5B;kBA9CoB,QAAQ"}
@@ -0,0 +1,6 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+ export declare class liveshow21758573787467 implements MigrationInterface {
3
+ name: string;
4
+ up(queryRunner: QueryRunner): Promise<void>;
5
+ down(queryRunner: QueryRunner): Promise<void>;
6
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.liveshow21758573787467 = void 0;
13
+ class liveshow21758573787467 {
14
+ constructor() {
15
+ this.name = 'liveshow21758573787467';
16
+ }
17
+ up(queryRunner) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`event_id\` varchar(255) NULL`);
20
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`video_id\` varchar(255) NULL`);
21
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`live_end\` tinyint NULL DEFAULT 0`);
22
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`broadcasting\` tinyint NULL DEFAULT 0`);
23
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`hls\` varchar(255) NULL`);
24
+ yield queryRunner.query(`ALTER TABLE \`live_show\` ADD \`stream_key\` varchar(255) NULL`);
25
+ });
26
+ }
27
+ down(queryRunner) {
28
+ return __awaiter(this, void 0, void 0, function* () {
29
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`stream_key\``);
30
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`hls\``);
31
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`broadcasting\``);
32
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`live_end\``);
33
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`video_id\``);
34
+ yield queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`event_id\``);
35
+ });
36
+ }
37
+ }
38
+ exports.liveshow21758573787467 = liveshow21758573787467;
39
+ //# sourceMappingURL=1758573787467-liveshow2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1758573787467-liveshow2.js","sourceRoot":"","sources":["../../src/migrations/1758573787467-liveshow2.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,sBAAsB;IAAnC;QACE,SAAI,GAAG,wBAAwB,CAAC;IAqBlC,CAAC;IAnBc,EAAE,CAAC,WAAwB;;YACtC,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,8DAA8D,CAAC,CAAC;YACxF,MAAM,WAAW,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;YAC7F,MAAM,WAAW,CAAC,KAAK,CACrB,uEAAuE,CACxE,CAAC;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;YACnF,MAAM,WAAW,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;QAC5F,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;YAChF,MAAM,WAAW,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACzE,MAAM,WAAW,CAAC,KAAK,CAAC,wDAAwD,CAAC,CAAC;YAClF,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;YAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAChF,CAAC;KAAA;CACF;AAtBD,wDAsBC"}
@@ -2802,8 +2802,8 @@
2802
2802
  "affectsGlobalScope": false
2803
2803
  },
2804
2804
  "../src/entity/modules/liveshow/liveshow.ts": {
2805
- "version": "2312df3524aa6539cbc128a95943a453ed706aa7e421b259babb600e4987aacc",
2806
- "signature": "53c8041254c36875d631d584c40fafba17ce1b36ad2572c0fb50f1bab403dcf7",
2805
+ "version": "3939e7ae8af3f411c0211299fab48a930e1b08e9f5a21e7f06ad5bee825267bf",
2806
+ "signature": "23b20dc5099a4a265def094c87aed83fc6487d3be8d175a9fe69ffd12a55fc33",
2807
2807
  "affectsGlobalScope": false
2808
2808
  },
2809
2809
  "../src/entity/index.ts": {
@@ -3921,6 +3921,11 @@
3921
3921
  "signature": "132e5a9c4f0ba1716064229fb2ae455e27c5901d289da4e52c151d7a4497d687",
3922
3922
  "affectsGlobalScope": false
3923
3923
  },
3924
+ "../src/migrations/1758573787467-liveshow2.ts": {
3925
+ "version": "5e1ad069e4dc63e5a9a29815d0c8488833f3bd0b1cc08cbf6e5212690f52c1f5",
3926
+ "signature": "ecaa4f591043dcfddee7843e3f3ae673191714c8040c5498eb5279133368e98f",
3927
+ "affectsGlobalScope": false
3928
+ },
3924
3929
  "../src/migrations/execute/index.ts": {
3925
3930
  "version": "8b5bf13d095aeb57afd593adf3d799681176a13c327e2f77e0028e178c4ee3b9",
3926
3931
  "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
@@ -7199,6 +7204,9 @@
7199
7204
  "../src/migrations/1758571354123-liveshow.ts": [
7200
7205
  "../node_modules/typeorm/index.d.ts"
7201
7206
  ],
7207
+ "../src/migrations/1758573787467-liveshow2.ts": [
7208
+ "../node_modules/typeorm/index.d.ts"
7209
+ ],
7202
7210
  "../src/migrations/execute/index.ts": [
7203
7211
  "../src/config/connect.ts"
7204
7212
  ],
@@ -10338,6 +10346,9 @@
10338
10346
  "../src/migrations/1758571354123-liveshow.ts": [
10339
10347
  "../node_modules/typeorm/index.d.ts"
10340
10348
  ],
10349
+ "../src/migrations/1758573787467-liveshow2.ts": [
10350
+ "../node_modules/typeorm/index.d.ts"
10351
+ ],
10341
10352
  "../src/migrations/index.ts": [
10342
10353
  "../src/migrations/1628474597284-initialschema.ts",
10343
10354
  "../src/migrations/1630077596132-removemangopay.ts",
@@ -11294,6 +11305,7 @@
11294
11305
  "../src/migrations/1747783183804-new-qa.ts",
11295
11306
  "../src/migrations/1747783948794-new-qa-2.ts",
11296
11307
  "../src/migrations/1758571354123-liveshow.ts",
11308
+ "../src/migrations/1758573787467-liveshow2.ts",
11297
11309
  "../src/migrations/execute/index.ts",
11298
11310
  "../src/migrations/index.ts",
11299
11311
  "../src/repositories/discount/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reachu/database",
3
- "version": "1.0.213",
3
+ "version": "1.0.214",
4
4
  "description": "reachu-database",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "author": "reachu",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
- "@reachu/logger": "1.0.213",
25
- "@reachu/utils": "1.0.213",
24
+ "@reachu/logger": "1.0.214",
25
+ "@reachu/utils": "1.0.214",
26
26
  "dotenv": "8.0.0",
27
27
  "eventemitter2": "^6.4.9",
28
28
  "express": "4.17.1",
@@ -23,8 +23,26 @@ export default class LiveShow extends AuditedModel {
23
23
  @Column('varchar', { nullable: true })
24
24
  description?: string;
25
25
 
26
+ @Column('varchar', { nullable: true })
27
+ eventId?: string;
28
+
29
+ @Column('varchar', { nullable: true })
30
+ videoId?: string;
31
+
32
+ @Column('boolean', { nullable: true, default: false })
33
+ liveEnd?: boolean;
34
+
35
+ @Column('boolean', { nullable: true, default: false })
36
+ broadcasting?: boolean;
37
+
38
+ @Column('varchar', { nullable: true })
39
+ hls?: string;
40
+
41
+ @Column('varchar', { nullable: true })
42
+ streamKey?: string;
43
+
26
44
  @Column({ type: 'timestamp', nullable: true })
27
- startDate?: string;
45
+ startDate?: Date;
28
46
 
29
47
  @Column({ type: 'timestamp', nullable: true })
30
48
  endDate?: Date;
@@ -0,0 +1,25 @@
1
+ import { MigrationInterface, QueryRunner } from 'typeorm';
2
+
3
+ export class liveshow21758573787467 implements MigrationInterface {
4
+ name = 'liveshow21758573787467';
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`event_id\` varchar(255) NULL`);
8
+ await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`video_id\` varchar(255) NULL`);
9
+ await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`live_end\` tinyint NULL DEFAULT 0`);
10
+ await queryRunner.query(
11
+ `ALTER TABLE \`live_show\` ADD \`broadcasting\` tinyint NULL DEFAULT 0`,
12
+ );
13
+ await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`hls\` varchar(255) NULL`);
14
+ await queryRunner.query(`ALTER TABLE \`live_show\` ADD \`stream_key\` varchar(255) NULL`);
15
+ }
16
+
17
+ public async down(queryRunner: QueryRunner): Promise<void> {
18
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`stream_key\``);
19
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`hls\``);
20
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`broadcasting\``);
21
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`live_end\``);
22
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`video_id\``);
23
+ await queryRunner.query(`ALTER TABLE \`live_show\` DROP COLUMN \`event_id\``);
24
+ }
25
+ }