@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,19 @@
|
|
|
1
|
+
import { PaymentProviderName } from 'payments/payment-providers';
|
|
2
|
+
import { TournamentPayment } from 'tournaments';
|
|
3
|
+
import { PaymentMethod } from './enums/payment-method.enum';
|
|
4
|
+
import { PaymentStatus } from './enums/payment-status.enum';
|
|
5
|
+
export declare class Payment {
|
|
6
|
+
id: number;
|
|
7
|
+
externalId?: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
paymentMethod: PaymentMethod;
|
|
10
|
+
status: PaymentStatus;
|
|
11
|
+
paymentProviderName: PaymentProviderName;
|
|
12
|
+
qrCodeUrl?: string;
|
|
13
|
+
qrCode?: string;
|
|
14
|
+
expiresAt?: Date;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
tournamentPayments: TournamentPayment[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=payment.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.d.ts","sourceRoot":"","sources":["../../../src/payments/payments/payment.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAY5D,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAOf,aAAa,EAAE,aAAa,CAAC;IAQ7B,MAAM,EAAE,aAAa,CAAC;IAQtB,mBAAmB,EAAE,mBAAmB,CAAC;IAGzC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAUhB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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, OneToMany, } from 'typeorm';
|
|
11
|
+
import { PaymentProviderName } from 'payments/payment-providers';
|
|
12
|
+
import { TournamentPayment } from 'tournaments';
|
|
13
|
+
import { PaymentMethod } from './enums/payment-method.enum';
|
|
14
|
+
import { PaymentStatus } from './enums/payment-status.enum';
|
|
15
|
+
let Payment = class Payment {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
PrimaryGeneratedColumn(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], Payment.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ name: 'external_id', type: 'varchar', length: 255, nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Payment.prototype, "externalId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ type: 'int' }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], Payment.prototype, "amount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({
|
|
31
|
+
name: 'payment_method',
|
|
32
|
+
type: 'enum',
|
|
33
|
+
enum: PaymentMethod,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Payment.prototype, "paymentMethod", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({
|
|
39
|
+
type: 'enum',
|
|
40
|
+
enum: PaymentStatus,
|
|
41
|
+
enumName: 'PaymentStatus',
|
|
42
|
+
default: PaymentStatus.PENDING,
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Payment.prototype, "status", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({
|
|
48
|
+
type: 'enum',
|
|
49
|
+
enum: PaymentProviderName,
|
|
50
|
+
enumName: 'PaymentProviderName',
|
|
51
|
+
default: PaymentProviderName.PAGARME,
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Payment.prototype, "paymentProviderName", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ name: 'qr_code_url', type: 'text', nullable: true }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], Payment.prototype, "qrCodeUrl", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column({ name: 'qr_code', type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Payment.prototype, "qrCode", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column({ name: 'expires_at', type: 'timestamptz', nullable: true }),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], Payment.prototype, "expiresAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], Payment.prototype, "createdAt", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], Payment.prototype, "updatedAt", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
OneToMany(() => TournamentPayment, (tournamentPayment) => tournamentPayment.payment, {
|
|
77
|
+
cascade: true,
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], Payment.prototype, "tournamentPayments", void 0);
|
|
81
|
+
Payment = __decorate([
|
|
82
|
+
Entity('payments')
|
|
83
|
+
], Payment);
|
|
84
|
+
export { Payment };
|
|
85
|
+
//# sourceMappingURL=payment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.js","sourceRoot":"","sources":["../../../src/payments/payments/payment.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAarD,IAAM,OAAO,GAAb,MAAM,OAAO;CAyDnB,CAAA;AAvDC;IADC,sBAAsB,EAAE;;mCACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC1D;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;uCACT;AAOf;IALC,MAAM,CAAC;QACN,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,aAAa;KACpB,CAAC;;8CAC2B;AAQ7B;IANC,MAAM,CAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B,CAAC;;uCACoB;AAQtB;IANC,MAAM,CAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,qBAAqB;QAC/B,OAAO,EAAE,mBAAmB,CAAC,OAAO;KACrC,CAAC;;oDACuC;AAGzC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC3C;AAGnB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC1C;AAGhB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACxD,IAAI;0CAAC;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;0CAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;0CAAC;AAUhB;IAHC,SAAS,CAAC,GAAG,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE;QACpF,OAAO,EAAE,IAAI;KACd,CAAC;;mDACsC;AAxD7B,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CAyDnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/payments/user-payment-providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/payments/user-payment-providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { User } from 'app-auth';
|
|
2
|
+
import { PaymentProvider } from 'payments/payment-providers';
|
|
3
|
+
export declare class UserPaymentProvider {
|
|
4
|
+
id: number;
|
|
5
|
+
userId: string;
|
|
6
|
+
paymentProviderId: number;
|
|
7
|
+
providerCustomerId: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
user: User;
|
|
11
|
+
paymentProvider: PaymentProvider;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=user-payment-provider.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-payment-provider.entity.d.ts","sourceRoot":"","sources":["../../../src/payments/user-payment-providers/user-payment-provider.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAY7D,qBAKa,mBAAmB;IAE9B,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,iBAAiB,EAAE,MAAM,CAAC;IAO1B,kBAAkB,EAAE,MAAM,CAAC;IAG3B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAWhB,IAAI,EAAE,IAAI,CAAC;IASX,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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, } from 'typeorm';
|
|
11
|
+
import { User } from 'app-auth';
|
|
12
|
+
import { PaymentProvider } from 'payments/payment-providers';
|
|
13
|
+
let UserPaymentProvider = class UserPaymentProvider {
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
PrimaryGeneratedColumn(),
|
|
17
|
+
__metadata("design:type", Number)
|
|
18
|
+
], UserPaymentProvider.prototype, "id", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'uuid', name: 'user_id' }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UserPaymentProvider.prototype, "userId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'int', name: 'payment_provider_id' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UserPaymentProvider.prototype, "paymentProviderId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ type: 'text', unique: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UserPaymentProvider.prototype, "providerCustomerId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], UserPaymentProvider.prototype, "createdAt", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], UserPaymentProvider.prototype, "updatedAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ManyToOne(() => User, (user) => user.userPaymentProviders, {
|
|
41
|
+
onDelete: 'CASCADE',
|
|
42
|
+
}),
|
|
43
|
+
JoinColumn({ name: 'user_id' }),
|
|
44
|
+
__metadata("design:type", User)
|
|
45
|
+
], UserPaymentProvider.prototype, "user", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ManyToOne(() => PaymentProvider, (provider) => provider.userPaymentProviders, {
|
|
48
|
+
onDelete: 'CASCADE',
|
|
49
|
+
}),
|
|
50
|
+
JoinColumn({ name: 'payment_provider_id' }),
|
|
51
|
+
__metadata("design:type", PaymentProvider)
|
|
52
|
+
], UserPaymentProvider.prototype, "paymentProvider", void 0);
|
|
53
|
+
UserPaymentProvider = __decorate([
|
|
54
|
+
Entity('user_payment_providers'),
|
|
55
|
+
Unique(['providerCustomerId']),
|
|
56
|
+
Unique(['userId', 'paymentProviderId']),
|
|
57
|
+
Index(['userId', 'paymentProviderId']),
|
|
58
|
+
Index(['providerCustomerId'])
|
|
59
|
+
], UserPaymentProvider);
|
|
60
|
+
export { UserPaymentProvider };
|
|
61
|
+
//# sourceMappingURL=user-payment-provider.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-payment-provider.entity.js","sourceRoot":"","sources":["../../../src/payments/user-payment-providers/user-payment-provider.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,GACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAiBtD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CA0C/B,CAAA;AAxCC;IADC,sBAAsB,EAAE;;+CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDAC3B;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;;8DAC3B;AAO1B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;+DACZ;AAG3B;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAWhB;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE;QAC1D,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,IAAI;iDAAC;AASX;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,oBAAoB,EAAE;QAC7E,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BAC3B,eAAe;4DAAC;AAzCtB,mBAAmB;IAL/B,MAAM,CAAC,wBAAwB,CAAC;IAChC,MAAM,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC9B,MAAM,CAAC,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IACvC,KAAK,CAAC,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IACtC,KAAK,CAAC,CAAC,oBAAoB,CAAC,CAAC;GACjB,mBAAmB,CA0C/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './tournament-payments';
|
|
2
|
+
export * from './tournament-rules';
|
|
3
|
+
export * from './tournament-teams';
|
|
4
|
+
export * from './tournament-prize-rules';
|
|
5
|
+
export * from './tournament-players';
|
|
6
|
+
export * from './tournament-matches';
|
|
7
|
+
export * from './tournament-match-schemas';
|
|
8
|
+
export * from './tournament-match-cards';
|
|
9
|
+
export * from './tournament-match-goals';
|
|
10
|
+
export * from './tournament-format-configs';
|
|
11
|
+
export * from './tournament-facilities';
|
|
12
|
+
export * from './tournaments';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './tournament-payments';
|
|
2
|
+
export * from './tournament-rules';
|
|
3
|
+
export * from './tournament-teams';
|
|
4
|
+
export * from './tournament-prize-rules';
|
|
5
|
+
export * from './tournament-players';
|
|
6
|
+
export * from './tournament-matches';
|
|
7
|
+
export * from './tournament-match-schemas';
|
|
8
|
+
export * from './tournament-match-cards';
|
|
9
|
+
export * from './tournament-match-goals';
|
|
10
|
+
export * from './tournament-format-configs';
|
|
11
|
+
export * from './tournament-facilities';
|
|
12
|
+
export * from './tournaments';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITournamentFacility } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Facility } from 'facilities/facilities/facility.entity';
|
|
3
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
4
|
+
export declare class TournamentFacility implements ITournamentFacility {
|
|
5
|
+
id: number;
|
|
6
|
+
facilityId: number;
|
|
7
|
+
tournamentId: number;
|
|
8
|
+
isPrimary: boolean;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
tournament: Tournament;
|
|
12
|
+
facility: Facility;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=tournament-facility.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-facility.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/tournament-facility.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAazE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAerD,qBAGa,kBAAmB,YAAW,mBAAmB;IAE5D,EAAE,EAAE,MAAM,CAAC;IAGX,UAAU,EAAE,MAAM,CAAC;IAGnB,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,OAAO,CAAC;IAGnB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;IAOvB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
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, } from 'typeorm';
|
|
11
|
+
import { Facility } from 'facilities/facilities/facility.entity';
|
|
12
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
13
|
+
let TournamentFacility = class TournamentFacility {
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
PrimaryGeneratedColumn(),
|
|
17
|
+
__metadata("design:type", Number)
|
|
18
|
+
], TournamentFacility.prototype, "id", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ name: 'facility_id', type: 'int' }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], TournamentFacility.prototype, "facilityId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ name: 'tournament_id', type: 'int' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], TournamentFacility.prototype, "tournamentId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ name: 'is_primary', type: 'boolean', default: false }),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], TournamentFacility.prototype, "isPrimary", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], TournamentFacility.prototype, "createdAt", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], TournamentFacility.prototype, "updatedAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ManyToOne(() => Tournament, (tournament) => tournament.tournamentFacilities, {
|
|
41
|
+
onDelete: 'CASCADE',
|
|
42
|
+
onUpdate: 'CASCADE',
|
|
43
|
+
}),
|
|
44
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
45
|
+
__metadata("design:type", Tournament)
|
|
46
|
+
], TournamentFacility.prototype, "tournament", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
ManyToOne(() => Facility, (facility) => facility.tournamentFacilities, {
|
|
49
|
+
onDelete: 'CASCADE',
|
|
50
|
+
onUpdate: 'CASCADE',
|
|
51
|
+
}),
|
|
52
|
+
JoinColumn({ name: 'facility_id' }),
|
|
53
|
+
__metadata("design:type", Facility)
|
|
54
|
+
], TournamentFacility.prototype, "facility", void 0);
|
|
55
|
+
TournamentFacility = __decorate([
|
|
56
|
+
Entity('tournament_facilities'),
|
|
57
|
+
Unique('tournament_facility_unique', ['tournamentId', 'facilityId']),
|
|
58
|
+
Index('tournament_is_primary_index', ['tournamentId', 'isPrimary'])
|
|
59
|
+
], TournamentFacility);
|
|
60
|
+
export { TournamentFacility };
|
|
61
|
+
//# sourceMappingURL=tournament-facility.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-facility.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-facilities/tournament-facility.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,GACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAkB9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAkC9B,CAAA;AAhCC;IADC,sBAAsB,EAAE;;8CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;sDAC1B;AAGnB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;wDAC1B;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDAC7C;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;qDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;qDAAC;AAShB;IALC,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,oBAAoB,EAAE;QAC5E,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,UAAU;sDAAC;AAOvB;IALC,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,oBAAoB,EAAE;QACtE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,QAAQ;oDAAC;AAjCR,kBAAkB;IAH9B,MAAM,CAAC,uBAAuB,CAAC;IAC/B,MAAM,CAAC,4BAA4B,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACpE,KAAK,CAAC,6BAA6B,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;GACvD,kBAAkB,CAkC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KnockoutPhase, MatchLegMode, TournamentFormat, type ITournamentFormatConfig } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
3
|
+
export declare class TournamentFormatConfig implements ITournamentFormatConfig {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentId: number;
|
|
6
|
+
format: TournamentFormat;
|
|
7
|
+
numberOfGroups: number | null;
|
|
8
|
+
initialPhaseMatchMode: MatchLegMode | null;
|
|
9
|
+
knockoutStartPhase: KnockoutPhase | null;
|
|
10
|
+
knockoutMatchMode: MatchLegMode | null;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
tournament: Tournament;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=tournament-format-config.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-format-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAcrD,qBACa,sBAAuB,YAAW,uBAAuB;IACpE,EAAE,EAAE,MAAM,CAAC;IAEX,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,gBAAgB,CAAC;IAGzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAc9B,qBAAqB,EAAE,YAAY,GAAG,IAAI,CAAC;IAS3C,kBAAkB,EAAE,aAAa,GAAG,IAAI,CAAC;IAczC,iBAAiB,EAAE,YAAY,GAAG,IAAI,CAAC;IAGvC,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAWhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -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 { KnockoutPhase, MatchLegMode, TournamentFormat, } from '@natrave/tournaments-service-types';
|
|
11
|
+
import { Entity, Column, CreateDateColumn, UpdateDateColumn, OneToOne, JoinColumn } from 'typeorm';
|
|
12
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
13
|
+
let TournamentFormatConfig = class TournamentFormatConfig {
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
Column({ name: 'tournament_id', type: 'int', unique: true }),
|
|
17
|
+
__metadata("design:type", Number)
|
|
18
|
+
], TournamentFormatConfig.prototype, "tournamentId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column({ type: 'enum', enum: TournamentFormat }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], TournamentFormatConfig.prototype, "format", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column({ type: 'int', nullable: true, default: null }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], TournamentFormatConfig.prototype, "numberOfGroups", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({
|
|
29
|
+
name: 'initial_phase_match_mode',
|
|
30
|
+
type: 'enum',
|
|
31
|
+
enum: MatchLegMode,
|
|
32
|
+
nullable: true,
|
|
33
|
+
default: null,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], TournamentFormatConfig.prototype, "initialPhaseMatchMode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({
|
|
39
|
+
name: 'knockout_start_phase',
|
|
40
|
+
type: 'enum',
|
|
41
|
+
enum: KnockoutPhase,
|
|
42
|
+
nullable: true,
|
|
43
|
+
default: null,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], TournamentFormatConfig.prototype, "knockoutStartPhase", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({
|
|
49
|
+
name: 'knockout_match_mode',
|
|
50
|
+
type: 'enum',
|
|
51
|
+
enum: MatchLegMode,
|
|
52
|
+
nullable: true,
|
|
53
|
+
default: null,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], TournamentFormatConfig.prototype, "knockoutMatchMode", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], TournamentFormatConfig.prototype, "createdAt", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], TournamentFormatConfig.prototype, "updatedAt", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
OneToOne(() => Tournament, (tournament) => tournament.format, {
|
|
67
|
+
onDelete: 'CASCADE',
|
|
68
|
+
}),
|
|
69
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
70
|
+
__metadata("design:type", Tournament)
|
|
71
|
+
], TournamentFormatConfig.prototype, "tournament", void 0);
|
|
72
|
+
TournamentFormatConfig = __decorate([
|
|
73
|
+
Entity('tournament_format_configs')
|
|
74
|
+
], TournamentFormatConfig);
|
|
75
|
+
export { TournamentFormatConfig };
|
|
76
|
+
//# sourceMappingURL=tournament-format-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-format-config.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-format-configs/tournament-format-config.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,gBAAgB,GAEjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAe9C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAgElC,CAAA;AA7DC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4DACxC;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;sDACxB;AAGzB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8DACzB;AAc9B;IAPC,MAAM,CAAC;QACN,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;;qEACyC;AAS3C;IAPC,MAAM,CAAC;QACN,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;;kEACuC;AAczC;IAPC,MAAM,CAAC;QACN,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;KACd,CAAC;;iEACqC;AAGvC;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;yDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;yDAAC;AAWhB;IAJC,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE;QAC7D,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,UAAU;0DAAC;AA/DZ,sBAAsB;IADlC,MAAM,CAAC,2BAA2B,CAAC;GACvB,sBAAsB,CAgElC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-cards/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-match-cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CardType, MatchPeriod, type ITournamentMatchCard } 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 TournamentMatchCard implements ITournamentMatchCard {
|
|
6
|
+
id: number;
|
|
7
|
+
minute?: number;
|
|
8
|
+
period?: MatchPeriod;
|
|
9
|
+
playerId: number;
|
|
10
|
+
teamId: number;
|
|
11
|
+
matchId: number;
|
|
12
|
+
cardType: CardType;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
team: TournamentTeam;
|
|
16
|
+
match: TournamentMatch;
|
|
17
|
+
player: TournamentPlayer;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=tournament-match-card.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-card.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-cards/tournament-match-card.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,KAAK,oBAAoB,EAC1B,MAAM,oCAAoC,CAAC;AAY5C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,qBAIa,mBAAoB,YAAW,oBAAoB;IAE9D,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,WAAW,CAAC;IAGrB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,MAAM,CAAC;IAGhB,QAAQ,EAAE,QAAQ,CAAC;IAGnB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAShB,IAAI,EAAE,cAAc,CAAC;IAOrB,KAAK,EAAE,eAAe,CAAC;IAOvB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { CardType, MatchPeriod, } from '@natrave/tournaments-service-types';
|
|
11
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, JoinColumn, Index, } 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 TournamentMatchCard = class TournamentMatchCard {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
PrimaryGeneratedColumn(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], TournamentMatchCard.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Column({ type: 'int', nullable: true }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], TournamentMatchCard.prototype, "minute", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Column({ type: 'enum', enum: MatchPeriod, nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], TournamentMatchCard.prototype, "period", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Column({ name: 'player_id', type: 'int' }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], TournamentMatchCard.prototype, "playerId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ name: 'team_id', type: 'int' }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], TournamentMatchCard.prototype, "teamId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ name: 'match_id', type: 'int' }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], TournamentMatchCard.prototype, "matchId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column({ type: 'enum', enum: CardType }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TournamentMatchCard.prototype, "cardType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], TournamentMatchCard.prototype, "createdAt", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], TournamentMatchCard.prototype, "updatedAt", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
ManyToOne(() => TournamentTeam, (team) => team.cards, { onDelete: 'CASCADE' }),
|
|
55
|
+
JoinColumn({ name: 'team_id' }),
|
|
56
|
+
__metadata("design:type", TournamentTeam)
|
|
57
|
+
], TournamentMatchCard.prototype, "team", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ManyToOne(() => TournamentMatch, (match) => match.cards, { onDelete: 'CASCADE' }),
|
|
60
|
+
JoinColumn({ name: 'match_id' }),
|
|
61
|
+
__metadata("design:type", TournamentMatch)
|
|
62
|
+
], TournamentMatchCard.prototype, "match", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
ManyToOne(() => TournamentPlayer, { onDelete: 'CASCADE' }),
|
|
65
|
+
JoinColumn({ name: 'player_id' }),
|
|
66
|
+
__metadata("design:type", TournamentPlayer)
|
|
67
|
+
], TournamentMatchCard.prototype, "player", void 0);
|
|
68
|
+
TournamentMatchCard = __decorate([
|
|
69
|
+
Entity('tournament_match_cards'),
|
|
70
|
+
Index(['matchId']),
|
|
71
|
+
Index(['teamId']),
|
|
72
|
+
Index(['playerId'])
|
|
73
|
+
], TournamentMatchCard);
|
|
74
|
+
export { TournamentMatchCard };
|
|
75
|
+
//# sourceMappingURL=tournament-match-card.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-match-card.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-cards/tournament-match-card.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,QAAQ,EACR,WAAW,GAEZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,KAAK,GACN,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;AAiBvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAkD/B,CAAA;AAhDC;IADC,sBAAsB,EAAE;;+CACd;AAGX;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,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACvC;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;qDAC1B;AAGjB;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,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;qDACtB;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAShB;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9E,UAAU,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,cAAc;iDAAC;AAOrB;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjF,UAAU,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAC1B,eAAe;kDAAC;AAOvB;IAFC,SAAS,CAAC,GAAG,EAAE,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC1D,UAAU,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,gBAAgB;mDAAC;AAjDd,mBAAmB;IAJ/B,MAAM,CAAC,wBAAwB,CAAC;IAChC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC;IAClB,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjB,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;GACP,mBAAmB,CAkD/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-match-goals/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-match-goals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|