@bets-pf/shared-typeorm-models 1.0.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 +0 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/typeorm-entities/algorithm/algorithm.orm-entity.d.ts +17 -0
- package/dist/typeorm-entities/algorithm/algorithm.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/algorithm/algorithm.orm-entity.js +74 -0
- package/dist/typeorm-entities/algorithm/algorithm.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/algorithm/index.d.ts +4 -0
- package/dist/typeorm-entities/algorithm/index.d.ts.map +1 -0
- package/dist/typeorm-entities/algorithm/index.js +14 -0
- package/dist/typeorm-entities/algorithm/index.js.map +1 -0
- package/dist/typeorm-entities/algorithm/types/algorithm.types.d.ts +87 -0
- package/dist/typeorm-entities/algorithm/types/algorithm.types.d.ts.map +1 -0
- package/dist/typeorm-entities/algorithm/types/algorithm.types.js +62 -0
- package/dist/typeorm-entities/algorithm/types/algorithm.types.js.map +1 -0
- package/dist/typeorm-entities/game/game.orm-entity.d.ts +19 -0
- package/dist/typeorm-entities/game/game.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/game/game.orm-entity.js +79 -0
- package/dist/typeorm-entities/game/game.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/game/index.d.ts +3 -0
- package/dist/typeorm-entities/game/index.d.ts.map +1 -0
- package/dist/typeorm-entities/game/index.js +8 -0
- package/dist/typeorm-entities/game/index.js.map +1 -0
- package/dist/typeorm-entities/game/types/game.types.d.ts +8 -0
- package/dist/typeorm-entities/game/types/game.types.d.ts.map +1 -0
- package/dist/typeorm-entities/game/types/game.types.js +12 -0
- package/dist/typeorm-entities/game/types/game.types.js.map +1 -0
- package/dist/typeorm-entities/index.d.ts +9 -0
- package/dist/typeorm-entities/index.d.ts.map +1 -0
- package/dist/typeorm-entities/index.js +25 -0
- package/dist/typeorm-entities/index.js.map +1 -0
- package/dist/typeorm-entities/message/index.d.ts +3 -0
- package/dist/typeorm-entities/message/index.d.ts.map +1 -0
- package/dist/typeorm-entities/message/index.js +6 -0
- package/dist/typeorm-entities/message/index.js.map +1 -0
- package/dist/typeorm-entities/message/message.orm-entity.d.ts +12 -0
- package/dist/typeorm-entities/message/message.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/message/message.orm-entity.js +54 -0
- package/dist/typeorm-entities/message/message.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/message/types/message-vars.types.d.ts +27 -0
- package/dist/typeorm-entities/message/types/message-vars.types.d.ts.map +1 -0
- package/dist/typeorm-entities/message/types/message-vars.types.js +3 -0
- package/dist/typeorm-entities/message/types/message-vars.types.js.map +1 -0
- package/dist/typeorm-entities/odds/index.d.ts +4 -0
- package/dist/typeorm-entities/odds/index.d.ts.map +1 -0
- package/dist/typeorm-entities/odds/index.js +9 -0
- package/dist/typeorm-entities/odds/index.js.map +1 -0
- package/dist/typeorm-entities/odds/odds.orm-entity.d.ts +13 -0
- package/dist/typeorm-entities/odds/odds.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/odds/odds.orm-entity.js +58 -0
- package/dist/typeorm-entities/odds/odds.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/odds/types/odds.types.d.ts +20 -0
- package/dist/typeorm-entities/odds/types/odds.types.d.ts.map +1 -0
- package/dist/typeorm-entities/odds/types/odds.types.js +14 -0
- package/dist/typeorm-entities/odds/types/odds.types.js.map +1 -0
- package/dist/typeorm-entities/signal/index.d.ts +4 -0
- package/dist/typeorm-entities/signal/index.d.ts.map +1 -0
- package/dist/typeorm-entities/signal/index.js +8 -0
- package/dist/typeorm-entities/signal/index.js.map +1 -0
- package/dist/typeorm-entities/signal/signal.orm-entity.d.ts +24 -0
- package/dist/typeorm-entities/signal/signal.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/signal/signal.orm-entity.js +95 -0
- package/dist/typeorm-entities/signal/signal.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/signal/types/signal.types.d.ts +11 -0
- package/dist/typeorm-entities/signal/types/signal.types.d.ts.map +1 -0
- package/dist/typeorm-entities/signal/types/signal.types.js +10 -0
- package/dist/typeorm-entities/signal/types/signal.types.js.map +1 -0
- package/dist/typeorm-entities/statistics/index.d.ts +8 -0
- package/dist/typeorm-entities/statistics/index.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/index.js +12 -0
- package/dist/typeorm-entities/statistics/index.js.map +1 -0
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.d.ts +10 -0
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.js +44 -0
- package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/statistics/statistics.orm-entity.d.ts +12 -0
- package/dist/typeorm-entities/statistics/statistics.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/statistics.orm-entity.js +45 -0
- package/dist/typeorm-entities/statistics/statistics.orm-entity.js.map +1 -0
- package/dist/typeorm-entities/statistics/types/events.types.d.ts +14 -0
- package/dist/typeorm-entities/statistics/types/events.types.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/types/events.types.js +13 -0
- package/dist/typeorm-entities/statistics/types/events.types.js.map +1 -0
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.d.ts +3 -0
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.js +3 -0
- package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.js.map +1 -0
- package/dist/typeorm-entities/statistics/types/statistics.types.d.ts +22 -0
- package/dist/typeorm-entities/statistics/types/statistics.types.d.ts.map +1 -0
- package/dist/typeorm-entities/statistics/types/statistics.types.js +16 -0
- package/dist/typeorm-entities/statistics/types/statistics.types.js.map +1 -0
- package/dist/typeorm-entities/telegram-report/index.d.ts +2 -0
- package/dist/typeorm-entities/telegram-report/index.d.ts.map +1 -0
- package/dist/typeorm-entities/telegram-report/index.js +6 -0
- package/dist/typeorm-entities/telegram-report/index.js.map +1 -0
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.d.ts +8 -0
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.d.ts.map +1 -0
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.js +39 -0
- package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,54 @@
|
|
|
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.MessageOrmEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const signal_1 = require("../signal");
|
|
15
|
+
let MessageOrmEntity = class MessageOrmEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.MessageOrmEntity = MessageOrmEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MessageOrmEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'signal_id', type: 'uuid' }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], MessageOrmEntity.prototype, "signalId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'external_message_id' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], MessageOrmEntity.prototype, "externalMessageId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'external_channel_id' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MessageOrmEntity.prototype, "externalChannelId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'fixed_text' }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MessageOrmEntity.prototype, "fixedText", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'created_at' }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MessageOrmEntity.prototype, "createdAt", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'updated_at' }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], MessageOrmEntity.prototype, "updatedAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(() => signal_1.SignalOrmEntity, signal => signal.messages),
|
|
48
|
+
(0, typeorm_1.JoinColumn)({ name: 'signal_id', referencedColumnName: 'id' }),
|
|
49
|
+
__metadata("design:type", signal_1.SignalOrmEntity)
|
|
50
|
+
], MessageOrmEntity.prototype, "signal", void 0);
|
|
51
|
+
exports.MessageOrmEntity = MessageOrmEntity = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)('messages')
|
|
53
|
+
], MessageOrmEntity);
|
|
54
|
+
//# sourceMappingURL=message.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/message/message.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuF;AACvF,sCAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAyB5B,CAAA;AAzBY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;kDAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;2DACf;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;2DACf;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;mDACd;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;mDACd;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;mDACd;AAIjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAe,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3D,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACrD,wBAAe;gDAAA;2BAxBb,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,gBAAgB,CAyB5B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TResultSignal } from '../../signal';
|
|
2
|
+
export interface VarsMessage {
|
|
3
|
+
numberSignal: number;
|
|
4
|
+
player1: string;
|
|
5
|
+
player2: string;
|
|
6
|
+
league: string;
|
|
7
|
+
winCountLeague?: number;
|
|
8
|
+
losingCountLeague?: number;
|
|
9
|
+
betTitle: string;
|
|
10
|
+
coefficient?: number;
|
|
11
|
+
maxCoefficient?: number;
|
|
12
|
+
result: TResultSignal | null;
|
|
13
|
+
finishScore?: string;
|
|
14
|
+
totalHome?: number;
|
|
15
|
+
totalAway?: number;
|
|
16
|
+
matchTime?: number;
|
|
17
|
+
liveTime?: string;
|
|
18
|
+
partName?: string;
|
|
19
|
+
finalTotalHome?: number;
|
|
20
|
+
finalTotalAway?: number;
|
|
21
|
+
partsTotal?: string;
|
|
22
|
+
reportDate?: string;
|
|
23
|
+
bets?: string;
|
|
24
|
+
algorithms?: string;
|
|
25
|
+
algorithmNumber?: number;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=message-vars.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-vars.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/message/types/message-vars.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-vars.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/message/types/message-vars.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/odds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OddTimeType = exports.OddMarketType = exports.OddsOrmEntity = void 0;
|
|
4
|
+
var odds_orm_entity_1 = require("./odds.orm-entity");
|
|
5
|
+
Object.defineProperty(exports, "OddsOrmEntity", { enumerable: true, get: function () { return odds_orm_entity_1.OddsOrmEntity; } });
|
|
6
|
+
var odds_types_1 = require("./types/odds.types");
|
|
7
|
+
Object.defineProperty(exports, "OddMarketType", { enumerable: true, get: function () { return odds_types_1.OddMarketType; } });
|
|
8
|
+
Object.defineProperty(exports, "OddTimeType", { enumerable: true, get: function () { return odds_types_1.OddTimeType; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/odds/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AAEtB,iDAA+D;AAAtD,2GAAA,aAAa,OAAA;AAAE,yGAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GameOrmEntity } from '../game';
|
|
2
|
+
import { OddMarketType, OddOneXTwo, OddTimeType, OddTotals } from './types/odds.types';
|
|
3
|
+
export declare class OddsOrmEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
gameId: string;
|
|
6
|
+
marketType: OddMarketType;
|
|
7
|
+
timeType: OddTimeType;
|
|
8
|
+
fullTimeOdds: OddOneXTwo | OddTotals[] | null;
|
|
9
|
+
halfTimeOdds: OddOneXTwo | OddTotals[] | null;
|
|
10
|
+
secondTimeOdds: OddOneXTwo | OddTotals[] | null;
|
|
11
|
+
game: GameOrmEntity;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=odds.orm-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/odds/odds.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEtF,qBACa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAA;IAGV,MAAM,EAAE,MAAM,CAAA;IAGd,UAAU,EAAE,aAAa,CAAA;IAGzB,QAAQ,EAAE,WAAW,CAAA;IAGrB,YAAY,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,CAAA;IAG7C,YAAY,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,CAAA;IAG7C,cAAc,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,IAAI,CAAA;IAO/C,IAAI,EAAE,aAAa,CAAA;CACpB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.OddsOrmEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const game_1 = require("../game");
|
|
15
|
+
const odds_types_1 = require("./types/odds.types");
|
|
16
|
+
let OddsOrmEntity = class OddsOrmEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.OddsOrmEntity = OddsOrmEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], OddsOrmEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], OddsOrmEntity.prototype, "gameId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'market_type', type: 'text' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], OddsOrmEntity.prototype, "marketType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'time_type' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], OddsOrmEntity.prototype, "timeType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'full_time_odds', type: 'jsonb', nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], OddsOrmEntity.prototype, "fullTimeOdds", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'half_time_odds', type: 'jsonb', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], OddsOrmEntity.prototype, "halfTimeOdds", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'second_time_odds', type: 'jsonb', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], OddsOrmEntity.prototype, "secondTimeOdds", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.ManyToOne)(() => game_1.GameOrmEntity, match => match.odds),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({
|
|
50
|
+
name: 'game_id',
|
|
51
|
+
referencedColumnName: 'id',
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", game_1.GameOrmEntity)
|
|
54
|
+
], OddsOrmEntity.prototype, "game", void 0);
|
|
55
|
+
exports.OddsOrmEntity = OddsOrmEntity = __decorate([
|
|
56
|
+
(0, typeorm_1.Entity)({ name: 'odds' })
|
|
57
|
+
], OddsOrmEntity);
|
|
58
|
+
//# sourceMappingURL=odds.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/odds/odds.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuF;AACvF,kCAAuC;AACvC,mDAAsF;AAG/E,IAAM,aAAa,GAAnB,MAAM,aAAa;CA4BzB,CAAA;AA5BY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CAC5B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDACrB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;+CACT;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAG7C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAG7C;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACrB;AAO/C;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;IACnD,IAAA,oBAAU,EAAC;QACV,IAAI,EAAE,SAAS;QACf,oBAAoB,EAAE,IAAI;KAC3B,CAAC;8BACI,oBAAa;2CAAA;wBA3BR,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;GACZ,aAAa,CA4BzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum OddMarketType {
|
|
2
|
+
oneXtwo = "oneXtwo",
|
|
3
|
+
totals = "totals"
|
|
4
|
+
}
|
|
5
|
+
export declare enum OddTimeType {
|
|
6
|
+
live = "live",
|
|
7
|
+
pre = "pre"
|
|
8
|
+
}
|
|
9
|
+
export interface OddOneXTwo {
|
|
10
|
+
p1: number;
|
|
11
|
+
p2: number;
|
|
12
|
+
x: number;
|
|
13
|
+
}
|
|
14
|
+
export interface OddTotals {
|
|
15
|
+
type: string;
|
|
16
|
+
under: number | null;
|
|
17
|
+
over: number | null;
|
|
18
|
+
act: boolean | null;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=odds.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/odds/types/odds.types.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAA;CACpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OddTimeType = exports.OddMarketType = void 0;
|
|
4
|
+
var OddMarketType;
|
|
5
|
+
(function (OddMarketType) {
|
|
6
|
+
OddMarketType["oneXtwo"] = "oneXtwo";
|
|
7
|
+
OddMarketType["totals"] = "totals";
|
|
8
|
+
})(OddMarketType || (exports.OddMarketType = OddMarketType = {}));
|
|
9
|
+
var OddTimeType;
|
|
10
|
+
(function (OddTimeType) {
|
|
11
|
+
OddTimeType["live"] = "live";
|
|
12
|
+
OddTimeType["pre"] = "pre";
|
|
13
|
+
})(OddTimeType || (exports.OddTimeType = OddTimeType = {}));
|
|
14
|
+
//# sourceMappingURL=odds.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"odds.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/odds/types/odds.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0BAAW,CAAA;AACb,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TResultSignal = exports.SignalOrmEntity = void 0;
|
|
4
|
+
var signal_orm_entity_1 = require("./signal.orm-entity");
|
|
5
|
+
Object.defineProperty(exports, "SignalOrmEntity", { enumerable: true, get: function () { return signal_orm_entity_1.SignalOrmEntity; } });
|
|
6
|
+
var signal_types_1 = require("./types/signal.types");
|
|
7
|
+
Object.defineProperty(exports, "TResultSignal", { enumerable: true, get: function () { return signal_types_1.TResultSignal; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/signal.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,qBACa,eAAe;IAE1B,EAAE,EAAE,MAAM,CAAA;IAGV,MAAM,EAAE,MAAM,CAAA;IAGd,WAAW,EAAE,MAAM,CAAA;IAGnB,IAAI,CAAC,EAAE,MAAM,CAAA;IAGb,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,QAAQ,EAAE,MAAM,CAAA;IAGhB,YAAY,EAAE,MAAM,CAAA;IAGpB,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAG7B,QAAQ,EAAE,MAAM,CAAA;IAGhB,SAAS,EAAE,UAAU,CAAA;IAGrB,UAAU,EAAE,OAAO,CAAA;IAGnB,SAAS,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;IAOjB,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAO9B,IAAI,CAAC,EAAE,aAAa,CAAA;IAGpB,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC9B"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.Entity)('signals')
|
|
94
|
+
], SignalOrmEntity);
|
|
95
|
+
//# sourceMappingURL=signal.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/signal.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkG;AAElG,4CAAiD;AACjD,kCAAuC;AAEvC,wCAA6C;AAGtC,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;IAD3B,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,eAAe,CAwD3B"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { StatisticsOrmEntity } from './statistics.orm-entity';
|
|
2
|
+
export type { GameEvent } from './types/events.types';
|
|
3
|
+
export { EventType } from './types/events.types';
|
|
4
|
+
export type { StatItem, MatchStats, StatPlayers } from './types/statistics.types';
|
|
5
|
+
export { StatisticsItemType } from './types/statistics.types';
|
|
6
|
+
export { StatisticsAlgorithmOrmEntity } from './statistics-algorithm.orm-entity';
|
|
7
|
+
export type { StatisticsAlgorithmResultsType } from './types/statistics-algorithm.types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAChF,YAAY,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatisticsAlgorithmOrmEntity = exports.StatisticsItemType = exports.EventType = 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 events_types_1 = require("./types/events.types");
|
|
7
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return events_types_1.EventType; } });
|
|
8
|
+
var statistics_types_1 = require("./types/statistics.types");
|
|
9
|
+
Object.defineProperty(exports, "StatisticsItemType", { enumerable: true, get: function () { return statistics_types_1.StatisticsItemType; } });
|
|
10
|
+
var statistics_algorithm_orm_entity_1 = require("./statistics-algorithm.orm-entity");
|
|
11
|
+
Object.defineProperty(exports, "StatisticsAlgorithmOrmEntity", { enumerable: true, get: function () { return statistics_algorithm_orm_entity_1.StatisticsAlgorithmOrmEntity; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/index.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAApD,4HAAA,mBAAmB,OAAA;AAE5B,qDAAgD;AAAvC,yGAAA,SAAS,OAAA;AAElB,6DAA6D;AAApD,sHAAA,kBAAkB,OAAA;AAE3B,qFAAgF;AAAvE,+IAAA,4BAA4B,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics-algorithm.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics-algorithm.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAA;AAEnF,qBACa,4BAA4B;IAEvC,WAAW,EAAE,MAAM,CAAA;IAGnB,gBAAgB,EAAE,MAAM,CAAA;IAGxB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,UAAU,EAAE,MAAM,CAAA;IAGlB,WAAW,EAAE,MAAM,CAAA;IAGnB,OAAO,EAAE,8BAA8B,CAAA;CACxC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatchStats } from './types/statistics.types';
|
|
2
|
+
import { GameEvent } from './types/events.types';
|
|
3
|
+
import { GameState } from '../game';
|
|
4
|
+
export declare class StatisticsOrmEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
gameId: string;
|
|
7
|
+
time: number;
|
|
8
|
+
gameState: GameState;
|
|
9
|
+
stats: MatchStats;
|
|
10
|
+
events: GameEvent[];
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=statistics.orm-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,qBACa,mBAAmB;IAE9B,EAAE,EAAE,MAAM,CAAA;IAGV,MAAM,EAAE,MAAM,CAAA;IAGd,IAAI,EAAE,MAAM,CAAA;IAGZ,SAAS,EAAE,SAAS,CAAA;IAGpB,KAAK,EAAE,UAAU,CAAA;IAGjB,MAAM,EAAE,SAAS,EAAE,CAAA;CACpB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
let StatisticsOrmEntity = class StatisticsOrmEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.StatisticsOrmEntity = StatisticsOrmEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], StatisticsOrmEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], StatisticsOrmEntity.prototype, "gameId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], StatisticsOrmEntity.prototype, "time", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'game_state' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], StatisticsOrmEntity.prototype, "gameState", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'jsonb' }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], StatisticsOrmEntity.prototype, "stats", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'game_events', type: 'jsonb' }),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], StatisticsOrmEntity.prototype, "events", void 0);
|
|
42
|
+
exports.StatisticsOrmEntity = StatisticsOrmEntity = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)({ name: 'statistics' })
|
|
44
|
+
], StatisticsOrmEntity);
|
|
45
|
+
//# sourceMappingURL=statistics.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAGhE,kCAAmC;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAkB/B,CAAA;AAlBY,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;8BAjBR,mBAAmB;IAD/B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,mBAAmB,CAkB/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|