@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
package/README.md
ADDED
|
File without changes
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { GameEvent, MatchStats, StatPlayers, StatItem, VarsMessage, StatisticsAlgorithmResultsType, OddOneXTwo, OddTotals, AlgorithmOddsConditionItem, AlgorithmLeftI, AlgorithmAdditionalFilters, AlgorithmResultOptions, AlgorithmCondition, AlgorithmRightI, SignalResults, } from './typeorm-entities';
|
|
2
|
+
export { AlgorithmOrmEntity, GameOrmEntity, MessageOrmEntity, OddsOrmEntity, StatisticsOrmEntity, StatisticsAlgorithmOrmEntity, TelegramReportSignalsOrmEntity, SignalOrmEntity, } from './typeorm-entities';
|
|
3
|
+
export { EventType, AlgorithmTeamType, StatisticsItemType, AlgorithmStatType, OddTimeType, GameState, AlgorithmTimerPeriod, AlgorithmOddsMarketType, AlgorithmAdditionalFiltersMode, AlgorithmOddsTimeType, AlgorithmComparator, OddMarketType, TResultSignal, } from './typeorm-entities';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,8BAA8B,EAC9B,UAAU,EACV,SAAS,EACT,0BAA0B,EAC1B,cAAc,EACd,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,aAAa,GACd,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,8BAA8B,EAC9B,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,8BAA8B,EAC9B,qBAAqB,EACrB,mBAAmB,EACnB,aAAa,EACb,aAAa,GACd,MAAM,oBAAoB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TResultSignal = exports.OddMarketType = exports.AlgorithmComparator = exports.AlgorithmOddsTimeType = exports.AlgorithmAdditionalFiltersMode = exports.AlgorithmOddsMarketType = exports.AlgorithmTimerPeriod = exports.GameState = exports.OddTimeType = exports.AlgorithmStatType = exports.StatisticsItemType = exports.AlgorithmTeamType = exports.EventType = exports.SignalOrmEntity = exports.TelegramReportSignalsOrmEntity = exports.StatisticsAlgorithmOrmEntity = exports.StatisticsOrmEntity = exports.OddsOrmEntity = exports.MessageOrmEntity = exports.GameOrmEntity = exports.AlgorithmOrmEntity = void 0;
|
|
4
|
+
var typeorm_entities_1 = require("./typeorm-entities");
|
|
5
|
+
Object.defineProperty(exports, "AlgorithmOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.AlgorithmOrmEntity; } });
|
|
6
|
+
Object.defineProperty(exports, "GameOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.GameOrmEntity; } });
|
|
7
|
+
Object.defineProperty(exports, "MessageOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.MessageOrmEntity; } });
|
|
8
|
+
Object.defineProperty(exports, "OddsOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.OddsOrmEntity; } });
|
|
9
|
+
Object.defineProperty(exports, "StatisticsOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.StatisticsOrmEntity; } });
|
|
10
|
+
Object.defineProperty(exports, "StatisticsAlgorithmOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.StatisticsAlgorithmOrmEntity; } });
|
|
11
|
+
Object.defineProperty(exports, "TelegramReportSignalsOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.TelegramReportSignalsOrmEntity; } });
|
|
12
|
+
Object.defineProperty(exports, "SignalOrmEntity", { enumerable: true, get: function () { return typeorm_entities_1.SignalOrmEntity; } });
|
|
13
|
+
var typeorm_entities_2 = require("./typeorm-entities");
|
|
14
|
+
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return typeorm_entities_2.EventType; } });
|
|
15
|
+
Object.defineProperty(exports, "AlgorithmTeamType", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmTeamType; } });
|
|
16
|
+
Object.defineProperty(exports, "StatisticsItemType", { enumerable: true, get: function () { return typeorm_entities_2.StatisticsItemType; } });
|
|
17
|
+
Object.defineProperty(exports, "AlgorithmStatType", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmStatType; } });
|
|
18
|
+
Object.defineProperty(exports, "OddTimeType", { enumerable: true, get: function () { return typeorm_entities_2.OddTimeType; } });
|
|
19
|
+
Object.defineProperty(exports, "GameState", { enumerable: true, get: function () { return typeorm_entities_2.GameState; } });
|
|
20
|
+
Object.defineProperty(exports, "AlgorithmTimerPeriod", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmTimerPeriod; } });
|
|
21
|
+
Object.defineProperty(exports, "AlgorithmOddsMarketType", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmOddsMarketType; } });
|
|
22
|
+
Object.defineProperty(exports, "AlgorithmAdditionalFiltersMode", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmAdditionalFiltersMode; } });
|
|
23
|
+
Object.defineProperty(exports, "AlgorithmOddsTimeType", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmOddsTimeType; } });
|
|
24
|
+
Object.defineProperty(exports, "AlgorithmComparator", { enumerable: true, get: function () { return typeorm_entities_2.AlgorithmComparator; } });
|
|
25
|
+
Object.defineProperty(exports, "OddMarketType", { enumerable: true, get: function () { return typeorm_entities_2.OddMarketType; } });
|
|
26
|
+
Object.defineProperty(exports, "TResultSignal", { enumerable: true, get: function () { return typeorm_entities_2.TResultSignal; } });
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAkBA,uDAS2B;AARzB,sHAAA,kBAAkB,OAAA;AAClB,iHAAA,aAAa,OAAA;AACb,oHAAA,gBAAgB,OAAA;AAChB,iHAAA,aAAa,OAAA;AACb,uHAAA,mBAAmB,OAAA;AACnB,gIAAA,4BAA4B,OAAA;AAC5B,kIAAA,8BAA8B,OAAA;AAC9B,mHAAA,eAAe,OAAA;AAGjB,uDAc2B;AAbzB,6GAAA,SAAS,OAAA;AACT,qHAAA,iBAAiB,OAAA;AACjB,sHAAA,kBAAkB,OAAA;AAClB,qHAAA,iBAAiB,OAAA;AACjB,+GAAA,WAAW,OAAA;AACX,6GAAA,SAAS,OAAA;AACT,wHAAA,oBAAoB,OAAA;AACpB,2HAAA,uBAAuB,OAAA;AACvB,kIAAA,8BAA8B,OAAA;AAC9B,yHAAA,qBAAqB,OAAA;AACrB,uHAAA,mBAAmB,OAAA;AACnB,iHAAA,aAAa,OAAA;AACb,iHAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AlgorithmAdditionalFilters, AlgorithmCondition, AlgorithmResultOptions } from './types/algorithm.types';
|
|
2
|
+
import { TelegramReportSignalsOrmEntity } from '../telegram-report/telegram-report-signals.orm-entity';
|
|
3
|
+
export declare class AlgorithmOrmEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
code: string;
|
|
7
|
+
conditions: AlgorithmCondition[];
|
|
8
|
+
resultOptions: AlgorithmResultOptions;
|
|
9
|
+
chatIds: string[];
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
syncGoogle: boolean;
|
|
12
|
+
additionalFilters: AlgorithmAdditionalFilters | null;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
report: TelegramReportSignalsOrmEntity;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=algorithm.orm-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algorithm.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/algorithm/algorithm.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChH,OAAO,EAAE,8BAA8B,EAAE,MAAM,uDAAuD,CAAA;AAEtG,qBACa,kBAAkB;IAE7B,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,IAAI,EAAE,MAAM,CAAA;IAGZ,UAAU,EAAE,kBAAkB,EAAE,CAAA;IAGhC,aAAa,EAAE,sBAAsB,CAAA;IAOrC,OAAO,EAAE,MAAM,EAAE,CAAA;IAGjB,QAAQ,EAAE,OAAO,CAAA;IAGjB,UAAU,EAAE,OAAO,CAAA;IAGnB,iBAAiB,EAAE,0BAA0B,GAAG,IAAI,CAAA;IAGpD,SAAS,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;IAIjB,MAAM,EAAE,8BAA8B,CAAA;CACvC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.AlgorithmOrmEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const telegram_report_signals_orm_entity_1 = require("../telegram-report/telegram-report-signals.orm-entity");
|
|
15
|
+
let AlgorithmOrmEntity = class AlgorithmOrmEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.AlgorithmOrmEntity = AlgorithmOrmEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AlgorithmOrmEntity.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], AlgorithmOrmEntity.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AlgorithmOrmEntity.prototype, "code", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'jsonb', default: '[]' }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], AlgorithmOrmEntity.prototype, "conditions", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'result_options', type: 'jsonb', default: '{}' }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], AlgorithmOrmEntity.prototype, "resultOptions", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({
|
|
40
|
+
name: 'chat_ids',
|
|
41
|
+
type: 'jsonb',
|
|
42
|
+
default: '[]',
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", Array)
|
|
45
|
+
], AlgorithmOrmEntity.prototype, "chatIds", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'is_active' }),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], AlgorithmOrmEntity.prototype, "isActive", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'sync_google', default: false }),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], AlgorithmOrmEntity.prototype, "syncGoogle", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'additional_filters', type: 'jsonb', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], AlgorithmOrmEntity.prototype, "additionalFilters", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'created_at', type: 'timestamp with time zone' }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AlgorithmOrmEntity.prototype, "createdAt", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'updated_at', type: 'timestamp with time zone' }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AlgorithmOrmEntity.prototype, "updatedAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.OneToOne)(() => telegram_report_signals_orm_entity_1.TelegramReportSignalsOrmEntity, { createForeignKeyConstraints: false }),
|
|
68
|
+
(0, typeorm_1.JoinColumn)({ name: 'id', referencedColumnName: 'algorithmId' }),
|
|
69
|
+
__metadata("design:type", telegram_report_signals_orm_entity_1.TelegramReportSignalsOrmEntity)
|
|
70
|
+
], AlgorithmOrmEntity.prototype, "report", void 0);
|
|
71
|
+
exports.AlgorithmOrmEntity = AlgorithmOrmEntity = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)('algorithms')
|
|
73
|
+
], AlgorithmOrmEntity);
|
|
74
|
+
//# sourceMappingURL=algorithm.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algorithm.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/algorithm/algorithm.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AAEtF,8GAAsG;AAG/F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAyC9B,CAAA;AAzCY,gDAAkB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACrB;AAGV;IADC,IAAA,gBAAM,GAAE;;gDACG;AAGZ;IADC,IAAA,gBAAM,GAAE;;gDACG;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sDACT;AAGhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;yDAC5B;AAOrC;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd,CAAC;;mDACe;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;oDACb;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDAC7B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DAClB;AAGpD;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;;qDAChD;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;;qDAChD;AAIjB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,mEAA8B,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IACtF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,aAAa,EAAE,CAAC;8BACxD,mEAA8B;kDAAA;6BAxC3B,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,YAAY,CAAC;GACR,kBAAkB,CAyC9B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AlgorithmOrmEntity } from './algorithm.orm-entity';
|
|
2
|
+
export { AlgorithmAdditionalFilters, AlgorithmResultOptions, AlgorithmCondition, AlgorithmRightI, AlgorithmLeftI, AlgorithmOddsConditionItem, } from './types/algorithm.types';
|
|
3
|
+
export { AlgorithmOddsMarketType, AlgorithmOddsTimeType, AlgorithmTimerPeriod, AlgorithmTeamType, AlgorithmStatType, AlgorithmAdditionalFiltersMode, AlgorithmComparator, } from './types/algorithm.types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/algorithm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlgorithmComparator = exports.AlgorithmAdditionalFiltersMode = exports.AlgorithmStatType = exports.AlgorithmTeamType = exports.AlgorithmTimerPeriod = exports.AlgorithmOddsTimeType = exports.AlgorithmOddsMarketType = exports.AlgorithmOrmEntity = void 0;
|
|
4
|
+
var algorithm_orm_entity_1 = require("./algorithm.orm-entity");
|
|
5
|
+
Object.defineProperty(exports, "AlgorithmOrmEntity", { enumerable: true, get: function () { return algorithm_orm_entity_1.AlgorithmOrmEntity; } });
|
|
6
|
+
var algorithm_types_1 = require("./types/algorithm.types");
|
|
7
|
+
Object.defineProperty(exports, "AlgorithmOddsMarketType", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmOddsMarketType; } });
|
|
8
|
+
Object.defineProperty(exports, "AlgorithmOddsTimeType", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmOddsTimeType; } });
|
|
9
|
+
Object.defineProperty(exports, "AlgorithmTimerPeriod", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmTimerPeriod; } });
|
|
10
|
+
Object.defineProperty(exports, "AlgorithmTeamType", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmTeamType; } });
|
|
11
|
+
Object.defineProperty(exports, "AlgorithmStatType", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmStatType; } });
|
|
12
|
+
Object.defineProperty(exports, "AlgorithmAdditionalFiltersMode", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmAdditionalFiltersMode; } });
|
|
13
|
+
Object.defineProperty(exports, "AlgorithmComparator", { enumerable: true, get: function () { return algorithm_types_1.AlgorithmComparator; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/algorithm/index.ts"],"names":[],"mappings":";;;AAAA,+DAA2D;AAAlD,0HAAA,kBAAkB,OAAA;AAU3B,2DAQgC;AAP9B,0HAAA,uBAAuB,OAAA;AACvB,wHAAA,qBAAqB,OAAA;AACrB,uHAAA,oBAAoB,OAAA;AACpB,oHAAA,iBAAiB,OAAA;AACjB,oHAAA,iBAAiB,OAAA;AACjB,iIAAA,8BAA8B,OAAA;AAC9B,sHAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare enum AlgorithmOddsMarketType {
|
|
2
|
+
TotalOver = "totalOver",
|
|
3
|
+
TotalUnder = "totalUnder",
|
|
4
|
+
Win1 = "p1",
|
|
5
|
+
Win2 = "p2",
|
|
6
|
+
Draw = "x"
|
|
7
|
+
}
|
|
8
|
+
export declare enum AlgorithmOddsTimeType {
|
|
9
|
+
Live = "live",
|
|
10
|
+
Pre = "pre"
|
|
11
|
+
}
|
|
12
|
+
export interface AlgorithmOddsConditionItem {
|
|
13
|
+
marketType: AlgorithmOddsMarketType;
|
|
14
|
+
timeType: AlgorithmOddsTimeType;
|
|
15
|
+
marketValue?: string;
|
|
16
|
+
offsetValue?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare enum AlgorithmStatType {
|
|
19
|
+
Part = "part",
|
|
20
|
+
Timer = "timer",
|
|
21
|
+
TimeLastGoal = "timeLastGoal",
|
|
22
|
+
Total = "total",
|
|
23
|
+
ShotsOn = "shotsOn",
|
|
24
|
+
ShotsMiss = "shotsMiss",
|
|
25
|
+
Shots = "shots",
|
|
26
|
+
Corners = "corners",
|
|
27
|
+
RedCards = "redCards",
|
|
28
|
+
YellowCards = "yellowCards",
|
|
29
|
+
Attacks = "attacks",
|
|
30
|
+
DangerousAttacks = "dangerousAttacks",
|
|
31
|
+
Possession = "possession",
|
|
32
|
+
GoalAttempts = "goalAttempts"
|
|
33
|
+
}
|
|
34
|
+
export declare enum AlgorithmTimerPeriod {
|
|
35
|
+
HT = "HT",
|
|
36
|
+
ST = "ST",
|
|
37
|
+
FT = "FT"
|
|
38
|
+
}
|
|
39
|
+
export declare enum AlgorithmTeamType {
|
|
40
|
+
Home = "home",
|
|
41
|
+
Away = "away",
|
|
42
|
+
Sum = "sum",
|
|
43
|
+
Ea = "ea",
|
|
44
|
+
Df = "df"
|
|
45
|
+
}
|
|
46
|
+
export declare enum AlgorithmComparator {
|
|
47
|
+
NotEqual = "!=",
|
|
48
|
+
Equal = "=",
|
|
49
|
+
GreaterThan = ">",
|
|
50
|
+
LessThan = "<",
|
|
51
|
+
GreaterThanOrEqual = ">=",
|
|
52
|
+
LessThanOrEqual = "<="
|
|
53
|
+
}
|
|
54
|
+
export interface AlgorithmCondition {
|
|
55
|
+
comparator: AlgorithmComparator;
|
|
56
|
+
left: AlgorithmLeftI;
|
|
57
|
+
right: AlgorithmRightI;
|
|
58
|
+
}
|
|
59
|
+
export interface AlgorithmLeftI {
|
|
60
|
+
team?: AlgorithmTeamType;
|
|
61
|
+
timerRangeFrom?: number;
|
|
62
|
+
timerRangeTo?: number;
|
|
63
|
+
timerPeriod?: AlgorithmTimerPeriod;
|
|
64
|
+
statsReference?: AlgorithmStatType;
|
|
65
|
+
oddsReference?: AlgorithmOddsConditionItem;
|
|
66
|
+
}
|
|
67
|
+
export interface AlgorithmRightI {
|
|
68
|
+
constant: number;
|
|
69
|
+
}
|
|
70
|
+
export interface AlgorithmResultOptions {
|
|
71
|
+
betType: AlgorithmOddsMarketType;
|
|
72
|
+
timerPeriod: AlgorithmTimerPeriod;
|
|
73
|
+
offsetTotalValue: number;
|
|
74
|
+
}
|
|
75
|
+
export type AlgorithmAdditionalFilters = {
|
|
76
|
+
mode: AlgorithmAdditionalFiltersMode;
|
|
77
|
+
countries: string[];
|
|
78
|
+
leagues: string[];
|
|
79
|
+
withoutWoman?: boolean;
|
|
80
|
+
withoutCup?: boolean;
|
|
81
|
+
withoutFriendly?: boolean;
|
|
82
|
+
};
|
|
83
|
+
export declare enum AlgorithmAdditionalFiltersMode {
|
|
84
|
+
Exclude = "exclude",
|
|
85
|
+
Include = "include"
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=algorithm.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algorithm.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/algorithm/types/algorithm.types.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IACjC,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,IAAI,OAAO;IACX,IAAI,OAAO;IACX,IAAI,MAAM;CACX;AAED,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,uBAAuB,CAAA;IACnC,QAAQ,EAAE,qBAAqB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAED,oBAAY,oBAAoB;IAC9B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IAIX,EAAE,OAAO;IAIT,EAAE,OAAO;CACV;AAED,oBAAY,mBAAmB;IAC7B,QAAQ,OAAO;IACf,KAAK,MAAM;IACX,WAAW,MAAM;IACjB,QAAQ,MAAM;IACd,kBAAkB,OAAO;IACzB,eAAe,OAAO;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,mBAAmB,CAAA;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,cAAc,CAAC,EAAE,iBAAiB,CAAA;IAClC,aAAa,CAAC,EAAE,0BAA0B,CAAA;CAC3C;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,uBAAuB,CAAA;IAChC,WAAW,EAAE,oBAAoB,CAAA;IACjC,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAA;IACpC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,oBAAY,8BAA8B;IACxC,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AlgorithmAdditionalFiltersMode = exports.AlgorithmComparator = exports.AlgorithmTeamType = exports.AlgorithmTimerPeriod = exports.AlgorithmStatType = exports.AlgorithmOddsTimeType = exports.AlgorithmOddsMarketType = void 0;
|
|
4
|
+
var AlgorithmOddsMarketType;
|
|
5
|
+
(function (AlgorithmOddsMarketType) {
|
|
6
|
+
AlgorithmOddsMarketType["TotalOver"] = "totalOver";
|
|
7
|
+
AlgorithmOddsMarketType["TotalUnder"] = "totalUnder";
|
|
8
|
+
AlgorithmOddsMarketType["Win1"] = "p1";
|
|
9
|
+
AlgorithmOddsMarketType["Win2"] = "p2";
|
|
10
|
+
AlgorithmOddsMarketType["Draw"] = "x";
|
|
11
|
+
})(AlgorithmOddsMarketType || (exports.AlgorithmOddsMarketType = AlgorithmOddsMarketType = {}));
|
|
12
|
+
var AlgorithmOddsTimeType;
|
|
13
|
+
(function (AlgorithmOddsTimeType) {
|
|
14
|
+
AlgorithmOddsTimeType["Live"] = "live";
|
|
15
|
+
AlgorithmOddsTimeType["Pre"] = "pre";
|
|
16
|
+
})(AlgorithmOddsTimeType || (exports.AlgorithmOddsTimeType = AlgorithmOddsTimeType = {}));
|
|
17
|
+
var AlgorithmStatType;
|
|
18
|
+
(function (AlgorithmStatType) {
|
|
19
|
+
AlgorithmStatType["Part"] = "part";
|
|
20
|
+
AlgorithmStatType["Timer"] = "timer";
|
|
21
|
+
AlgorithmStatType["TimeLastGoal"] = "timeLastGoal";
|
|
22
|
+
AlgorithmStatType["Total"] = "total";
|
|
23
|
+
AlgorithmStatType["ShotsOn"] = "shotsOn";
|
|
24
|
+
AlgorithmStatType["ShotsMiss"] = "shotsMiss";
|
|
25
|
+
AlgorithmStatType["Shots"] = "shots";
|
|
26
|
+
AlgorithmStatType["Corners"] = "corners";
|
|
27
|
+
AlgorithmStatType["RedCards"] = "redCards";
|
|
28
|
+
AlgorithmStatType["YellowCards"] = "yellowCards";
|
|
29
|
+
AlgorithmStatType["Attacks"] = "attacks";
|
|
30
|
+
AlgorithmStatType["DangerousAttacks"] = "dangerousAttacks";
|
|
31
|
+
AlgorithmStatType["Possession"] = "possession";
|
|
32
|
+
AlgorithmStatType["GoalAttempts"] = "goalAttempts";
|
|
33
|
+
})(AlgorithmStatType || (exports.AlgorithmStatType = AlgorithmStatType = {}));
|
|
34
|
+
var AlgorithmTimerPeriod;
|
|
35
|
+
(function (AlgorithmTimerPeriod) {
|
|
36
|
+
AlgorithmTimerPeriod["HT"] = "HT";
|
|
37
|
+
AlgorithmTimerPeriod["ST"] = "ST";
|
|
38
|
+
AlgorithmTimerPeriod["FT"] = "FT";
|
|
39
|
+
})(AlgorithmTimerPeriod || (exports.AlgorithmTimerPeriod = AlgorithmTimerPeriod = {}));
|
|
40
|
+
var AlgorithmTeamType;
|
|
41
|
+
(function (AlgorithmTeamType) {
|
|
42
|
+
AlgorithmTeamType["Home"] = "home";
|
|
43
|
+
AlgorithmTeamType["Away"] = "away";
|
|
44
|
+
AlgorithmTeamType["Sum"] = "sum";
|
|
45
|
+
AlgorithmTeamType["Ea"] = "ea";
|
|
46
|
+
AlgorithmTeamType["Df"] = "df";
|
|
47
|
+
})(AlgorithmTeamType || (exports.AlgorithmTeamType = AlgorithmTeamType = {}));
|
|
48
|
+
var AlgorithmComparator;
|
|
49
|
+
(function (AlgorithmComparator) {
|
|
50
|
+
AlgorithmComparator["NotEqual"] = "!=";
|
|
51
|
+
AlgorithmComparator["Equal"] = "=";
|
|
52
|
+
AlgorithmComparator["GreaterThan"] = ">";
|
|
53
|
+
AlgorithmComparator["LessThan"] = "<";
|
|
54
|
+
AlgorithmComparator["GreaterThanOrEqual"] = ">=";
|
|
55
|
+
AlgorithmComparator["LessThanOrEqual"] = "<=";
|
|
56
|
+
})(AlgorithmComparator || (exports.AlgorithmComparator = AlgorithmComparator = {}));
|
|
57
|
+
var AlgorithmAdditionalFiltersMode;
|
|
58
|
+
(function (AlgorithmAdditionalFiltersMode) {
|
|
59
|
+
AlgorithmAdditionalFiltersMode["Exclude"] = "exclude";
|
|
60
|
+
AlgorithmAdditionalFiltersMode["Include"] = "include";
|
|
61
|
+
})(AlgorithmAdditionalFiltersMode || (exports.AlgorithmAdditionalFiltersMode = AlgorithmAdditionalFiltersMode = {}));
|
|
62
|
+
//# sourceMappingURL=algorithm.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algorithm.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/algorithm/types/algorithm.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;IACzB,sCAAW,CAAA;IACX,sCAAW,CAAA;IACX,qCAAU,CAAA;AACZ,CAAC,EANW,uBAAuB,uCAAvB,uBAAuB,QAMlC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,oCAAW,CAAA;AACb,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AASD,IAAY,iBAeX;AAfD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,kDAA6B,CAAA;IAC7B,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,wCAAmB,CAAA;IACnB,0DAAqC,CAAA;IACrC,8CAAyB,CAAA;IACzB,kDAA6B,CAAA;AAC/B,CAAC,EAfW,iBAAiB,iCAAjB,iBAAiB,QAe5B;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iCAAS,CAAA;IACT,iCAAS,CAAA;IACT,iCAAS,CAAA;AACX,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,gCAAW,CAAA;IAIX,8BAAS,CAAA;IAIT,8BAAS,CAAA;AACX,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAED,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,wCAAiB,CAAA;IACjB,qCAAc,CAAA;IACd,gDAAyB,CAAA;IACzB,6CAAsB,CAAA;AACxB,CAAC,EAPW,mBAAmB,mCAAnB,mBAAmB,QAO9B;AAoCD,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,qDAAmB,CAAA;IACnB,qDAAmB,CAAA;AACrB,CAAC,EAHW,8BAA8B,8CAA9B,8BAA8B,QAGzC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StatisticsOrmEntity } from '../statistics';
|
|
2
|
+
import { OddsOrmEntity } from '../odds';
|
|
3
|
+
export declare class GameOrmEntity {
|
|
4
|
+
id: string;
|
|
5
|
+
externalId: number;
|
|
6
|
+
startDate: string;
|
|
7
|
+
player1: string;
|
|
8
|
+
playerExternalId1: number;
|
|
9
|
+
player2: string;
|
|
10
|
+
playerExternalId2: number;
|
|
11
|
+
leagueName: string;
|
|
12
|
+
leagueExternalId: number;
|
|
13
|
+
countryExternalId: number;
|
|
14
|
+
countryName: string;
|
|
15
|
+
isFinish: boolean;
|
|
16
|
+
statistics?: StatisticsOrmEntity | null;
|
|
17
|
+
odds?: OddsOrmEntity[] | null;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=game.orm-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/game/game.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,qBACa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAA;IAGV,UAAU,EAAE,MAAM,CAAA;IAGlB,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,EAAE,MAAM,CAAA;IAGf,iBAAiB,EAAE,MAAM,CAAA;IAGzB,OAAO,EAAE,MAAM,CAAA;IAGf,iBAAiB,EAAE,MAAM,CAAA;IAGzB,UAAU,EAAE,MAAM,CAAA;IAGlB,gBAAgB,EAAE,MAAM,CAAA;IAGxB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,WAAW,EAAE,MAAM,CAAA;IAGnB,QAAQ,EAAE,OAAO,CAAA;IAIjB,UAAU,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAGvC,IAAI,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;CAC9B"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.GameOrmEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const statistics_1 = require("../statistics");
|
|
15
|
+
const odds_1 = require("../odds");
|
|
16
|
+
let GameOrmEntity = class GameOrmEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.GameOrmEntity = GameOrmEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GameOrmEntity.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ name: 'external_id' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], GameOrmEntity.prototype, "externalId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'start_date' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GameOrmEntity.prototype, "startDate", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'player_name_1' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], GameOrmEntity.prototype, "player1", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'player_external_id_1' }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], GameOrmEntity.prototype, "playerExternalId1", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'player_name_2' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], GameOrmEntity.prototype, "player2", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'player_external_id_2' }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], GameOrmEntity.prototype, "playerExternalId2", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ name: 'league_name' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], GameOrmEntity.prototype, "leagueName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ name: 'external_league_id' }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], GameOrmEntity.prototype, "leagueExternalId", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ name: 'country_external_id' }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], GameOrmEntity.prototype, "countryExternalId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ name: 'country_name' }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GameOrmEntity.prototype, "countryName", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'is_finish' }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], GameOrmEntity.prototype, "isFinish", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.OneToOne)(() => statistics_1.StatisticsOrmEntity, { createForeignKeyConstraints: false }),
|
|
69
|
+
(0, typeorm_1.JoinColumn)({ name: 'id', referencedColumnName: 'gameId' }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], GameOrmEntity.prototype, "statistics", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.OneToMany)(() => odds_1.OddsOrmEntity, odd => odd.game),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], GameOrmEntity.prototype, "odds", void 0);
|
|
76
|
+
exports.GameOrmEntity = GameOrmEntity = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)({ name: 'games' })
|
|
78
|
+
], GameOrmEntity);
|
|
79
|
+
//# sourceMappingURL=game.orm-entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/game/game.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiG;AACjG,8CAAmD;AACnD,kCAAuC;AAGhC,IAAM,aAAa,GAAnB,MAAM,aAAa;CA2CzB,CAAA;AA3CY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;iDACd;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;gDACd;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;8CACnB;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;;wDAChB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;8CACnB;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;;wDAChB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;iDACd;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;;uDACf;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;wDACf;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;kDACd;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;+CACb;AAIjB;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gCAAmB,EAAE,EAAE,2BAA2B,EAAE,KAAK,EAAE,CAAC;IAC3E,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;;iDACpB;AAGvC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAa,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;;2CACnB;wBA1ClB,aAAa;IADzB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;GACb,aAAa,CA2CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/game/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameState = exports.GameOrmEntity = void 0;
|
|
4
|
+
var game_orm_entity_1 = require("./game.orm-entity");
|
|
5
|
+
Object.defineProperty(exports, "GameOrmEntity", { enumerable: true, get: function () { return game_orm_entity_1.GameOrmEntity; } });
|
|
6
|
+
var game_types_1 = require("./types/game.types");
|
|
7
|
+
Object.defineProperty(exports, "GameState", { enumerable: true, get: function () { return game_types_1.GameState; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/game/index.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AACtB,iDAA8C;AAArC,uGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/game/types/game.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,UAAU,IAAI;IAId,KAAK,IAAI;IAIT,QAAQ,IAAI;IAIZ,KAAK,IAAI;IACT,QAAQ,IAAI;CACb"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameState = void 0;
|
|
4
|
+
var GameState;
|
|
5
|
+
(function (GameState) {
|
|
6
|
+
GameState[GameState["NotStarted"] = 0] = "NotStarted";
|
|
7
|
+
GameState[GameState["Part1"] = 1] = "Part1";
|
|
8
|
+
GameState[GameState["HalfTime"] = 5] = "HalfTime";
|
|
9
|
+
GameState[GameState["Part2"] = 2] = "Part2";
|
|
10
|
+
GameState[GameState["Finished"] = 3] = "Finished";
|
|
11
|
+
})(GameState || (exports.GameState = GameState = {}));
|
|
12
|
+
//# sourceMappingURL=game.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.types.js","sourceRoot":"","sources":["../../../../src/typeorm-entities/game/types/game.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,qDAAc,CAAA;IAId,2CAAS,CAAA;IAIT,iDAAY,CAAA;IAIZ,2CAAS,CAAA;IACT,iDAAY,CAAA;AACd,CAAC,EAfW,SAAS,yBAAT,SAAS,QAepB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './algorithm';
|
|
2
|
+
export * from './telegram-report';
|
|
3
|
+
export * from './game';
|
|
4
|
+
export * from './statistics';
|
|
5
|
+
export * from './odds';
|
|
6
|
+
export * from './message';
|
|
7
|
+
export * from './odds';
|
|
8
|
+
export * from './signal';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./algorithm"), exports);
|
|
18
|
+
__exportStar(require("./telegram-report"), exports);
|
|
19
|
+
__exportStar(require("./game"), exports);
|
|
20
|
+
__exportStar(require("./statistics"), exports);
|
|
21
|
+
__exportStar(require("./odds"), exports);
|
|
22
|
+
__exportStar(require("./message"), exports);
|
|
23
|
+
__exportStar(require("./odds"), exports);
|
|
24
|
+
__exportStar(require("./signal"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typeorm-entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,oDAAiC;AACjC,yCAAsB;AACtB,+CAA4B;AAC5B,yCAAsB;AACtB,4CAAyB;AACzB,yCAAsB;AACtB,2CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageOrmEntity = void 0;
|
|
4
|
+
var message_orm_entity_1 = require("./message.orm-entity");
|
|
5
|
+
Object.defineProperty(exports, "MessageOrmEntity", { enumerable: true, get: function () { return message_orm_entity_1.MessageOrmEntity; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/typeorm-entities/message/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AAA9C,sHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SignalOrmEntity } from '../signal';
|
|
2
|
+
export declare class MessageOrmEntity {
|
|
3
|
+
id: string;
|
|
4
|
+
signalId: string;
|
|
5
|
+
externalMessageId: number;
|
|
6
|
+
externalChannelId: string;
|
|
7
|
+
fixedText: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
signal?: SignalOrmEntity;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=message.orm-entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/message/message.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,qBACa,gBAAgB;IAE3B,EAAE,EAAE,MAAM,CAAA;IAGV,QAAQ,EAAE,MAAM,CAAA;IAGhB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,iBAAiB,EAAE,MAAM,CAAA;IAGzB,SAAS,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;IAIjB,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB"}
|