@bets-pf/shared-typeorm-models 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.d.ts.map +1 -0
  2. package/dist/typeorm-entities/algorithm/algorithm.orm-entity.d.ts.map +1 -0
  3. package/dist/typeorm-entities/algorithm/algorithm.orm-entity.js +78 -0
  4. package/dist/typeorm-entities/algorithm/algorithm.orm-entity.js.map +1 -0
  5. package/dist/typeorm-entities/algorithm/index.d.ts.map +1 -0
  6. package/dist/typeorm-entities/algorithm/index.js +14 -0
  7. package/dist/typeorm-entities/algorithm/index.js.map +1 -0
  8. package/dist/typeorm-entities/algorithm/types/algorithm.types.d.ts +87 -0
  9. package/dist/typeorm-entities/algorithm/types/algorithm.types.d.ts.map +1 -0
  10. package/dist/typeorm-entities/algorithm/types/algorithm.types.js +62 -0
  11. package/dist/typeorm-entities/algorithm/types/algorithm.types.js.map +1 -0
  12. package/dist/typeorm-entities/game/game.orm-entity.d.ts.map +1 -0
  13. package/dist/typeorm-entities/game/index.d.ts.map +1 -0
  14. package/dist/typeorm-entities/index.d.ts.map +1 -0
  15. package/dist/typeorm-entities/message/index.d.ts.map +1 -0
  16. package/dist/typeorm-entities/message/message.orm-entity.d.ts.map +1 -0
  17. package/dist/typeorm-entities/message/types/message-vars.types.d.ts.map +1 -0
  18. package/dist/typeorm-entities/odds/index.d.ts.map +1 -0
  19. package/dist/typeorm-entities/signal/index.d.ts.map +1 -0
  20. package/dist/typeorm-entities/statistics/index.d.ts.map +1 -0
  21. package/dist/typeorm-entities/statistics/statistics-algorithm.orm-entity.d.ts.map +1 -0
  22. package/dist/typeorm-entities/statistics/types/statistics-algorithm.types.d.ts.map +1 -0
  23. package/dist/typeorm-entities/telegram-report/index.d.ts.map +1 -0
  24. package/dist/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.d.ts.map +1 -0
  25. package/package.json +1 -1
  26. package/dist/typeorm-entities/odds/odds.orm-entity.js +0 -61
  27. package/dist/typeorm-entities/odds/odds.orm-entity.js.map +0 -1
  28. package/dist/typeorm-entities/signal/signal.orm-entity.js +0 -99
  29. package/dist/typeorm-entities/signal/signal.orm-entity.js.map +0 -1
  30. package/dist/typeorm-entities/statistics/statistics-snapshot.orm-entity.js +0 -45
  31. package/dist/typeorm-entities/statistics/statistics-snapshot.orm-entity.js.map +0 -1
  32. package/dist/typeorm-entities/statistics/statistics.orm-entity.js +0 -51
  33. package/dist/typeorm-entities/statistics/statistics.orm-entity.js.map +0 -1
