@natrave/shared-entities 1.1.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-auth/index.js +5 -6
- package/dist/app-auth/password-resets/index.js +4 -2
- package/dist/app-auth/password-resets/password-reset.entity.js +48 -45
- package/dist/app-auth/refresh-tokens/index.js +4 -2
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js +48 -45
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js +9 -7
- package/dist/app-auth/user-auth-providers/index.js +6 -3
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +53 -50
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js +8 -6
- package/dist/app-auth/user-verifications/index.js +6 -3
- package/dist/app-auth/user-verifications/user-verification.entity.js +57 -57
- package/dist/app-auth/users/index.js +4 -2
- package/dist/app-auth/users/user.entity.js +123 -133
- package/dist/app-auth/users/utils/format-data.utils.js +19 -17
- package/dist/common/utils/decimal-transformer.utils.js +15 -14
- package/dist/facilities/addresses/address.entity.js +79 -84
- package/dist/facilities/addresses/index.js +4 -2
- package/dist/facilities/facilities/enums/facility-status.enum.js +9 -7
- package/dist/facilities/facilities/facility.entity.js +118 -121
- package/dist/facilities/facilities/index.js +6 -3
- package/dist/facilities/facilities/utils/sanititze.utils.js +12 -10
- package/dist/facilities/facility-images/facility-image.entity.js +60 -56
- package/dist/facilities/facility-images/index.js +4 -2
- package/dist/facilities/facility-owners/facility-owner.entity.js +64 -62
- package/dist/facilities/facility-owners/index.js +4 -2
- package/dist/facilities/facility-owners/utils/sanitize.utils.js +10 -8
- package/dist/facilities/fields/enums/surface-type.enum.js +11 -9
- package/dist/facilities/fields/field.entity.js +69 -69
- package/dist/facilities/fields/index.js +6 -3
- package/dist/facilities/index.js +5 -6
- package/dist/index.js +4 -5
- package/dist/payments/index.js +3 -4
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js +7 -5
- package/dist/payments/payment-providers/index.js +6 -3
- package/dist/payments/payment-providers/payment-provider.entity.js +57 -47
- package/dist/payments/payments/enums/payment-method.enum.js +8 -6
- package/dist/payments/payments/enums/payment-status.enum.js +13 -11
- package/dist/payments/payments/index.js +8 -4
- package/dist/payments/payments/payment.entity.js +79 -82
- package/dist/payments/user-payment-providers/index.js +4 -2
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js +62 -58
- package/dist/tournaments/index.js +12 -13
- package/dist/tournaments/tournament-facilities/index.js +4 -2
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +62 -58
- package/dist/tournaments/tournament-format-configs/index.js +4 -2
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +70 -73
- package/dist/tournaments/tournament-match-cards/index.js +4 -2
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +74 -72
- package/dist/tournaments/tournament-match-goals/index.js +4 -2
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +74 -76
- package/dist/tournaments/tournament-match-schemas/index.js +4 -2
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +47 -44
- package/dist/tournaments/tournament-matches/index.js +4 -2
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +89 -94
- package/dist/tournaments/tournament-payments/index.js +4 -2
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +57 -56
- package/dist/tournaments/tournament-players/index.js +4 -2
- package/dist/tournaments/tournament-players/tournament-player.entity.js +75 -73
- package/dist/tournaments/tournament-prize-rules/index.js +4 -2
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +56 -52
- package/dist/tournaments/tournament-rules/index.js +4 -2
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js +73 -74
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +8 -6
- package/dist/tournaments/tournament-teams/index.js +6 -3
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +93 -97
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js +5 -3
- package/dist/tournaments/tournaments/index.js +4 -2
- package/dist/tournaments/tournaments/tournament.entity.js +129 -144
- package/package.json +4 -2
- package/dist/app-auth/index.d.ts +0 -6
- package/dist/app-auth/index.d.ts.map +0 -1
- package/dist/app-auth/index.js.map +0 -1
- package/dist/app-auth/password-resets/index.d.ts +0 -2
- package/dist/app-auth/password-resets/index.d.ts.map +0 -1
- package/dist/app-auth/password-resets/index.js.map +0 -1
- package/dist/app-auth/password-resets/password-reset.entity.d.ts +0 -11
- package/dist/app-auth/password-resets/password-reset.entity.d.ts.map +0 -1
- package/dist/app-auth/password-resets/password-reset.entity.js.map +0 -1
- package/dist/app-auth/refresh-tokens/index.d.ts +0 -2
- package/dist/app-auth/refresh-tokens/index.d.ts.map +0 -1
- package/dist/app-auth/refresh-tokens/index.js.map +0 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts +0 -11
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +0 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js.map +0 -1
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts +0 -6
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/enums/auth-provider.enum.js.map +0 -1
- package/dist/app-auth/user-auth-providers/index.d.ts +0 -3
- package/dist/app-auth/user-auth-providers/index.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/index.js.map +0 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts +0 -13
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +0 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js.map +0 -1
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts +0 -5
- package/dist/app-auth/user-verifications/enums/verification-type.enum.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/enums/verification-type.enum.js.map +0 -1
- package/dist/app-auth/user-verifications/index.d.ts +0 -3
- package/dist/app-auth/user-verifications/index.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/index.js.map +0 -1
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts +0 -15
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +0 -1
- package/dist/app-auth/user-verifications/user-verification.entity.js.map +0 -1
- package/dist/app-auth/users/index.d.ts +0 -2
- package/dist/app-auth/users/index.d.ts.map +0 -1
- package/dist/app-auth/users/index.js.map +0 -1
- package/dist/app-auth/users/user.entity.d.ts +0 -29
- package/dist/app-auth/users/user.entity.d.ts.map +0 -1
- package/dist/app-auth/users/user.entity.js.map +0 -1
- package/dist/app-auth/users/utils/format-data.utils.d.ts +0 -7
- package/dist/app-auth/users/utils/format-data.utils.d.ts.map +0 -1
- package/dist/app-auth/users/utils/format-data.utils.js.map +0 -1
- package/dist/common/utils/decimal-transformer.utils.d.ts +0 -5
- package/dist/common/utils/decimal-transformer.utils.d.ts.map +0 -1
- package/dist/common/utils/decimal-transformer.utils.js.map +0 -1
- package/dist/facilities/addresses/address.entity.d.ts +0 -18
- package/dist/facilities/addresses/address.entity.d.ts.map +0 -1
- package/dist/facilities/addresses/address.entity.js.map +0 -1
- package/dist/facilities/addresses/index.d.ts +0 -2
- package/dist/facilities/addresses/index.d.ts.map +0 -1
- package/dist/facilities/addresses/index.js.map +0 -1
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts +0 -6
- package/dist/facilities/facilities/enums/facility-status.enum.d.ts.map +0 -1
- package/dist/facilities/facilities/enums/facility-status.enum.js.map +0 -1
- package/dist/facilities/facilities/facility.entity.d.ts +0 -26
- package/dist/facilities/facilities/facility.entity.d.ts.map +0 -1
- package/dist/facilities/facilities/facility.entity.js.map +0 -1
- package/dist/facilities/facilities/index.d.ts +0 -3
- package/dist/facilities/facilities/index.d.ts.map +0 -1
- package/dist/facilities/facilities/index.js.map +0 -1
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts +0 -5
- package/dist/facilities/facilities/utils/sanititze.utils.d.ts.map +0 -1
- package/dist/facilities/facilities/utils/sanititze.utils.js.map +0 -1
- package/dist/facilities/facility-images/facility-image.entity.d.ts +0 -12
- package/dist/facilities/facility-images/facility-image.entity.d.ts.map +0 -1
- package/dist/facilities/facility-images/facility-image.entity.js.map +0 -1
- package/dist/facilities/facility-images/index.d.ts +0 -2
- package/dist/facilities/facility-images/index.d.ts.map +0 -1
- package/dist/facilities/facility-images/index.js.map +0 -1
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts +0 -13
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +0 -1
- package/dist/facilities/facility-owners/facility-owner.entity.js.map +0 -1
- package/dist/facilities/facility-owners/index.d.ts +0 -2
- package/dist/facilities/facility-owners/index.d.ts.map +0 -1
- package/dist/facilities/facility-owners/index.js.map +0 -1
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts +0 -5
- package/dist/facilities/facility-owners/utils/sanitize.utils.d.ts.map +0 -1
- package/dist/facilities/facility-owners/utils/sanitize.utils.js.map +0 -1
- package/dist/facilities/fields/enums/surface-type.enum.d.ts +0 -8
- package/dist/facilities/fields/enums/surface-type.enum.d.ts.map +0 -1
- package/dist/facilities/fields/enums/surface-type.enum.js.map +0 -1
- package/dist/facilities/fields/field.entity.d.ts +0 -18
- package/dist/facilities/fields/field.entity.d.ts.map +0 -1
- package/dist/facilities/fields/field.entity.js.map +0 -1
- package/dist/facilities/fields/index.d.ts +0 -3
- package/dist/facilities/fields/index.d.ts.map +0 -1
- package/dist/facilities/fields/index.js.map +0 -1
- package/dist/facilities/index.d.ts +0 -6
- package/dist/facilities/index.d.ts.map +0 -1
- package/dist/facilities/index.js.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/payments/index.d.ts +0 -4
- package/dist/payments/index.d.ts.map +0 -1
- package/dist/payments/index.js.map +0 -1
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts +0 -4
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.d.ts.map +0 -1
- package/dist/payments/payment-providers/enums/payment-provider-name.enum.js.map +0 -1
- package/dist/payments/payment-providers/index.d.ts +0 -3
- package/dist/payments/payment-providers/index.d.ts.map +0 -1
- package/dist/payments/payment-providers/index.js.map +0 -1
- package/dist/payments/payment-providers/payment-provider.entity.d.ts +0 -10
- package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +0 -1
- package/dist/payments/payment-providers/payment-provider.entity.js.map +0 -1
- package/dist/payments/payments/enums/payment-method.enum.d.ts +0 -5
- package/dist/payments/payments/enums/payment-method.enum.d.ts.map +0 -1
- package/dist/payments/payments/enums/payment-method.enum.js.map +0 -1
- package/dist/payments/payments/enums/payment-status.enum.d.ts +0 -10
- package/dist/payments/payments/enums/payment-status.enum.d.ts.map +0 -1
- package/dist/payments/payments/enums/payment-status.enum.js.map +0 -1
- package/dist/payments/payments/index.d.ts +0 -4
- package/dist/payments/payments/index.d.ts.map +0 -1
- package/dist/payments/payments/index.js.map +0 -1
- package/dist/payments/payments/payment.entity.d.ts +0 -19
- package/dist/payments/payments/payment.entity.d.ts.map +0 -1
- package/dist/payments/payments/payment.entity.js.map +0 -1
- package/dist/payments/user-payment-providers/index.d.ts +0 -2
- package/dist/payments/user-payment-providers/index.d.ts.map +0 -1
- package/dist/payments/user-payment-providers/index.js.map +0 -1
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts +0 -13
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +0 -1
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js.map +0 -1
- package/dist/tournaments/index.d.ts +0 -13
- package/dist/tournaments/index.d.ts.map +0 -1
- package/dist/tournaments/index.js.map +0 -1
- package/dist/tournaments/tournament-facilities/index.d.ts +0 -2
- package/dist/tournaments/tournament-facilities/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-facilities/index.js.map +0 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts +0 -14
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js.map +0 -1
- package/dist/tournaments/tournament-format-configs/index.d.ts +0 -2
- package/dist/tournaments/tournament-format-configs/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-format-configs/index.js.map +0 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts +0 -15
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-cards/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-cards/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-cards/index.js.map +0 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts +0 -19
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-goals/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-goals/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-goals/index.js.map +0 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts +0 -20
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js.map +0 -1
- package/dist/tournaments/tournament-match-schemas/index.d.ts +0 -2
- package/dist/tournaments/tournament-match-schemas/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-schemas/index.js.map +0 -1
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts +0 -12
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js.map +0 -1
- package/dist/tournaments/tournament-matches/index.d.ts +0 -2
- package/dist/tournaments/tournament-matches/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-matches/index.js.map +0 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +0 -25
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js.map +0 -1
- package/dist/tournaments/tournament-payments/index.d.ts +0 -2
- package/dist/tournaments/tournament-payments/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-payments/index.js.map +0 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +0 -16
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js.map +0 -1
- package/dist/tournaments/tournament-players/index.d.ts +0 -2
- package/dist/tournaments/tournament-players/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-players/index.js.map +0 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts +0 -19
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.js.map +0 -1
- package/dist/tournaments/tournament-prize-rules/index.d.ts +0 -2
- package/dist/tournaments/tournament-prize-rules/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-prize-rules/index.js.map +0 -1
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts +0 -13
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js.map +0 -1
- package/dist/tournaments/tournament-rules/index.d.ts +0 -2
- package/dist/tournaments/tournament-rules/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-rules/index.js.map +0 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts +0 -17
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js.map +0 -1
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +0 -5
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js.map +0 -1
- package/dist/tournaments/tournament-teams/index.d.ts +0 -3
- package/dist/tournaments/tournament-teams/index.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/index.js.map +0 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +0 -26
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js.map +0 -1
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts +0 -2
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/utils/invite-code-generator.js.map +0 -1
- package/dist/tournaments/tournaments/index.d.ts +0 -2
- package/dist/tournaments/tournaments/index.d.ts.map +0 -1
- package/dist/tournaments/tournaments/index.js.map +0 -1
- package/dist/tournaments/tournaments/tournament.entity.d.ts +0 -39
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +0 -1
- package/dist/tournaments/tournaments/tournament.entity.js.map +0 -1
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
Unique,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { User } from "../../app-auth";
|
|
23
|
+
import { PaymentProvider } from "../payment-providers";
|
|
24
|
+
let UserPaymentProvider = class {
|
|
9
25
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], UserPaymentProvider.prototype, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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'])
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn()
|
|
28
|
+
], UserPaymentProvider.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ type: "uuid", name: "user_id" })
|
|
31
|
+
], UserPaymentProvider.prototype, "userId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ type: "int", name: "payment_provider_id" })
|
|
34
|
+
], UserPaymentProvider.prototype, "paymentProviderId", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ type: "text", unique: true })
|
|
37
|
+
], UserPaymentProvider.prototype, "providerCustomerId", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
40
|
+
], UserPaymentProvider.prototype, "createdAt", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
43
|
+
], UserPaymentProvider.prototype, "updatedAt", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
ManyToOne(() => User, (user) => user.userPaymentProviders, {
|
|
46
|
+
onDelete: "CASCADE"
|
|
47
|
+
}),
|
|
48
|
+
JoinColumn({ name: "user_id" })
|
|
49
|
+
], UserPaymentProvider.prototype, "user", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
ManyToOne(() => PaymentProvider, (provider) => provider.userPaymentProviders, {
|
|
52
|
+
onDelete: "CASCADE"
|
|
53
|
+
}),
|
|
54
|
+
JoinColumn({ name: "payment_provider_id" })
|
|
55
|
+
], UserPaymentProvider.prototype, "paymentProvider", 2);
|
|
56
|
+
UserPaymentProvider = __decorateClass([
|
|
57
|
+
Entity("user_payment_providers"),
|
|
58
|
+
Unique(["providerCustomerId"]),
|
|
59
|
+
Unique(["userId", "paymentProviderId"]),
|
|
60
|
+
Index(["userId", "paymentProviderId"]),
|
|
61
|
+
Index(["providerCustomerId"])
|
|
59
62
|
], UserPaymentProvider);
|
|
60
|
-
export {
|
|
61
|
-
|
|
63
|
+
export {
|
|
64
|
+
UserPaymentProvider
|
|
65
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./tournament-facilities.js";
|
|
2
|
+
export * from "./tournament-format-configs.js";
|
|
3
|
+
export * from "./tournament-match-cards.js";
|
|
4
|
+
export * from "./tournament-match-goals.js";
|
|
5
|
+
export * from "./tournament-match-schemas.js";
|
|
6
|
+
export * from "./tournament-matches.js";
|
|
7
|
+
export * from "./tournament-payments.js";
|
|
8
|
+
export * from "./tournament-players.js";
|
|
9
|
+
export * from "./tournament-prize-rules.js";
|
|
10
|
+
export * from "./tournament-rules.js";
|
|
11
|
+
export * from "./tournament-teams.js";
|
|
12
|
+
export * from "./tournaments.js";
|
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
Unique,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { Facility } from "../../facilities";
|
|
23
|
+
import { Tournament } from "../tournaments";
|
|
24
|
+
let TournamentFacility = class {
|
|
9
25
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], TournamentFacility.prototype, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
], TournamentFacility.prototype, "
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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'])
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn()
|
|
28
|
+
], TournamentFacility.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ name: "facility_id", type: "int" })
|
|
31
|
+
], TournamentFacility.prototype, "facilityId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({ name: "tournament_id", type: "int" })
|
|
34
|
+
], TournamentFacility.prototype, "tournamentId", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({ name: "is_primary", type: "boolean", default: false })
|
|
37
|
+
], TournamentFacility.prototype, "isPrimary", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
40
|
+
], TournamentFacility.prototype, "createdAt", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
43
|
+
], TournamentFacility.prototype, "updatedAt", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
ManyToOne(() => Tournament, (tournament) => tournament.tournamentFacilities, {
|
|
46
|
+
onDelete: "CASCADE",
|
|
47
|
+
onUpdate: "CASCADE"
|
|
48
|
+
}),
|
|
49
|
+
JoinColumn({ name: "tournament_id" })
|
|
50
|
+
], TournamentFacility.prototype, "tournament", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
ManyToOne(() => Facility, (facility) => facility.tournamentFacilities, {
|
|
53
|
+
onDelete: "CASCADE",
|
|
54
|
+
onUpdate: "CASCADE"
|
|
55
|
+
}),
|
|
56
|
+
JoinColumn({ name: "facility_id" })
|
|
57
|
+
], TournamentFacility.prototype, "facility", 2);
|
|
58
|
+
TournamentFacility = __decorateClass([
|
|
59
|
+
Entity("tournament_facilities"),
|
|
60
|
+
Unique("tournament_facility_unique", ["tournamentId", "facilityId"]),
|
|
61
|
+
Index("tournament_is_primary_index", ["tournamentId", "isPrimary"])
|
|
59
62
|
], TournamentFacility);
|
|
60
|
-
export {
|
|
61
|
-
|
|
63
|
+
export {
|
|
64
|
+
TournamentFacility
|
|
65
|
+
};
|
|
@@ -1,76 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
KnockoutPhase,
|
|
13
|
+
MatchLegMode,
|
|
14
|
+
TournamentFormat
|
|
15
|
+
} from "@natrave/tournaments-service-types";
|
|
16
|
+
import { Column, CreateDateColumn, Entity, JoinColumn, OneToOne, UpdateDateColumn } from "typeorm";
|
|
17
|
+
import { Tournament } from "../tournaments";
|
|
18
|
+
let TournamentFormatConfig = class {
|
|
9
19
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], TournamentFormatConfig.prototype, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
], TournamentFormatConfig.prototype, "
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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')
|
|
20
|
+
__decorateClass([
|
|
21
|
+
Column({ name: "tournament_id", type: "int", unique: true })
|
|
22
|
+
], TournamentFormatConfig.prototype, "tournamentId", 2);
|
|
23
|
+
__decorateClass([
|
|
24
|
+
Column({ type: "enum", enum: TournamentFormat })
|
|
25
|
+
], TournamentFormatConfig.prototype, "format", 2);
|
|
26
|
+
__decorateClass([
|
|
27
|
+
Column({ type: "int", nullable: true, default: null })
|
|
28
|
+
], TournamentFormatConfig.prototype, "numberOfGroups", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({
|
|
31
|
+
name: "initial_phase_match_mode",
|
|
32
|
+
type: "enum",
|
|
33
|
+
enum: MatchLegMode,
|
|
34
|
+
nullable: true,
|
|
35
|
+
default: null
|
|
36
|
+
})
|
|
37
|
+
], TournamentFormatConfig.prototype, "initialPhaseMatchMode", 2);
|
|
38
|
+
__decorateClass([
|
|
39
|
+
Column({
|
|
40
|
+
name: "knockout_start_phase",
|
|
41
|
+
type: "enum",
|
|
42
|
+
enum: KnockoutPhase,
|
|
43
|
+
nullable: true,
|
|
44
|
+
default: null
|
|
45
|
+
})
|
|
46
|
+
], TournamentFormatConfig.prototype, "knockoutStartPhase", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
Column({
|
|
49
|
+
name: "knockout_match_mode",
|
|
50
|
+
type: "enum",
|
|
51
|
+
enum: MatchLegMode,
|
|
52
|
+
nullable: true,
|
|
53
|
+
default: null
|
|
54
|
+
})
|
|
55
|
+
], TournamentFormatConfig.prototype, "knockoutMatchMode", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
58
|
+
], TournamentFormatConfig.prototype, "createdAt", 2);
|
|
59
|
+
__decorateClass([
|
|
60
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
61
|
+
], TournamentFormatConfig.prototype, "updatedAt", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
OneToOne(() => Tournament, (tournament) => tournament.format, {
|
|
64
|
+
onDelete: "CASCADE"
|
|
65
|
+
}),
|
|
66
|
+
JoinColumn({ name: "tournament_id" })
|
|
67
|
+
], TournamentFormatConfig.prototype, "tournament", 2);
|
|
68
|
+
TournamentFormatConfig = __decorateClass([
|
|
69
|
+
Entity("tournament_format_configs")
|
|
74
70
|
], TournamentFormatConfig);
|
|
75
|
-
export {
|
|
76
|
-
|
|
71
|
+
export {
|
|
72
|
+
TournamentFormatConfig
|
|
73
|
+
};
|
|
@@ -1,75 +1,77 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
6
10
|
};
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
import {
|
|
12
|
+
CardType,
|
|
13
|
+
MatchPeriod
|
|
14
|
+
} from "@natrave/tournaments-service-types";
|
|
15
|
+
import {
|
|
16
|
+
Column,
|
|
17
|
+
CreateDateColumn,
|
|
18
|
+
Entity,
|
|
19
|
+
Index,
|
|
20
|
+
JoinColumn,
|
|
21
|
+
ManyToOne,
|
|
22
|
+
PrimaryGeneratedColumn,
|
|
23
|
+
UpdateDateColumn
|
|
24
|
+
} from "typeorm";
|
|
25
|
+
import { TournamentMatch } from "../tournament-matches";
|
|
26
|
+
import { TournamentPlayer } from "../tournament-players";
|
|
27
|
+
import { TournamentTeam } from "../tournament-teams";
|
|
28
|
+
let TournamentMatchCard = class {
|
|
9
29
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
], TournamentMatchCard.prototype, "
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
], TournamentMatchCard.prototype, "
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
], TournamentMatchCard.prototype, "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
], TournamentMatchCard.prototype, "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
], TournamentMatchCard.prototype, "
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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'])
|
|
30
|
+
__decorateClass([
|
|
31
|
+
PrimaryGeneratedColumn()
|
|
32
|
+
], TournamentMatchCard.prototype, "id", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
Column({ type: "int", nullable: true })
|
|
35
|
+
], TournamentMatchCard.prototype, "minute", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({ type: "enum", enum: MatchPeriod, nullable: true })
|
|
38
|
+
], TournamentMatchCard.prototype, "period", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({ name: "player_id", type: "int" })
|
|
41
|
+
], TournamentMatchCard.prototype, "playerId", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({ name: "team_id", type: "int" })
|
|
44
|
+
], TournamentMatchCard.prototype, "teamId", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({ name: "match_id", type: "int" })
|
|
47
|
+
], TournamentMatchCard.prototype, "matchId", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({ type: "enum", enum: CardType })
|
|
50
|
+
], TournamentMatchCard.prototype, "cardType", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
53
|
+
], TournamentMatchCard.prototype, "createdAt", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
56
|
+
], TournamentMatchCard.prototype, "updatedAt", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
ManyToOne(() => TournamentTeam, (team) => team.cards, { onDelete: "CASCADE" }),
|
|
59
|
+
JoinColumn({ name: "team_id" })
|
|
60
|
+
], TournamentMatchCard.prototype, "team", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
ManyToOne(() => TournamentMatch, (match) => match.cards, { onDelete: "CASCADE" }),
|
|
63
|
+
JoinColumn({ name: "match_id" })
|
|
64
|
+
], TournamentMatchCard.prototype, "match", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
ManyToOne(() => TournamentPlayer, { onDelete: "CASCADE" }),
|
|
67
|
+
JoinColumn({ name: "player_id" })
|
|
68
|
+
], TournamentMatchCard.prototype, "player", 2);
|
|
69
|
+
TournamentMatchCard = __decorateClass([
|
|
70
|
+
Entity("tournament_match_cards"),
|
|
71
|
+
Index(["matchId"]),
|
|
72
|
+
Index(["teamId"]),
|
|
73
|
+
Index(["playerId"])
|
|
73
74
|
], TournamentMatchCard);
|
|
74
|
-
export {
|
|
75
|
-
|
|
75
|
+
export {
|
|
76
|
+
TournamentMatchCard
|
|
77
|
+
};
|