@bets-pf/shared-typeorm-models 1.6.1 → 1.6.2
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/typeorm-entities/algorithm/types/algorithm.types.d.ts +1 -1
- package/dist/typeorm-entities/algorithm/types/algorithm.types.d.ts.map +1 -1
- package/dist/typeorm-entities/algorithm/types/algorithm.types.js +1 -1
- package/dist/typeorm-entities/algorithm/types/algorithm.types.js.map +1 -1
- package/package.json +2 -3
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/typeorm-entities/algorithm/algorithm.orm-entity.d.ts +0 -18
- package/dist/typeorm-entities/algorithm/index.d.ts +0 -4
- package/dist/typeorm-entities/game/game.orm-entity.d.ts +0 -19
- package/dist/typeorm-entities/game/game.orm-entity.js +0 -79
- package/dist/typeorm-entities/game/game.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/game/index.d.ts +0 -3
- package/dist/typeorm-entities/game/index.js +0 -8
- package/dist/typeorm-entities/game/index.js.map +0 -1
- package/dist/typeorm-entities/game/types/game.types.d.ts +0 -8
- package/dist/typeorm-entities/game/types/game.types.d.ts.map +0 -1
- package/dist/typeorm-entities/game/types/game.types.js +0 -12
- package/dist/typeorm-entities/game/types/game.types.js.map +0 -1
- package/dist/typeorm-entities/index.d.ts +0 -10
- package/dist/typeorm-entities/index.js +0 -26
- package/dist/typeorm-entities/index.js.map +0 -1
- package/dist/typeorm-entities/message/index.d.ts +0 -3
- package/dist/typeorm-entities/message/index.js +0 -6
- package/dist/typeorm-entities/message/index.js.map +0 -1
- package/dist/typeorm-entities/message/message.orm-entity.d.ts +0 -12
- package/dist/typeorm-entities/message/message.orm-entity.js +0 -54
- package/dist/typeorm-entities/message/message.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/message/types/message-vars.types.d.ts +0 -27
- package/dist/typeorm-entities/message/types/message-vars.types.js +0 -3
- package/dist/typeorm-entities/message/types/message-vars.types.js.map +0 -1
- package/dist/typeorm-entities/odds/index.d.ts +0 -4
- package/dist/typeorm-entities/odds/index.js +0 -9
- package/dist/typeorm-entities/odds/index.js.map +0 -1
- package/dist/typeorm-entities/odds/odds.orm-entity.d.ts +0 -13
- package/dist/typeorm-entities/odds/odds.orm-entity.js +0 -61
- package/dist/typeorm-entities/odds/odds.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/odds/types/odds.types.d.ts +0 -21
- package/dist/typeorm-entities/odds/types/odds.types.d.ts.map +0 -1
- package/dist/typeorm-entities/odds/types/odds.types.js +0 -14
- package/dist/typeorm-entities/odds/types/odds.types.js.map +0 -1
- package/dist/typeorm-entities/signal/index.d.ts +0 -4
- package/dist/typeorm-entities/signal/index.js +0 -8
- package/dist/typeorm-entities/signal/index.js.map +0 -1
- package/dist/typeorm-entities/signal/signal.orm-entity.d.ts +0 -24
- package/dist/typeorm-entities/signal/signal.orm-entity.js +0 -99
- package/dist/typeorm-entities/signal/signal.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/signal/types/signal.types.d.ts +0 -11
- package/dist/typeorm-entities/signal/types/signal.types.d.ts.map +0 -1
- package/dist/typeorm-entities/signal/types/signal.types.js +0 -10
- package/dist/typeorm-entities/signal/types/signal.types.js.map +0 -1
- package/dist/typeorm-entities/statistics/index.d.ts +0 -9
- package/dist/typeorm-entities/statistics/index.js +0 -14
- package/dist/typeorm-entities/statistics/index.js.map +0 -1
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.d.ts +0 -10
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.js +0 -44
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/statistics/statistics-snapshot.orm-entity.d.ts +0 -10
- package/dist/typeorm-entities/statistics/statistics-snapshot.orm-entity.js +0 -45
- package/dist/typeorm-entities/statistics/statistics-snapshot.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/statistics/statistics.orm-entity.d.ts +0 -14
- package/dist/typeorm-entities/statistics/statistics.orm-entity.js +0 -51
- package/dist/typeorm-entities/statistics/statistics.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/statistics/types/events.types.d.ts +0 -14
- package/dist/typeorm-entities/statistics/types/events.types.d.ts.map +0 -1
- package/dist/typeorm-entities/statistics/types/events.types.js +0 -13
- package/dist/typeorm-entities/statistics/types/events.types.js.map +0 -1
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.d.ts +0 -3
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.js +0 -3
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.js.map +0 -1
- package/dist/typeorm-entities/statistics/types/statistics.types.d.ts +0 -23
- package/dist/typeorm-entities/statistics/types/statistics.types.d.ts.map +0 -1
- package/dist/typeorm-entities/statistics/types/statistics.types.js +0 -17
- package/dist/typeorm-entities/statistics/types/statistics.types.js.map +0 -1
- package/dist/typeorm-entities/telegram-report/index.d.ts +0 -2
- package/dist/typeorm-entities/telegram-report/index.js +0 -6
- package/dist/typeorm-entities/telegram-report/index.js.map +0 -1
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.d.ts +0 -8
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.js +0 -39
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.js.map +0 -1
- package/dist/typeorm-entities/user/index.d.ts +0 -3
- package/dist/typeorm-entities/user/index.d.ts.map +0 -1
- package/dist/typeorm-entities/user/index.js +0 -9
- package/dist/typeorm-entities/user/index.js.map +0 -1
- package/dist/typeorm-entities/user/types/user.types.d.ts +0 -13
- package/dist/typeorm-entities/user/types/user.types.d.ts.map +0 -1
- package/dist/typeorm-entities/user/types/user.types.js +0 -18
- package/dist/typeorm-entities/user/types/user.types.js.map +0 -1
- package/dist/typeorm-entities/user/user.orm-entity.d.ts +0 -13
- package/dist/typeorm-entities/user/user.orm-entity.d.ts.map +0 -1
- package/dist/typeorm-entities/user/user.orm-entity.js +0 -57
- package/dist/typeorm-entities/user/user.orm-entity.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAA5C,oHAAA,eAAe,OAAA;AAExB,qDAAoD;AAA3C,6GAAA,aAAa,OAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MatchStats } from '../statistics';
|
|
2
|
-
import { AlgorithmOrmEntity } from '../algorithm';
|
|
3
|
-
import { GameOrmEntity } from '../game';
|
|
4
|
-
import { SignalResults } from './types/signal.types';
|
|
5
|
-
import { MessageOrmEntity } from '../message';
|
|
6
|
-
export declare class SignalOrmEntity {
|
|
7
|
-
id: string;
|
|
8
|
-
gameId: string;
|
|
9
|
-
algorithmId: string;
|
|
10
|
-
koef?: number;
|
|
11
|
-
maxKoef?: number;
|
|
12
|
-
gameTime: number;
|
|
13
|
-
numberSignal: number;
|
|
14
|
-
result?: SignalResults | null;
|
|
15
|
-
betTitle: string;
|
|
16
|
-
gameStats: MatchStats;
|
|
17
|
-
isFinished: boolean;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
algorithm?: AlgorithmOrmEntity;
|
|
21
|
-
game?: GameOrmEntity;
|
|
22
|
-
messages?: MessageOrmEntity[];
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=signal.orm-entity.d.ts.map
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SignalOrmEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const algorithm_1 = require("../algorithm");
|
|
15
|
-
const game_1 = require("../game");
|
|
16
|
-
const message_1 = require("../message");
|
|
17
|
-
let SignalOrmEntity = class SignalOrmEntity {
|
|
18
|
-
};
|
|
19
|
-
exports.SignalOrmEntity = SignalOrmEntity;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], SignalOrmEntity.prototype, "id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], SignalOrmEntity.prototype, "gameId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ name: 'algorithm_id', type: 'uuid' }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], SignalOrmEntity.prototype, "algorithmId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'float' }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], SignalOrmEntity.prototype, "koef", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ name: 'max_koef', nullable: true, type: 'float' }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], SignalOrmEntity.prototype, "maxKoef", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({ name: 'game_time' }),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], SignalOrmEntity.prototype, "gameTime", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ name: 'number_signal' }),
|
|
46
|
-
__metadata("design:type", Number)
|
|
47
|
-
], SignalOrmEntity.prototype, "numberSignal", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ nullable: true, type: 'jsonb' }),
|
|
50
|
-
__metadata("design:type", Object)
|
|
51
|
-
], SignalOrmEntity.prototype, "result", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ name: 'bet_title' }),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], SignalOrmEntity.prototype, "betTitle", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ name: 'game_stats', type: 'jsonb' }),
|
|
58
|
-
__metadata("design:type", Object)
|
|
59
|
-
], SignalOrmEntity.prototype, "gameStats", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ name: 'is_finished' }),
|
|
62
|
-
__metadata("design:type", Boolean)
|
|
63
|
-
], SignalOrmEntity.prototype, "isFinished", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)({ name: 'created_at' }),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], SignalOrmEntity.prototype, "createdAt", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.Column)({ name: 'updated_at' }),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], SignalOrmEntity.prototype, "updatedAt", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typeorm_1.ManyToOne)(() => algorithm_1.AlgorithmOrmEntity, { createForeignKeyConstraints: false }),
|
|
74
|
-
(0, typeorm_1.JoinColumn)({
|
|
75
|
-
name: 'algorithm_id',
|
|
76
|
-
referencedColumnName: 'id',
|
|
77
|
-
}),
|
|
78
|
-
__metadata("design:type", algorithm_1.AlgorithmOrmEntity)
|
|
79
|
-
], SignalOrmEntity.prototype, "algorithm", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.ManyToOne)(() => game_1.GameOrmEntity, { createForeignKeyConstraints: false }),
|
|
82
|
-
(0, typeorm_1.JoinColumn)({
|
|
83
|
-
name: 'game_id',
|
|
84
|
-
referencedColumnName: 'id',
|
|
85
|
-
}),
|
|
86
|
-
__metadata("design:type", game_1.GameOrmEntity)
|
|
87
|
-
], SignalOrmEntity.prototype, "game", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, typeorm_1.OneToMany)(() => message_1.MessageOrmEntity, message => message.signal),
|
|
90
|
-
__metadata("design:type", Array)
|
|
91
|
-
], SignalOrmEntity.prototype, "messages", void 0);
|
|
92
|
-
exports.SignalOrmEntity = SignalOrmEntity = __decorate([
|
|
93
|
-
(0, typeorm_1.Index)('signals_game_algorithm_uq', ['gameId', 'algorithmId'], {
|
|
94
|
-
unique: true,
|
|
95
|
-
}),
|
|
96
|
-
(0, typeorm_1.Index)('signals_algorithm_id_idx', ['algorithmId']),
|
|
97
|
-
(0, typeorm_1.Entity)('signals')
|
|
98
|
-
], SignalOrmEntity);
|
|
99
|
-
//# sourceMappingURL=signal.orm-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signal.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/signal.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyG;AAEzG,4CAAiD;AACjD,kCAAuC;AAEvC,wCAA6C;AAOtC,IAAM,eAAe,GAArB,MAAM,eAAe;CAwD3B,CAAA;AAxDY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAC5B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAC5B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;6CAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;gDAC5C;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;iDACd;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;qDACd;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;+CACb;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;iDACd;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;kDACzB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;mDACb;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;kDACd;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;kDACd;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAkB,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IAC3E,IAAA,oBAAU,EAAC;QACV,IAAI,EAAE,cAAc;QACpB,oBAAoB,EAAE,IAAI;KAC3B,CAAC;8BACU,8BAAkB;kDAAA;AAO9B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAa,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IACtE,IAAA,oBAAU,EAAC;QACV,IAAI,EAAE,SAAS;QACf,oBAAoB,EAAE,IAAI;KAC3B,CAAC;8BACK,oBAAa;6CAAA;AAGpB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAgB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;iDAChC;0BAvDlB,eAAe;IAL3B,IAAA,eAAK,EAAC,2BAA2B,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE;QAC7D,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,aAAa,CAAC,CAAC;IAClD,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,eAAe,CAwD3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signal.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/signal/types/signal.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;CACnB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TResultSignal = void 0;
|
|
4
|
-
var TResultSignal;
|
|
5
|
-
(function (TResultSignal) {
|
|
6
|
-
TResultSignal["Win"] = "win";
|
|
7
|
-
TResultSignal["Losing"] = "losing";
|
|
8
|
-
TResultSignal["Return"] = "return";
|
|
9
|
-
})(TResultSignal || (exports.TResultSignal = TResultSignal = {}));
|
|
10
|
-
//# sourceMappingURL=signal.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signal.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/signal/types/signal.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { StatisticsOrmEntity } from './statistics.orm-entity';
|
|
2
|
-
export { StatisticsSnapshotOrmEntity } from './statistics-snapshot.orm-entity';
|
|
3
|
-
export type { GameEvent } from './types/events.types';
|
|
4
|
-
export { EventType } from './types/events.types';
|
|
5
|
-
export type { StatItem, MatchStats, StatPlayers } from './types/statistics.types';
|
|
6
|
-
export { StatisticsItemType } from './types/statistics.types';
|
|
7
|
-
export { StatisticsAlgorithmOrmEntity } from './statistics-algorithm.orm-entity';
|
|
8
|
-
export type { StatisticsAlgorithmResultsType } from './types/statistics-algorithm.types';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatisticsAlgorithmOrmEntity = exports.StatisticsItemType = exports.EventType = exports.StatisticsSnapshotOrmEntity = exports.StatisticsOrmEntity = void 0;
|
|
4
|
-
var statistics_orm_entity_1 = require("./statistics.orm-entity");
|
|
5
|
-
Object.defineProperty(exports, "StatisticsOrmEntity", { enumerable: true, get: function () { return statistics_orm_entity_1.StatisticsOrmEntity; } });
|
|
6
|
-
var statistics_snapshot_orm_entity_1 = require("./statistics-snapshot.orm-entity");
|
|
7
|
-
Object.defineProperty(exports, "StatisticsSnapshotOrmEntity", { enumerable: true, get: function () { return statistics_snapshot_orm_entity_1.StatisticsSnapshotOrmEntity; } });
|
|
8
|
-
var events_types_1 = require("./types/events.types");
|
|
9
|
-
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return events_types_1.EventType; } });
|
|
10
|
-
var statistics_types_1 = require("./types/statistics.types");
|
|
11
|
-
Object.defineProperty(exports, "StatisticsItemType", { enumerable: true, get: function () { return statistics_types_1.StatisticsItemType; } });
|
|
12
|
-
var statistics_algorithm_orm_entity_1 = require("./statistics-algorithm.orm-entity");
|
|
13
|
-
Object.defineProperty(exports, "StatisticsAlgorithmOrmEntity", { enumerable: true, get: function () { return statistics_algorithm_orm_entity_1.StatisticsAlgorithmOrmEntity; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/index.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAApD,4HAAA,mBAAmB,OAAA;AAC5B,mFAA8E;AAArE,6IAAA,2BAA2B,OAAA;AAEpC,qDAAgD;AAAvC,yGAAA,SAAS,OAAA;AAElB,6DAA6D;AAApD,sHAAA,kBAAkB,OAAA;AAE3B,qFAAgF;AAAvE,+IAAA,4BAA4B,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StatisticsAlgorithmResultsType } from './types/statistics-algorithm.types';
|
|
2
|
-
export declare class StatisticsAlgorithmOrmEntity {
|
|
3
|
-
algorithmId: string;
|
|
4
|
-
leagueExternalId: number;
|
|
5
|
-
countryExternalId: number;
|
|
6
|
-
leagueName: string;
|
|
7
|
-
countryName: string;
|
|
8
|
-
results: StatisticsAlgorithmResultsType;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=statistics-algorithm.orm-entity.d.ts.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StatisticsAlgorithmOrmEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
let StatisticsAlgorithmOrmEntity = class StatisticsAlgorithmOrmEntity {
|
|
15
|
-
};
|
|
16
|
-
exports.StatisticsAlgorithmOrmEntity = StatisticsAlgorithmOrmEntity;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, typeorm_1.PrimaryColumn)({ name: 'algorithm_id', type: 'uuid' }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], StatisticsAlgorithmOrmEntity.prototype, "algorithmId", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, typeorm_1.PrimaryColumn)({ name: 'league_external_id' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], StatisticsAlgorithmOrmEntity.prototype, "leagueExternalId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ name: 'country_external_id' }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], StatisticsAlgorithmOrmEntity.prototype, "countryExternalId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)({ name: 'league_name' }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], StatisticsAlgorithmOrmEntity.prototype, "leagueName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ name: 'country_name' }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], StatisticsAlgorithmOrmEntity.prototype, "countryName", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)({ name: 'results', type: 'jsonb' }),
|
|
39
|
-
__metadata("design:type", Object)
|
|
40
|
-
], StatisticsAlgorithmOrmEntity.prototype, "results", void 0);
|
|
41
|
-
exports.StatisticsAlgorithmOrmEntity = StatisticsAlgorithmOrmEntity = __decorate([
|
|
42
|
-
(0, typeorm_1.Entity)('statistics-algorithm')
|
|
43
|
-
], StatisticsAlgorithmOrmEntity);
|
|
44
|
-
//# sourceMappingURL=statistics-algorithm.orm-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics-algorithm.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics-algorithm.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuD;AAIhD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;CAkBxC,CAAA;AAlBY,oEAA4B;AAEvC;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iEACnC;AAGnB;IADC,IAAA,uBAAa,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;;sEACtB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;uEACf;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;gEACd;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;iEACd;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;6DACJ;uCAjB5B,4BAA4B;IADxC,IAAA,gBAAM,EAAC,sBAAsB,CAAC;GAClB,4BAA4B,CAkBxC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StatItem } from './types/statistics.types';
|
|
2
|
-
import { StatisticsOrmEntity } from './statistics.orm-entity';
|
|
3
|
-
export declare class StatisticsSnapshotOrmEntity {
|
|
4
|
-
id: string;
|
|
5
|
-
gameId: string;
|
|
6
|
-
time: number;
|
|
7
|
-
stats: StatItem;
|
|
8
|
-
statistics?: StatisticsOrmEntity;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=statistics-snapshot.orm-entity.d.ts.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StatisticsSnapshotOrmEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const statistics_orm_entity_1 = require("./statistics.orm-entity");
|
|
15
|
-
let StatisticsSnapshotOrmEntity = class StatisticsSnapshotOrmEntity {
|
|
16
|
-
};
|
|
17
|
-
exports.StatisticsSnapshotOrmEntity = StatisticsSnapshotOrmEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], StatisticsSnapshotOrmEntity.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], StatisticsSnapshotOrmEntity.prototype, "gameId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], StatisticsSnapshotOrmEntity.prototype, "time", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
32
|
-
__metadata("design:type", Object)
|
|
33
|
-
], StatisticsSnapshotOrmEntity.prototype, "stats", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.ManyToOne)(() => statistics_orm_entity_1.StatisticsOrmEntity, stats => stats.snapshots, { onDelete: 'CASCADE' }),
|
|
36
|
-
(0, typeorm_1.JoinColumn)({ name: 'game_id', referencedColumnName: 'gameId' }),
|
|
37
|
-
__metadata("design:type", statistics_orm_entity_1.StatisticsOrmEntity)
|
|
38
|
-
], StatisticsSnapshotOrmEntity.prototype, "statistics", void 0);
|
|
39
|
-
exports.StatisticsSnapshotOrmEntity = StatisticsSnapshotOrmEntity = __decorate([
|
|
40
|
-
(0, typeorm_1.Index)('statistics_snapshots_game_time_uq', ['gameId', 'time'], {
|
|
41
|
-
unique: true,
|
|
42
|
-
}),
|
|
43
|
-
(0, typeorm_1.Entity)({ name: 'statistics-snapshots' })
|
|
44
|
-
], StatisticsSnapshotOrmEntity);
|
|
45
|
-
//# sourceMappingURL=statistics-snapshot.orm-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics-snapshot.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics-snapshot.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsG;AAEtG,mEAA6D;AAMtD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAgBvC,CAAA;AAhBY,kEAA2B;AAEtC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uDACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DAC5B;AAGd;IADC,IAAA,gBAAM,GAAE;;yDACG;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0DACX;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;8BACnD,2CAAmB;+DAAA;sCAfrB,2BAA2B;IAJvC,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QAC9D,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;GAC5B,2BAA2B,CAgBvC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { MatchStats } from './types/statistics.types';
|
|
2
|
-
import { GameEvent } from './types/events.types';
|
|
3
|
-
import { GameState } from '../game';
|
|
4
|
-
import { StatisticsSnapshotOrmEntity } from './statistics-snapshot.orm-entity';
|
|
5
|
-
export declare class StatisticsOrmEntity {
|
|
6
|
-
id: string;
|
|
7
|
-
gameId: string;
|
|
8
|
-
time: number;
|
|
9
|
-
gameState: GameState;
|
|
10
|
-
stats: MatchStats;
|
|
11
|
-
events: GameEvent[];
|
|
12
|
-
snapshots?: StatisticsSnapshotOrmEntity[];
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=statistics.orm-entity.d.ts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.StatisticsOrmEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const game_1 = require("../game");
|
|
15
|
-
const statistics_snapshot_orm_entity_1 = require("./statistics-snapshot.orm-entity");
|
|
16
|
-
let StatisticsOrmEntity = class StatisticsOrmEntity {
|
|
17
|
-
};
|
|
18
|
-
exports.StatisticsOrmEntity = StatisticsOrmEntity;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], StatisticsOrmEntity.prototype, "id", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], StatisticsOrmEntity.prototype, "gameId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], StatisticsOrmEntity.prototype, "time", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ name: 'game_state' }),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], StatisticsOrmEntity.prototype, "gameState", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
37
|
-
__metadata("design:type", Object)
|
|
38
|
-
], StatisticsOrmEntity.prototype, "stats", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ name: 'game_events', type: 'jsonb' }),
|
|
41
|
-
__metadata("design:type", Array)
|
|
42
|
-
], StatisticsOrmEntity.prototype, "events", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.OneToMany)(() => statistics_snapshot_orm_entity_1.StatisticsSnapshotOrmEntity, snapshot => snapshot.statistics),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], StatisticsOrmEntity.prototype, "snapshots", void 0);
|
|
47
|
-
exports.StatisticsOrmEntity = StatisticsOrmEntity = __decorate([
|
|
48
|
-
(0, typeorm_1.Index)('statistics_game_id_uq', ['gameId'], { unique: true }),
|
|
49
|
-
(0, typeorm_1.Entity)({ name: 'statistics' })
|
|
50
|
-
], StatisticsOrmEntity);
|
|
51
|
-
//# sourceMappingURL=statistics.orm-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAGlF,kCAAmC;AACnC,qFAA8E;AAIvE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAqB/B,CAAA;AArBY,kDAAmB;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;+CACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAC5B;AAGd;IADC,IAAA,gBAAM,GAAE;;iDACG;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;sDACX;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;kDACT;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mDAC5B;AAGnB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4DAA2B,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;sDACrC;8BApB9B,mBAAmB;IAF/B,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,mBAAmB,CAqB/B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum EventType {
|
|
2
|
-
Goal = "goal",
|
|
3
|
-
YellowCard = "yellowCard",
|
|
4
|
-
RedCard = "redCard",
|
|
5
|
-
Penalty = "penalty",
|
|
6
|
-
MissPenalty = "missPenalty",
|
|
7
|
-
Corner = "corner"
|
|
8
|
-
}
|
|
9
|
-
export interface GameEvent {
|
|
10
|
-
type: EventType;
|
|
11
|
-
time: string;
|
|
12
|
-
player: 1 | 2;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=events.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/events.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,CAAA;IAIf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,GAAG,CAAC,CAAA;CACd"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = void 0;
|
|
4
|
-
var EventType;
|
|
5
|
-
(function (EventType) {
|
|
6
|
-
EventType["Goal"] = "goal";
|
|
7
|
-
EventType["YellowCard"] = "yellowCard";
|
|
8
|
-
EventType["RedCard"] = "redCard";
|
|
9
|
-
EventType["Penalty"] = "penalty";
|
|
10
|
-
EventType["MissPenalty"] = "missPenalty";
|
|
11
|
-
EventType["Corner"] = "corner";
|
|
12
|
-
})(EventType || (exports.EventType = EventType = {}));
|
|
13
|
-
//# sourceMappingURL=events.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/events.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,sCAAyB,CAAA;IACzB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,wCAA2B,CAAA;IAC3B,8BAAiB,CAAA;AACnB,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics-algorithm.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/statistics-algorithm.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface MatchStats {
|
|
2
|
-
HT: StatItem | null;
|
|
3
|
-
ST: StatItem | null;
|
|
4
|
-
FT: StatItem | null;
|
|
5
|
-
}
|
|
6
|
-
export type StatItem = Record<StatisticsItemType, StatPlayers | null>;
|
|
7
|
-
export declare enum StatisticsItemType {
|
|
8
|
-
Corners = "corners",
|
|
9
|
-
Attacks = "attacks",
|
|
10
|
-
DangerousAttacks = "dangerousAttacks",
|
|
11
|
-
ShotsOn = "shotsOn",
|
|
12
|
-
ShotsOff = "shotsOff",
|
|
13
|
-
Penalty = "penalty",
|
|
14
|
-
YellowCards = "yellowCards",
|
|
15
|
-
RedCards = "redCards",
|
|
16
|
-
Totals = "total",
|
|
17
|
-
Possessions = "possessions"
|
|
18
|
-
}
|
|
19
|
-
export interface StatPlayers {
|
|
20
|
-
player1: number;
|
|
21
|
-
player2: number;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=statistics.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/statistics.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnB,EAAE,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnB,EAAE,EAAE,QAAQ,GAAG,IAAI,CAAA;CACpB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,kBAAkB,EAAE,WAAW,GAAG,IAAI,CAAC,CAAA;AAErE,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,UAAU;IAChB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatisticsItemType = void 0;
|
|
4
|
-
var StatisticsItemType;
|
|
5
|
-
(function (StatisticsItemType) {
|
|
6
|
-
StatisticsItemType["Corners"] = "corners";
|
|
7
|
-
StatisticsItemType["Attacks"] = "attacks";
|
|
8
|
-
StatisticsItemType["DangerousAttacks"] = "dangerousAttacks";
|
|
9
|
-
StatisticsItemType["ShotsOn"] = "shotsOn";
|
|
10
|
-
StatisticsItemType["ShotsOff"] = "shotsOff";
|
|
11
|
-
StatisticsItemType["Penalty"] = "penalty";
|
|
12
|
-
StatisticsItemType["YellowCards"] = "yellowCards";
|
|
13
|
-
StatisticsItemType["RedCards"] = "redCards";
|
|
14
|
-
StatisticsItemType["Totals"] = "total";
|
|
15
|
-
StatisticsItemType["Possessions"] = "possessions";
|
|
16
|
-
})(StatisticsItemType || (exports.StatisticsItemType = StatisticsItemType = {}));
|
|
17
|
-
//# sourceMappingURL=statistics.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/statistics.types.ts"],"names":[],"mappings":";;;AAQA,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,2DAAqC,CAAA;IACrC,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,iDAA2B,CAAA;IAC3B,2CAAqB,CAAA;IACrB,sCAAgB,CAAA;IAChB,iDAA2B,CAAA;AAC7B,CAAC,EAXW,kBAAkB,kCAAlB,kBAAkB,QAW7B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TelegramReportSignalsOrmEntity = void 0;
|
|
4
|
-
var telegram_report_signals_orm_entity_1 = require("./telegram-report-signals.orm-entity");
|
|
5
|
-
Object.defineProperty(exports, "TelegramReportSignalsOrmEntity", { enumerable: true, get: function () { return telegram_report_signals_orm_entity_1.TelegramReportSignalsOrmEntity; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/telegram-report/index.ts"],"names":[],"mappings":";;;AAAA,2FAAqF;AAA5E,oJAAA,8BAA8B,OAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AlgorithmOrmEntity } from '../algorithm';
|
|
2
|
-
export declare class TelegramReportSignalsOrmEntity {
|
|
3
|
-
id: string;
|
|
4
|
-
algorithmId: string;
|
|
5
|
-
lastPublish: string;
|
|
6
|
-
algorithm?: AlgorithmOrmEntity;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=telegram-report-signals.orm-entity.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TelegramReportSignalsOrmEntity = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const algorithm_1 = require("../algorithm");
|
|
15
|
-
let TelegramReportSignalsOrmEntity = class TelegramReportSignalsOrmEntity {
|
|
16
|
-
};
|
|
17
|
-
exports.TelegramReportSignalsOrmEntity = TelegramReportSignalsOrmEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], TelegramReportSignalsOrmEntity.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, typeorm_1.Index)(),
|
|
24
|
-
(0, typeorm_1.Column)({ name: 'algorithm_id' }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], TelegramReportSignalsOrmEntity.prototype, "algorithmId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ name: 'last_publish' }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], TelegramReportSignalsOrmEntity.prototype, "lastPublish", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.OneToOne)(() => algorithm_1.AlgorithmOrmEntity, { createForeignKeyConstraints: false }),
|
|
33
|
-
(0, typeorm_1.JoinColumn)({ name: 'algorithm_id', referencedColumnName: 'id' }),
|
|
34
|
-
__metadata("design:type", algorithm_1.AlgorithmOrmEntity)
|
|
35
|
-
], TelegramReportSignalsOrmEntity.prototype, "algorithm", void 0);
|
|
36
|
-
exports.TelegramReportSignalsOrmEntity = TelegramReportSignalsOrmEntity = __decorate([
|
|
37
|
-
(0, typeorm_1.Entity)({ name: 'telegram-report' })
|
|
38
|
-
], TelegramReportSignalsOrmEntity);
|
|
39
|
-
//# sourceMappingURL=telegram-report-signals.orm-entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-report-signals.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6F;AAC7F,4CAAiD;AAI1C,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;CAc1C,CAAA;AAdY,wEAA8B;AAEzC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;0DACrB;AAIV;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;mEACd;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;mEACd;AAInB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,8BAAkB,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IAC1E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACrD,8BAAkB;iEAAA;yCAbnB,8BAA8B;IAD1C,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;GACvB,8BAA8B,CAc1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserState = exports.UserRole = exports.UserOrmEntity = void 0;
|
|
4
|
-
var user_orm_entity_1 = require("./user.orm-entity");
|
|
5
|
-
Object.defineProperty(exports, "UserOrmEntity", { enumerable: true, get: function () { return user_orm_entity_1.UserOrmEntity; } });
|
|
6
|
-
var user_types_1 = require("./types/user.types");
|
|
7
|
-
Object.defineProperty(exports, "UserRole", { enumerable: true, get: function () { return user_types_1.UserRole; } });
|
|
8
|
-
Object.defineProperty(exports, "UserState", { enumerable: true, get: function () { return user_types_1.UserState; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/user/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AACtB,iDAAwD;AAA/C,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum UserState {
|
|
2
|
-
New = "New",
|
|
3
|
-
EmailUnverified = "EmailUnverified",
|
|
4
|
-
Activated = "Activated",
|
|
5
|
-
Banned = "Banned"
|
|
6
|
-
}
|
|
7
|
-
export declare enum UserRole {
|
|
8
|
-
Admin = "Admin",
|
|
9
|
-
SuperAdmin = "SuperAdmin",
|
|
10
|
-
User = "User",
|
|
11
|
-
Guest = "Guest"
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=user.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/user/types/user.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
|