@@ -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,EACf,aAAa,EACb,2BAA2B,GAC5B,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,EACb,SAAS,EACT,QAAQ,GACT,MAAM,oBAAoB,CAAA"}
@@ -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,oBAAoB,CAAA;AAEnE,qBACa,kBAAkB;IAE7B,EAAE,EAAE,MAAM,CAAA;IAGV,IAAI,EAAE,MAAM,CAAA;IAGZ,IAAI,EAAE,MAAM,CAAA;IAGZ,OAAO,EAAE,MAAM,CAAA;IAGf,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,CAAC,EAAE,8BAA8B,CAAA;CACxC"}
@@ -0,0 +1,78 @@
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_1 = require("../telegram-report");
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: 'uuid', name: 'owner_id' }),
32
+ __metadata("design:type", String)
33
+ ], AlgorithmOrmEntity.prototype, "ownerId", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.Column)({ type: 'jsonb', default: '[]' }),
36
+ __metadata("design:type", Array)
37
+ ], AlgorithmOrmEntity.prototype, "conditions", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.Column)({ name: 'result_options', type: 'jsonb', default: '{}' }),
40
+ __metadata("design:type", Object)
41
+ ], AlgorithmOrmEntity.prototype, "resultOptions", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({
44
+ name: 'chat_ids',
45
+ type: 'jsonb',
46
+ default: '[]',
47
+ }),
48
+ __metadata("design:type", Array)
49
+ ], AlgorithmOrmEntity.prototype, "chatIds", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)({ name: 'is_active' }),
52
+ __metadata("design:type", Boolean)
53
+ ], AlgorithmOrmEntity.prototype, "isActive", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.Column)({ name: 'sync_google', default: false }),
56
+ __metadata("design:type", Boolean)
57
+ ], AlgorithmOrmEntity.prototype, "syncGoogle", void 0);
58
+ __decorate([
59
+ (0, typeorm_1.Column)({ name: 'additional_filters', type: 'jsonb', nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], AlgorithmOrmEntity.prototype, "additionalFilters", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)({ name: 'created_at', type: 'timestamp with time zone' }),
64
+ __metadata("design:type", String)
65
+ ], AlgorithmOrmEntity.prototype, "createdAt", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ name: 'updated_at', type: 'timestamp with time zone' }),
68
+ __metadata("design:type", String)
69
+ ], AlgorithmOrmEntity.prototype, "updatedAt", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.OneToOne)(() => telegram_report_1.TelegramReportSignalsOrmEntity, { createForeignKeyConstraints: false }),
72
+ (0, typeorm_1.JoinColumn)({ name: 'id', referencedColumnName: 'algorithmId' }),
73
+ __metadata("design:type", telegram_report_1.TelegramReportSignalsOrmEntity)
74
+ ], AlgorithmOrmEntity.prototype, "report", void 0);
75
+ exports.AlgorithmOrmEntity = AlgorithmOrmEntity = __decorate([
76
+ (0, typeorm_1.Entity)('algorithms')
77
+ ], AlgorithmOrmEntity);
78
+ //# 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,wDAAmE;AAG5D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CA4C9B,CAAA;AA5CY,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,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;mDAC5B;AAGf;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,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AAuB,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
+ ShotsOff = "shotsOff",
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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A;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["ShotsOff"] = "shotsOff";
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,0CAAqB,CAAA;IACrB,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 @@
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 @@
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 @@
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;AACxB,cAAc,QAAQ,CAAA"}
@@ -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 @@
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"}
@@ -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":"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 @@
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 @@
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,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAC9E,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 @@
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 @@
1
+ {"version":3,"file":"statistics-algorithm.types.d.ts","sourceRoot":"","sources":["../../../../src/typeorm-entities/statistics/types/statistics-algorithm.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/telegram-report/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"telegram-report-signals.orm-entity.d.ts","sourceRoot":"","sources":["../../../src/typeorm-entities/telegram-report/telegram-report-signals.orm-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGjD,qBACa,8BAA8B;IAEzC,EAAE,EAAE,MAAM,CAAA;IAIV,WAAW,EAAE,MAAM,CAAA;IAGnB,WAAW,EAAE,MAAM,CAAA;IAInB,SAAS,CAAC,EAAE,kBAAkB,CAAA;CAC/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bets-pf/shared-typeorm-models",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Shared TypeORM entities for BPF platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.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.Index)('odds_game_market_time_uq', ['gameId', 'marketType', 'timeType'], {
57
- unique: true,
58
- }),
59
- (0, typeorm_1.Entity)({ name: 'odds' })
60
- ], OddsOrmEntity);
61
- //# sourceMappingURL=odds.orm-ent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,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE;QACvE,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;GACZ,aAAa,CA4BzB"}
@@ -1,99 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SignalOrmEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const algorithm_1 = require("../algorithm");
15
- const game_1 = require("../game");
16
- const message_1 = require("../message");
17
- let SignalOrmEntity = class SignalOrmEntity {
18
- };
19
- exports.SignalOrmEntity = SignalOrmEntity;
20
- __decorate([
21
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
- __metadata("design:type", String)
23
- ], SignalOrmEntity.prototype, "id", void 0);
24
- __decorate([
25
- (0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
26
- __metadata("design:type", String)
27
- ], SignalOrmEntity.prototype, "gameId", void 0);
28
- __decorate([
29
- (0, typeorm_1.Column)({ name: 'algorithm_id', type: 'uuid' }),
30
- __metadata("design:type", String)
31
- ], SignalOrmEntity.prototype, "algorithmId", void 0);
32
- __decorate([
33
- (0, typeorm_1.Column)({ nullable: true, type: 'float' }),
34
- __metadata("design:type", Number)
35
- ], SignalOrmEntity.prototype, "koef", void 0);
36
- __decorate([
37
- (0, typeorm_1.Column)({ name: 'max_koef', nullable: true, type: 'float' }),
38
- __metadata("design:type", Number)
39
- ], SignalOrmEntity.prototype, "maxKoef", void 0);
40
- __decorate([
41
- (0, typeorm_1.Column)({ name: 'game_time' }),
42
- __metadata("design:type", Number)
43
- ], SignalOrmEntity.prototype, "gameTime", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ name: 'number_signal' }),
46
- __metadata("design:type", Number)
47
- ], SignalOrmEntity.prototype, "numberSignal", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ nullable: true, type: 'jsonb' }),
50
- __metadata("design:type", Object)
51
- ], SignalOrmEntity.prototype, "result", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ name: 'bet_title' }),
54
- __metadata("design:type", String)
55
- ], SignalOrmEntity.prototype, "betTitle", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ name: 'game_stats', type: 'jsonb' }),
58
- __metadata("design:type", Object)
59
- ], SignalOrmEntity.prototype, "gameStats", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ name: 'is_finished' }),
62
- __metadata("design:type", Boolean)
63
- ], SignalOrmEntity.prototype, "isFinished", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ name: 'created_at' }),
66
- __metadata("design:type", String)
67
- ], SignalOrmEntity.prototype, "createdAt", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ name: 'updated_at' }),
70
- __metadata("design:type", String)
71
- ], SignalOrmEntity.prototype, "updatedAt", void 0);
72
- __decorate([
73
- (0, typeorm_1.ManyToOne)(() => algorithm_1.AlgorithmOrmEntity, { createForeignKeyConstraints: false }),
74
- (0, typeorm_1.JoinColumn)({
75
- name: 'algorithm_id',
76
- referencedColumnName: 'id',
77
- }),
78
- __metadata("design:type", algorithm_1.AlgorithmOrmEntity)
79
- ], SignalOrmEntity.prototype, "algorithm", void 0);
80
- __decorate([
81
- (0, typeorm_1.ManyToOne)(() => game_1.GameOrmEntity, { createForeignKeyConstraints: false }),
82
- (0, typeorm_1.JoinColumn)({
83
- name: 'game_id',
84
- referencedColumnName: 'id',
85
- }),
86
- __metadata("design:type", game_1.GameOrmEntity)
87
- ], SignalOrmEntity.prototype, "game", void 0);
88
- __decorate([
89
- (0, typeorm_1.OneToMany)(() => message_1.MessageOrmEntity, message => message.signal),
90
- __metadata("design:type", Array)
91
- ], SignalOrmEntity.prototype, "messages", void 0);
92
- exports.SignalOrmEntity = SignalOrmEntity = __decorate([
93
- (0, typeorm_1.Index)('signals_game_algorithm_uq', ['gameId', 'algorithmId'], {
94
- unique: true,
95
- }),
96
- (0, typeorm_1.Index)('signals_algorithm_id_idx', ['algorithmId']),
97
- (0, typeorm_1.Entity)('signals')
98
- ], SignalOrmEntity);
99
- //# sourceMappingURL=signal.orm-entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signal.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/signal/signal.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyG;AAEzG,4CAAiD;AACjD,kCAAuC;AAEvC,wCAA6C;AAOtC,IAAM,eAAe,GAArB,MAAM,eAAe;CAwD3B,CAAA;AAxDY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CAC5B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAC5B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;6CAC7B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE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A,eAAK,EAAC,2BAA2B,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,EAAE;QAC7D,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,eAAK,EAAC,0BAA0B,EAAE,CAAC,aAAa,CAAC,CAAC;IAClD,IAAA,gBAAM,EAAC,SAAS,CAAC;GACL,eAAe,CAwD3B"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.StatisticsSnapshotOrmEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const statistics_orm_entity_1 = require("./statistics.orm-entity");
15
- let StatisticsSnapshotOrmEntity = class StatisticsSnapshotOrmEntity {
16
- };
17
- exports.StatisticsSnapshotOrmEntity = StatisticsSnapshotOrmEntity;
18
- __decorate([
19
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
20
- __metadata("design:type", String)
21
- ], StatisticsSnapshotOrmEntity.prototype, "id", void 0);
22
- __decorate([
23
- (0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
24
- __metadata("design:type", String)
25
- ], StatisticsSnapshotOrmEntity.prototype, "gameId", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)(),
28
- __metadata("design:type", Number)
29
- ], StatisticsSnapshotOrmEntity.prototype, "time", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)({ type: 'jsonb' }),
32
- __metadata("design:type", Object)
33
- ], StatisticsSnapshotOrmEntity.prototype, "stats", void 0);
34
- __decorate([
35
- (0, typeorm_1.ManyToOne)(() => statistics_orm_entity_1.StatisticsOrmEntity, stats => stats.snapshots, { onDelete: 'CASCADE' }),
36
- (0, typeorm_1.JoinColumn)({ name: 'game_id', referencedColumnName: 'gameId' }),
37
- __metadata("design:type", statistics_orm_entity_1.StatisticsOrmEntity)
38
- ], StatisticsSnapshotOrmEntity.prototype, "statistics", void 0);
39
- exports.StatisticsSnapshotOrmEntity = StatisticsSnapshotOrmEntity = __decorate([
40
- (0, typeorm_1.Index)('statistics_snapshots_game_time_uq', ['gameId', 'time'], {
41
- unique: true,
42
- }),
43
- (0, typeorm_1.Entity)({ name: 'statistics-snapshots' })
44
- ], StatisticsSnapshotOrmEntity);
45
- //# sourceMappingURL=statistics-snapshot.orm-entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statistics-snapshot.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics-snapshot.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsG;AAEtG,mEAA6D;AAMtD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;CAgBvC,CAAA;AAhBY,kEAA2B;AAEtC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uDACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DAC5B;AAGd;IADC,IAAA,gBAAM,GAAE;;yDACG;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0DACX;AAIf;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACvF,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC;8BACnD,2CAAmB;+DAAA;sCAfrB,2BAA2B;IAJvC,IAAA,eAAK,EAAC,mCAAmC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE;QAC9D,MAAM,EAAE,IAAI;KACb,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;GAC5B,2BAA2B,CAgBvC"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.StatisticsOrmEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const game_1 = require("../game");
15
- const statistics_snapshot_orm_entity_1 = require("./statistics-snapshot.orm-entity");
16
- let StatisticsOrmEntity = class StatisticsOrmEntity {
17
- };
18
- exports.StatisticsOrmEntity = StatisticsOrmEntity;
19
- __decorate([
20
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
21
- __metadata("design:type", String)
22
- ], StatisticsOrmEntity.prototype, "id", void 0);
23
- __decorate([
24
- (0, typeorm_1.Column)({ name: 'game_id', type: 'uuid' }),
25
- __metadata("design:type", String)
26
- ], StatisticsOrmEntity.prototype, "gameId", void 0);
27
- __decorate([
28
- (0, typeorm_1.Column)(),
29
- __metadata("design:type", Number)
30
- ], StatisticsOrmEntity.prototype, "time", void 0);
31
- __decorate([
32
- (0, typeorm_1.Column)({ name: 'game_state' }),
33
- __metadata("design:type", Number)
34
- ], StatisticsOrmEntity.prototype, "gameState", void 0);
35
- __decorate([
36
- (0, typeorm_1.Column)({ type: 'jsonb' }),
37
- __metadata("design:type", Object)
38
- ], StatisticsOrmEntity.prototype, "stats", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)({ name: 'game_events', type: 'jsonb' }),
41
- __metadata("design:type", Array)
42
- ], StatisticsOrmEntity.prototype, "events", void 0);
43
- __decorate([
44
- (0, typeorm_1.OneToMany)(() => statistics_snapshot_orm_entity_1.StatisticsSnapshotOrmEntity, snapshot => snapshot.statistics),
45
- __metadata("design:type", Array)
46
- ], StatisticsOrmEntity.prototype, "snapshots", void 0);
47
- exports.StatisticsOrmEntity = StatisticsOrmEntity = __decorate([
48
- (0, typeorm_1.Index)('statistics_game_id_uq', ['gameId'], { unique: true }),
49
- (0, typeorm_1.Entity)({ name: 'statistics' })
50
- ], StatisticsOrmEntity);
51
- //# sourceMappingURL=statistics.orm-entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"statistics.orm-entity.js","sourceRoot":"","sources":["../../../src/typeorm-entities/statistics/statistics.orm-entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAGlF,kCAAmC;AACnC,qFAA8E;AAIvE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAqB/B,CAAA;AArBY,kDAAmB;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;+CACrB;AAGV;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDAC5B;AAGd;IADC,IAAA,gBAAM,GAAE;;iDACG;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;sDACX;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;kDACT;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;mDAC5B;AAGnB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4DAA2B,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;sDACrC;8BApB9B,mBAAmB;IAF/B,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;GAClB,mBAAmB,CAqB/B"}