@natrave/shared-entities 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-auth/index.d.ts +6 -0
- package/dist/app-auth/index.d.ts.map +1 -0
- package/dist/app-auth/index.js +6 -0
- package/dist/app-auth/index.js.map +1 -0
- package/dist/app-auth/password-resets/index.d.ts +2 -0
- package/dist/app-auth/password-resets/index.d.ts.map +1 -0
- package/dist/app-auth/password-resets/index.js +2 -0
- package/dist/app-auth/password-resets/index.js.map +1 -0
- package/dist/app-auth/password-resets/password-reset.entity.d.ts +11 -0
- package/dist/app-auth/password-resets/password-reset.entity.d.ts.map +1 -0
- package/dist/app-auth/password-resets/password-reset.entity.js +48 -0
- package/dist/app-auth/password-resets/password-reset.entity.js.map +1 -0
- package/dist/app-auth/refresh-tokens/index.d.ts +2 -0
- package/dist/app-auth/refresh-tokens/index.d.ts.map +1 -0
- package/dist/app-auth/refresh-tokens/index.js +2 -0
- package/dist/app-auth/refresh-tokens/index.js.map +1 -0
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts +11 -0
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +1 -0
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js +48 -0
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js.map +1 -0
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts +6 -0
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts.map +1 -0
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js +7 -0
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js.map +1 -0
- package/dist/app-auth/user-auth-providers/index.d.ts +3 -0
- package/dist/app-auth/user-auth-providers/index.d.ts.map +1 -0
- package/dist/app-auth/user-auth-providers/index.js +3 -0
- package/dist/app-auth/user-auth-providers/index.js.map +1 -0
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts +13 -0
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +1 -0
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +53 -0
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js.map +1 -0
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts +5 -0
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts.map +1 -0
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js +6 -0
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js.map +1 -0
- package/dist/app-auth/user-verifications/index.d.ts +3 -0
- package/dist/app-auth/user-verifications/index.d.ts.map +1 -0
- package/dist/app-auth/user-verifications/index.js +3 -0
- package/dist/app-auth/user-verifications/index.js.map +1 -0
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts +15 -0
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +1 -0
- package/dist/app-auth/user-verifications/user-verification.entity.js +60 -0
- package/dist/app-auth/user-verifications/user-verification.entity.js.map +1 -0
- package/dist/app-auth/users/index.d.ts +2 -0
- package/dist/app-auth/users/index.d.ts.map +1 -0
- package/dist/app-auth/users/index.js +2 -0
- package/dist/app-auth/users/index.js.map +1 -0
- package/dist/app-auth/users/user.entity.d.ts +29 -0
- package/dist/app-auth/users/user.entity.d.ts.map +1 -0
- package/dist/app-auth/users/user.entity.js +136 -0
- package/dist/app-auth/users/user.entity.js.map +1 -0
- package/dist/app-auth/users/utils/format-data.utils.d.ts +7 -0
- package/dist/app-auth/users/utils/format-data.utils.d.ts.map +1 -0
- package/dist/app-auth/users/utils/format-data.utils.js +19 -0
- package/dist/app-auth/users/utils/format-data.utils.js.map +1 -0
- package/dist/common/utils/decimal-transformer.utils.d.ts +5 -0
- package/dist/common/utils/decimal-transformer.utils.d.ts.map +1 -0
- package/dist/common/utils/decimal-transformer.utils.js +15 -0
- package/dist/common/utils/decimal-transformer.utils.js.map +1 -0
- package/dist/facilities/addresses/address.entity.d.ts +18 -0
- package/dist/facilities/addresses/address.entity.d.ts.map +1 -0
- package/dist/facilities/addresses/address.entity.js +87 -0
- package/dist/facilities/addresses/address.entity.js.map +1 -0
- package/dist/facilities/addresses/index.d.ts +2 -0
- package/dist/facilities/addresses/index.d.ts.map +1 -0
- package/dist/facilities/addresses/index.js +2 -0
- package/dist/facilities/addresses/index.js.map +1 -0
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts +6 -0
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts.map +1 -0
- package/dist/facilities/facilities/enums/facility-status.enum.js +7 -0
- package/dist/facilities/facilities/enums/facility-status.enum.js.map +1 -0
- package/dist/facilities/facilities/facility.entity.d.ts +26 -0
- package/dist/facilities/facilities/facility.entity.d.ts.map +1 -0
- package/dist/facilities/facilities/facility.entity.js +124 -0
- package/dist/facilities/facilities/facility.entity.js.map +1 -0
- package/dist/facilities/facilities/index.d.ts +3 -0
- package/dist/facilities/facilities/index.d.ts.map +1 -0
- package/dist/facilities/facilities/index.js +3 -0
- package/dist/facilities/facilities/index.js.map +1 -0
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts +5 -0
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts.map +1 -0
- package/dist/facilities/facilities/utils/sanititze.utils.js +12 -0
- package/dist/facilities/facilities/utils/sanititze.utils.js.map +1 -0
- package/dist/facilities/facility-images/facility-image.entity.d.ts +12 -0
- package/dist/facilities/facility-images/facility-image.entity.d.ts.map +1 -0
- package/dist/facilities/facility-images/facility-image.entity.js +59 -0
- package/dist/facilities/facility-images/facility-image.entity.js.map +1 -0
- package/dist/facilities/facility-images/index.d.ts +2 -0
- package/dist/facilities/facility-images/index.d.ts.map +1 -0
- package/dist/facilities/facility-images/index.js +2 -0
- package/dist/facilities/facility-images/index.js.map +1 -0
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts +13 -0
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +1 -0
- package/dist/facilities/facility-owners/facility-owner.entity.js +65 -0
- package/dist/facilities/facility-owners/facility-owner.entity.js.map +1 -0
- package/dist/facilities/facility-owners/index.d.ts +2 -0
- package/dist/facilities/facility-owners/index.d.ts.map +1 -0
- package/dist/facilities/facility-owners/index.js +2 -0
- package/dist/facilities/facility-owners/index.js.map +1 -0
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts +5 -0
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts.map +1 -0
- package/dist/facilities/facility-owners/utils/sanitize.utils.js +9 -0
- package/dist/facilities/facility-owners/utils/sanitize.utils.js.map +1 -0
- package/dist/facilities/fields/enums/surface-type.enum.d.ts +8 -0
- package/dist/facilities/fields/enums/surface-type.enum.d.ts.map +1 -0
- package/dist/facilities/fields/enums/surface-type.enum.js +9 -0
- package/dist/facilities/fields/enums/surface-type.enum.js.map +1 -0
- package/dist/facilities/fields/field.entity.d.ts +18 -0
- package/dist/facilities/fields/field.entity.d.ts.map +1 -0
- package/dist/facilities/fields/field.entity.js +72 -0
- package/dist/facilities/fields/field.entity.js.map +1 -0
- package/dist/facilities/fields/index.d.ts +3 -0
- package/dist/facilities/fields/index.d.ts.map +1 -0
- package/dist/facilities/fields/index.js +3 -0
- package/dist/facilities/fields/index.js.map +1 -0
- package/dist/facilities/index.d.ts +6 -0
- package/dist/facilities/index.d.ts.map +1 -0
- package/dist/facilities/index.js +6 -0
- package/dist/facilities/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/payments/index.d.ts +4 -0
- package/dist/payments/index.d.ts.map +1 -0
- package/dist/payments/index.js +4 -0
- package/dist/payments/index.js.map +1 -0
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts +4 -0
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts.map +1 -0
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js +5 -0
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js.map +1 -0
- package/dist/payments/payment-providers/index.d.ts +3 -0
- package/dist/payments/payment-providers/index.d.ts.map +1 -0
- package/dist/payments/payment-providers/index.js +3 -0
- package/dist/payments/payment-providers/index.js.map +1 -0
- package/dist/payments/payment-providers/payment-provider.entity.d.ts +10 -0
- package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +1 -0
- package/dist/payments/payment-providers/payment-provider.entity.js +50 -0
- package/dist/payments/payment-providers/payment-provider.entity.js.map +1 -0
- package/dist/payments/payments/enums/payment-method.enum.d.ts +5 -0
- package/dist/payments/payments/enums/payment-method.enum.d.ts.map +1 -0
- package/dist/payments/payments/enums/payment-method.enum.js +6 -0
- package/dist/payments/payments/enums/payment-method.enum.js.map +1 -0
- package/dist/payments/payments/enums/payment-status.enum.d.ts +10 -0
- package/dist/payments/payments/enums/payment-status.enum.d.ts.map +1 -0
- package/dist/payments/payments/enums/payment-status.enum.js +11 -0
- package/dist/payments/payments/enums/payment-status.enum.js.map +1 -0
- package/dist/payments/payments/index.d.ts +4 -0
- package/dist/payments/payments/index.d.ts.map +1 -0
- package/dist/payments/payments/index.js +4 -0
- package/dist/payments/payments/index.js.map +1 -0
- package/dist/payments/payments/payment.entity.d.ts +19 -0
- package/dist/payments/payments/payment.entity.d.ts.map +1 -0
- package/dist/payments/payments/payment.entity.js +85 -0
- package/dist/payments/payments/payment.entity.js.map +1 -0
- package/dist/payments/user-payment-providers/index.d.ts +2 -0
- package/dist/payments/user-payment-providers/index.d.ts.map +1 -0
- package/dist/payments/user-payment-providers/index.js +2 -0
- package/dist/payments/user-payment-providers/index.js.map +1 -0
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts +13 -0
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +1 -0
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js +61 -0
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js.map +1 -0
- package/dist/tournaments/index.d.ts +13 -0
- package/dist/tournaments/index.d.ts.map +1 -0
- package/dist/tournaments/index.js +13 -0
- package/dist/tournaments/index.js.map +1 -0
- package/dist/tournaments/tournament-facilities/index.d.ts +2 -0
- package/dist/tournaments/tournament-facilities/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-facilities/index.js +2 -0
- package/dist/tournaments/tournament-facilities/index.js.map +1 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +14 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +61 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js.map +1 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts +2 -0
- package/dist/tournaments/tournament-format-configs/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-format-configs/index.js +2 -0
- package/dist/tournaments/tournament-format-configs/index.js.map +1 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +15 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +76 -0
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js.map +1 -0
- package/dist/tournaments/tournament-match-cards/index.d.ts +2 -0
- package/dist/tournaments/tournament-match-cards/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-cards/index.js +2 -0
- package/dist/tournaments/tournament-match-cards/index.js.map +1 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +19 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +75 -0
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js.map +1 -0
- package/dist/tournaments/tournament-match-goals/index.d.ts +2 -0
- package/dist/tournaments/tournament-match-goals/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-goals/index.js +2 -0
- package/dist/tournaments/tournament-match-goals/index.js.map +1 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +20 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +79 -0
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js.map +1 -0
- package/dist/tournaments/tournament-match-schemas/index.d.ts +2 -0
- package/dist/tournaments/tournament-match-schemas/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-schemas/index.js +2 -0
- package/dist/tournaments/tournament-match-schemas/index.js.map +1 -0
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts +12 -0
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +47 -0
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js.map +1 -0
- package/dist/tournaments/tournament-matches/index.d.ts +2 -0
- package/dist/tournaments/tournament-matches/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-matches/index.js +2 -0
- package/dist/tournaments/tournament-matches/index.js.map +1 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +25 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +97 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.js.map +1 -0
- package/dist/tournaments/tournament-payments/index.d.ts +2 -0
- package/dist/tournaments/tournament-payments/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-payments/index.js +2 -0
- package/dist/tournaments/tournament-payments/index.js.map +1 -0
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +16 -0
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +59 -0
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js.map +1 -0
- package/dist/tournaments/tournament-players/index.d.ts +2 -0
- package/dist/tournaments/tournament-players/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-players/index.js +2 -0
- package/dist/tournaments/tournament-players/index.js.map +1 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +19 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.js +76 -0
- package/dist/tournaments/tournament-players/tournament-player.entity.js.map +1 -0
- package/dist/tournaments/tournament-prize-rules/index.d.ts +2 -0
- package/dist/tournaments/tournament-prize-rules/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-prize-rules/index.js +2 -0
- package/dist/tournaments/tournament-prize-rules/index.js.map +1 -0
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts +13 -0
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +55 -0
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js.map +1 -0
- package/dist/tournaments/tournament-rules/index.d.ts +2 -0
- package/dist/tournaments/tournament-rules/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-rules/index.js +2 -0
- package/dist/tournaments/tournament-rules/index.js.map +1 -0
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts +17 -0
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js +77 -0
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js.map +1 -0
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +5 -0
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +6 -0
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js.map +1 -0
- package/dist/tournaments/tournament-teams/index.d.ts +3 -0
- package/dist/tournaments/tournament-teams/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-teams/index.js +3 -0
- package/dist/tournaments/tournament-teams/index.js.map +1 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +26 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +100 -0
- package/dist/tournaments/tournament-teams/tournament-team.entity.js.map +1 -0
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts +2 -0
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts.map +1 -0
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js +4 -0
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js.map +1 -0
- package/dist/tournaments/tournaments/index.d.ts +2 -0
- package/dist/tournaments/tournaments/index.d.ts.map +1 -0
- package/dist/tournaments/tournaments/index.js +2 -0
- package/dist/tournaments/tournaments/index.js.map +1 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts +39 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -0
- package/dist/tournaments/tournaments/tournament.entity.js +147 -0
- package/dist/tournaments/tournaments/tournament.entity.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ITournamentMatchGoal, MatchPeriod } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
3
|
+
import { TournamentPlayer } from 'tournaments/tournament-players';
|
|
4
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
5
|
+
export declare class TournamentMatchGoal implements ITournamentMatchGoal {
|
|
6
|
+
id: number;
|
|
7
|
+
teamId: number;
|
|
8
|
+
matchId: number;
|
|
9
|
+
minute?: number;
|
|
10
|
+
period?: MatchPeriod;
|
|
11
|
+
scorerId?: number;
|
|
12
|
+
assistId?: number;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
team?: TournamentTeam;
|
|
16
|
+
match?: TournamentMatch;
|
|
17
|
+
scorer?: TournamentPlayer;
|
|
18
|
+
assist?: TournamentPlayer;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tournament-match-goal.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-goal.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-goals/tournament-match-goal.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAYvF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,qBAGa,mBAAoB,YAAW,oBAAoB;IAE9D,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,WAAW,CAAC;IAGrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,IAAI,CAAC,EAAE,cAAc,CAAC;IAOtB,KAAK,CAAC,EAAE,eAAe,CAAC;IAOxB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAO1B,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { MatchPeriod } from '@natrave/tournaments-service-types';
|
|
11
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Index, ManyToOne, JoinColumn, } from 'typeorm';
|
|
12
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
13
|
+
import { TournamentPlayer } from 'tournaments/tournament-players';
|
|
14
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
15
|
+
let TournamentMatchGoal = class TournamentMatchGoal {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
PrimaryGeneratedColumn(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TournamentMatchGoal.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ name: 'team_id', type: 'int' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], TournamentMatchGoal.prototype, "teamId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ name: 'match_id', type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], TournamentMatchGoal.prototype, "matchId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ type: 'int', nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], TournamentMatchGoal.prototype, "minute", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ type: 'enum', enum: MatchPeriod, nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], TournamentMatchGoal.prototype, "period", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ name: 'scorer_id', type: 'int', nullable: true }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TournamentMatchGoal.prototype, "scorerId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column({ name: 'assist_id', type: 'int', nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], TournamentMatchGoal.prototype, "assistId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], TournamentMatchGoal.prototype, "createdAt", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], TournamentMatchGoal.prototype, "updatedAt", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ManyToOne(() => TournamentTeam, (team) => team.goals, { onDelete: 'CASCADE' }),
|
|
55
|
+
JoinColumn({ name: 'team_id' }),
|
|
56
|
+
__metadata("design:type", TournamentTeam)
|
|
57
|
+
], TournamentMatchGoal.prototype, "team", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ManyToOne(() => TournamentMatch, (match) => match.goals, { onDelete: 'CASCADE' }),
|
|
60
|
+
JoinColumn({ name: 'team_id' }),
|
|
61
|
+
__metadata("design:type", TournamentMatch)
|
|
62
|
+
], TournamentMatchGoal.prototype, "match", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
ManyToOne(() => TournamentPlayer, (team) => team.goals, { onDelete: 'CASCADE' }),
|
|
65
|
+
JoinColumn({ name: 'scorer_id' }),
|
|
66
|
+
__metadata("design:type", TournamentPlayer)
|
|
67
|
+
], TournamentMatchGoal.prototype, "scorer", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
ManyToOne(() => TournamentPlayer, (team) => team.assists, { onDelete: 'CASCADE' }),
|
|
70
|
+
JoinColumn({ name: 'assist_id' }),
|
|
71
|
+
__metadata("design:type", TournamentPlayer)
|
|
72
|
+
], TournamentMatchGoal.prototype, "assist", void 0);
|
|
73
|
+
TournamentMatchGoal = __decorate([
|
|
74
|
+
Entity('tournament_match_goals'),
|
|
75
|
+
Index(['teamId']),
|
|
76
|
+
Index(['matchId'])
|
|
77
|
+
], TournamentMatchGoal);
|
|
78
|
+
export { TournamentMatchGoal };
|
|
79
|
+
//# sourceMappingURL=tournament-match-goal.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-goal.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-goals/tournament-match-goal.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAwB,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAgBvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAyD/B,CAAA;AAvDC;IADC,sBAAsB,EAAE;;+CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDAC1B;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;oDAC1B;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACxB;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW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AI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClF,UAAU,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACzB,gBAAgB;mDAAC;AAxDf,mBAAmB;IAH/B,MAAM,CAAC,wBAAwB,CAAC;IAChC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjB,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;GACN,mBAAmB,CAyD/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITournamentMatchSchema } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
3
|
+
export declare class TournamentMatchSchema implements ITournamentMatchSchema {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
playersPerTeam: number;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
tournaments: Tournament[];
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=tournament-match-schema.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-schema.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-schemas/tournament-match-schema.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAW5E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAWrD,qBAEa,qBAAsB,YAAW,sBAAsB;IAElE,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,cAAc,EAAE,MAAM,CAAC;IAGvB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAQhB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Index, OneToMany, } from 'typeorm';
|
|
11
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
12
|
+
let TournamentMatchSchema = class TournamentMatchSchema {
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
PrimaryGeneratedColumn(),
|
|
16
|
+
__metadata("design:type", Number)
|
|
17
|
+
], TournamentMatchSchema.prototype, "id", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ type: 'varchar', length: 100 }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], TournamentMatchSchema.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TournamentMatchSchema.prototype, "description", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'int', name: 'players_per_team' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], TournamentMatchSchema.prototype, "playersPerTeam", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], TournamentMatchSchema.prototype, "createdAt", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], TournamentMatchSchema.prototype, "updatedAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
OneToMany(() => Tournament, (tournament) => tournament.matchSchema),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], TournamentMatchSchema.prototype, "tournaments", void 0);
|
|
42
|
+
TournamentMatchSchema = __decorate([
|
|
43
|
+
Entity('tournament_match_schemas'),
|
|
44
|
+
Index(['name'])
|
|
45
|
+
], TournamentMatchSchema);
|
|
46
|
+
export { TournamentMatchSchema };
|
|
47
|
+
//# sourceMappingURL=tournament-match-schema.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-schema.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-schemas/tournament-match-schema.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAa9C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CA0BjC,CAAA;AAxBC;IADC,sBAAsB,EAAE;;iDACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAC5B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACpC;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;6DAC3B;AAGvB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;wDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;wDAAC;AAQhB;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;;0DAC1C;AAzBf,qBAAqB;IAFjC,MAAM,CAAC,0BAA0B,CAAC;IAClC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;GACH,qBAAqB,CA0BjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ITournamentMatch, TournamentMatchPhase } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Field } from 'facilities';
|
|
3
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
4
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
5
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
6
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
7
|
+
export declare class TournamentMatch implements ITournamentMatch {
|
|
8
|
+
id: number;
|
|
9
|
+
tournamentId: number;
|
|
10
|
+
homeTeamId: number;
|
|
11
|
+
awayTeamId: number;
|
|
12
|
+
fieldId?: number;
|
|
13
|
+
matchDate: Date | null;
|
|
14
|
+
phase: TournamentMatchPhase;
|
|
15
|
+
roundIndicator: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
field?: Field;
|
|
19
|
+
tournament: Tournament;
|
|
20
|
+
homeTeam: TournamentTeam;
|
|
21
|
+
awayTeam: TournamentTeam;
|
|
22
|
+
goals: TournamentMatchGoal[];
|
|
23
|
+
cards: TournamentMatchCard[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=tournament-match.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAY5F,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAWrD,qBACa,eAAgB,YAAW,gBAAgB;IAEtD,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAUvB,KAAK,EAAE,oBAAoB,CAAC;IAS5B,cAAc,EAAE,MAAM,CAAC;IAGvB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,KAAK,CAAC,EAAE,KAAK,CAAC;IASd,UAAU,EAAE,UAAU,CAAC;IASvB,QAAQ,EAAE,cAAc,CAAC;IASzB,QAAQ,EAAE,cAAc,CAAC;IAMzB,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAM7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { TournamentMatchPhase } from '@natrave/tournaments-service-types';
|
|
11
|
+
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm';
|
|
12
|
+
import { Field } from 'facilities';
|
|
13
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
14
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
15
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
16
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
17
|
+
let TournamentMatch = class TournamentMatch {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
PrimaryGeneratedColumn(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], TournamentMatch.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ name: 'tournament_id', type: 'int' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], TournamentMatch.prototype, "tournamentId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ name: 'home_team_id', type: 'int' }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], TournamentMatch.prototype, "homeTeamId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ name: 'away_team_id', type: 'int' }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], TournamentMatch.prototype, "awayTeamId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ name: 'field_id', type: 'int', nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], TournamentMatch.prototype, "fieldId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ name: 'match_date', type: 'timestamptz', default: null, nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], TournamentMatch.prototype, "matchDate", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'enum', enum: TournamentMatchPhase }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TournamentMatch.prototype, "phase", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ name: 'round_indicator', type: 'int', default: 1 }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], TournamentMatch.prototype, "roundIndicator", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], TournamentMatch.prototype, "createdAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], TournamentMatch.prototype, "updatedAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
ManyToOne(() => Field, (field) => field.tournamentMatches, { onDelete: 'SET NULL' }),
|
|
61
|
+
JoinColumn({ name: 'field_id' }),
|
|
62
|
+
__metadata("design:type", Field)
|
|
63
|
+
], TournamentMatch.prototype, "field", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
ManyToOne(() => Tournament, (tournament) => tournament.matches, {
|
|
66
|
+
onDelete: 'CASCADE',
|
|
67
|
+
}),
|
|
68
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
69
|
+
__metadata("design:type", Tournament)
|
|
70
|
+
], TournamentMatch.prototype, "tournament", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
ManyToOne(() => TournamentTeam, (team) => team.homeMatches, {
|
|
73
|
+
onDelete: 'CASCADE',
|
|
74
|
+
}),
|
|
75
|
+
JoinColumn({ name: 'home_team_id' }),
|
|
76
|
+
__metadata("design:type", TournamentTeam)
|
|
77
|
+
], TournamentMatch.prototype, "homeTeam", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
ManyToOne(() => TournamentTeam, (team) => team.awayMatches, {
|
|
80
|
+
onDelete: 'CASCADE',
|
|
81
|
+
}),
|
|
82
|
+
JoinColumn({ name: 'away_team_id' }),
|
|
83
|
+
__metadata("design:type", TournamentTeam)
|
|
84
|
+
], TournamentMatch.prototype, "awayTeam", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
OneToMany(() => TournamentMatchGoal, (goal) => goal.match),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], TournamentMatch.prototype, "goals", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
OneToMany(() => TournamentMatchCard, (card) => card.match),
|
|
91
|
+
__metadata("design:type", Array)
|
|
92
|
+
], TournamentMatch.prototype, "cards", void 0);
|
|
93
|
+
TournamentMatch = __decorate([
|
|
94
|
+
Entity('tournament_matches')
|
|
95
|
+
], TournamentMatch);
|
|
96
|
+
export { TournamentMatch };
|
|
97
|
+
//# sourceMappingURL=tournament-match.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAoB,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAY9C,IAAM,eAAe,GAArB,MAAM,eAAe;CA2F3B,CAAA;AAzFC;IADC,sBAAsB,EAAE;;2CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDAC1B;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDAC3B;AAGnB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,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EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE;QAC3D,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAC3B,cAAc;iDAAC;AASzB;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE;QAC3D,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BAC3B,cAAc;iDAAC;AAMzB;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;8CAC9B;AAM7B;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;;8CAC9B;AA1FlB,eAAe;IAD3B,MAAM,CAAC,oBAAoB,CAAC;GAChB,eAAe,CA2F3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ITournamentPayment } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { User } from 'app-auth';
|
|
3
|
+
import { Payment } from 'payments';
|
|
4
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
5
|
+
export declare class TournamentPayment implements ITournamentPayment {
|
|
6
|
+
id: string;
|
|
7
|
+
paymentId: number;
|
|
8
|
+
tournamentId: number;
|
|
9
|
+
userId: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
user: User;
|
|
13
|
+
payment: Payment;
|
|
14
|
+
tournament: Tournament;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=tournament-payment.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-payment.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/tournament-payment.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAWxE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAWrD,qBACa,iBAAkB,YAAW,kBAAkB;IAE1D,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,IAAI,EAAE,IAAI,CAAC;IAOX,OAAO,EAAE,OAAO,CAAC;IAOjB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, JoinColumn, } from 'typeorm';
|
|
11
|
+
import { User } from 'app-auth';
|
|
12
|
+
import { Payment } from 'payments';
|
|
13
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
14
|
+
let TournamentPayment = class TournamentPayment {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryGeneratedColumn('uuid'),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], TournamentPayment.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column({ name: 'payment_id', type: 'int' }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], TournamentPayment.prototype, "paymentId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ name: 'tournament_id', type: 'int' }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], TournamentPayment.prototype, "tournamentId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Column({ name: 'user_id', type: 'uuid' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], TournamentPayment.prototype, "userId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], TournamentPayment.prototype, "createdAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], TournamentPayment.prototype, "updatedAt", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
ManyToOne(() => User, { onDelete: 'CASCADE' }),
|
|
42
|
+
JoinColumn({ name: 'user_id' }),
|
|
43
|
+
__metadata("design:type", User)
|
|
44
|
+
], TournamentPayment.prototype, "user", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
ManyToOne(() => Payment, { onDelete: 'CASCADE', eager: true }),
|
|
47
|
+
JoinColumn({ name: 'payment_id' }),
|
|
48
|
+
__metadata("design:type", Payment)
|
|
49
|
+
], TournamentPayment.prototype, "payment", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
ManyToOne(() => Tournament, { onDelete: 'CASCADE' }),
|
|
52
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
53
|
+
__metadata("design:type", Tournament)
|
|
54
|
+
], TournamentPayment.prototype, "tournament", void 0);
|
|
55
|
+
TournamentPayment = __decorate([
|
|
56
|
+
Entity('tournament_payments')
|
|
57
|
+
], TournamentPayment);
|
|
58
|
+
export { TournamentPayment };
|
|
59
|
+
//# sourceMappingURL=tournament-payment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-payment.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/tournament-payment.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAY9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAyC7B,CAAA;AAvCC;IADC,sBAAsB,CAAC,MAAM,CAAC;;6CACpB;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,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"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ITournamentPlayer } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { User } from 'app-auth';
|
|
3
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
4
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
5
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
6
|
+
export declare class TournamentPlayer implements ITournamentPlayer {
|
|
7
|
+
id: number;
|
|
8
|
+
userId: string;
|
|
9
|
+
teamId: number;
|
|
10
|
+
isOwner: boolean;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
team: TournamentTeam;
|
|
14
|
+
user: User;
|
|
15
|
+
goals: TournamentMatchGoal[];
|
|
16
|
+
assists: TournamentMatchGoal[];
|
|
17
|
+
cards: TournamentMatchCard[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=tournament-player.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-player.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAcvE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAc9D,qBAIa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAahB,IAAI,EAAE,cAAc,CAAC;IAWrB,IAAI,EAAE,IAAI,CAAC;IAMX,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAM7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAM/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC9B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, JoinColumn, Unique, Index, OneToMany, } from 'typeorm';
|
|
11
|
+
import { User } from 'app-auth';
|
|
12
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
13
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
14
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
15
|
+
let TournamentPlayer = class TournamentPlayer {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
PrimaryGeneratedColumn(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TournamentPlayer.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ name: 'user_id', type: 'uuid' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], TournamentPlayer.prototype, "userId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ name: 'team_id', type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], TournamentPlayer.prototype, "teamId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ name: 'is_owner', type: 'boolean', default: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], TournamentPlayer.prototype, "isOwner", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], TournamentPlayer.prototype, "createdAt", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], TournamentPlayer.prototype, "updatedAt", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ManyToOne(() => TournamentTeam, (team) => team.players, {
|
|
43
|
+
onDelete: 'CASCADE',
|
|
44
|
+
eager: true,
|
|
45
|
+
}),
|
|
46
|
+
JoinColumn({ name: 'team_id' }),
|
|
47
|
+
__metadata("design:type", TournamentTeam)
|
|
48
|
+
], TournamentPlayer.prototype, "team", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
ManyToOne(() => User, (user) => user.tournamentPlayers, {
|
|
51
|
+
onDelete: 'CASCADE',
|
|
52
|
+
eager: true,
|
|
53
|
+
}),
|
|
54
|
+
JoinColumn({ name: 'user_id' }),
|
|
55
|
+
__metadata("design:type", User)
|
|
56
|
+
], TournamentPlayer.prototype, "user", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
OneToMany(() => TournamentMatchGoal, (goal) => goal.scorer),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], TournamentPlayer.prototype, "goals", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
OneToMany(() => TournamentMatchGoal, (goal) => goal.assist),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], TournamentPlayer.prototype, "assists", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
OneToMany(() => TournamentMatchCard, (card) => card.player),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], TournamentPlayer.prototype, "cards", void 0);
|
|
69
|
+
TournamentPlayer = __decorate([
|
|
70
|
+
Entity('tournament_players'),
|
|
71
|
+
Unique(['userId', 'teamId']),
|
|
72
|
+
Index('IDX_user_id', ['userId']),
|
|
73
|
+
Index('IDX_team_id', ['teamId'])
|
|
74
|
+
], TournamentPlayer);
|
|
75
|
+
export { TournamentPlayer };
|
|
76
|
+
//# sourceMappingURL=tournament-player.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-player.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-players/tournament-player.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAkBvD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CA4D5B,CAAA;AA1DC;IADC,sBAAsB,EAAE;;4CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EA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C,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;+CAC/B;AA3DlB,gBAAgB;IAJ5B,MAAM,CAAC,oBAAoB,CAAC;IAC5B,MAAM,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC5B,KAAK,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;IAChC,KAAK,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;GACpB,gBAAgB,CA4D5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ITournamentPrizeRule } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
3
|
+
export declare class TournamentPrizeRule implements ITournamentPrizeRule {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentId: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
rank: number;
|
|
8
|
+
description?: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
tournament: Tournament;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tournament-prize-rule.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-prize-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAa1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAerD,qBAGa,mBAAoB,YAAW,oBAAoB;IAE9D,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAYhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|