@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,72 +1,72 @@
|
|
|
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
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
OneToMany,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
Unique,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { TournamentMatch } from "../../tournaments";
|
|
23
|
+
import { Facility } from "../facilities";
|
|
24
|
+
import { FieldSurfaceType } from "./enums/surface-type.enum.js";
|
|
25
|
+
let Field = class {
|
|
9
26
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], Field.prototype, "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
], Field.prototype, "
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Column({ type: 'decimal', precision: 5, scale: 2 }),
|
|
53
|
-
__metadata("design:type", Number)
|
|
54
|
-
], Field.prototype, "width", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
Column({ name: 'is_indoor', type: 'boolean', default: false }),
|
|
57
|
-
__metadata("design:type", Boolean)
|
|
58
|
-
], Field.prototype, "isIndoor", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
Column({ name: 'recommended_players_per_team', type: 'int' }),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], Field.prototype, "recommendedPlayersPerTeam", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
OneToMany(() => TournamentMatch, (tournamentMatch) => tournamentMatch.field),
|
|
65
|
-
__metadata("design:type", Array)
|
|
66
|
-
], Field.prototype, "tournamentMatches", void 0);
|
|
67
|
-
Field = __decorate([
|
|
68
|
-
Entity('fields'),
|
|
69
|
-
Unique(['name', 'facilityId'])
|
|
27
|
+
__decorateClass([
|
|
28
|
+
PrimaryGeneratedColumn()
|
|
29
|
+
], Field.prototype, "id", 2);
|
|
30
|
+
__decorateClass([
|
|
31
|
+
Column({ name: "facility_id", type: "int" })
|
|
32
|
+
], Field.prototype, "facilityId", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
ManyToOne(() => Facility, (facility) => facility.fields, {
|
|
35
|
+
onDelete: "CASCADE"
|
|
36
|
+
}),
|
|
37
|
+
JoinColumn({ name: "facility_id" })
|
|
38
|
+
], Field.prototype, "facility", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
41
|
+
], Field.prototype, "createdAt", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
44
|
+
], Field.prototype, "updatedAt", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
Column({ type: "varchar", length: 255 })
|
|
47
|
+
], Field.prototype, "name", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({ name: "surface_type", type: "enum", enum: FieldSurfaceType })
|
|
50
|
+
], Field.prototype, "surfaceType", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
Column({ type: "decimal", precision: 5, scale: 2 })
|
|
53
|
+
], Field.prototype, "length", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({ type: "decimal", precision: 5, scale: 2 })
|
|
56
|
+
], Field.prototype, "width", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
Column({ name: "is_indoor", type: "boolean", default: false })
|
|
59
|
+
], Field.prototype, "isIndoor", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
Column({ name: "recommended_players_per_team", type: "int" })
|
|
62
|
+
], Field.prototype, "recommendedPlayersPerTeam", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
OneToMany(() => TournamentMatch, (tournamentMatch) => tournamentMatch.field)
|
|
65
|
+
], Field.prototype, "tournamentMatches", 2);
|
|
66
|
+
Field = __decorateClass([
|
|
67
|
+
Entity("fields"),
|
|
68
|
+
Unique(["name", "facilityId"])
|
|
70
69
|
], Field);
|
|
71
|
-
export {
|
|
72
|
-
|
|
70
|
+
export {
|
|
71
|
+
Field
|
|
72
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Field } from "./field.entity.js";
|
|
2
|
+
import { FieldSurfaceType } from "./enums/surface-type.enum.js";
|
|
3
|
+
export {
|
|
4
|
+
Field,
|
|
5
|
+
FieldSurfaceType
|
|
6
|
+
};
|
package/dist/facilities/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./facility-owners.js";
|
|
2
|
+
export * from "./addresses.js";
|
|
3
|
+
export * from "./fields.js";
|
|
4
|
+
export * from "./facility-images.js";
|
|
5
|
+
export * from "./facilities.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./tournaments.js";
|
|
2
|
+
export * from "./app-auth.js";
|
|
3
|
+
export * from "./payments.js";
|
|
4
|
+
export * from "./facilities.js";
|
package/dist/payments/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./payment-providers.js";
|
|
2
|
+
export * from "./user-payment-providers.js";
|
|
3
|
+
export * from "./payments.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})(PaymentProviderName ||
|
|
5
|
-
|
|
1
|
+
var PaymentProviderName = /* @__PURE__ */ ((PaymentProviderName2) => {
|
|
2
|
+
PaymentProviderName2["PAGARME"] = "pagarme";
|
|
3
|
+
return PaymentProviderName2;
|
|
4
|
+
})(PaymentProviderName || {});
|
|
5
|
+
export {
|
|
6
|
+
PaymentProviderName
|
|
7
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PaymentProviderName } from "./enums/payment-provider-name.enum.js";
|
|
2
|
+
import { PaymentProvider } from "./payment-provider.entity.js";
|
|
3
|
+
export {
|
|
4
|
+
PaymentProvider,
|
|
5
|
+
PaymentProviderName
|
|
6
|
+
};
|
|
@@ -1,50 +1,60 @@
|
|
|
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
|
+
OneToMany,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
Unique,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { UserPaymentProvider } from "../user-payment-providers";
|
|
22
|
+
import { PaymentProviderName } from "./enums/payment-provider-name.enum.js";
|
|
23
|
+
let PaymentProvider = class {
|
|
9
24
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
], PaymentProvider.prototype, "
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], PaymentProvider.prototype, "userPaymentProviders", void 0);
|
|
44
|
-
PaymentProvider = __decorate([
|
|
45
|
-
Entity('payment_providers'),
|
|
46
|
-
Unique(['name']),
|
|
47
|
-
Index(['name'])
|
|
25
|
+
__decorateClass([
|
|
26
|
+
PrimaryGeneratedColumn()
|
|
27
|
+
], PaymentProvider.prototype, "id", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({
|
|
30
|
+
type: "enum",
|
|
31
|
+
enum: PaymentProviderName,
|
|
32
|
+
unique: true
|
|
33
|
+
})
|
|
34
|
+
], PaymentProvider.prototype, "name", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
CreateDateColumn({
|
|
37
|
+
name: "created_at",
|
|
38
|
+
type: "timestamptz"
|
|
39
|
+
})
|
|
40
|
+
], PaymentProvider.prototype, "createdAt", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
43
|
+
], PaymentProvider.prototype, "updatedAt", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
OneToMany(
|
|
46
|
+
() => UserPaymentProvider,
|
|
47
|
+
(userPaymentProvider) => userPaymentProvider.paymentProvider,
|
|
48
|
+
{
|
|
49
|
+
cascade: true
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
], PaymentProvider.prototype, "userPaymentProviders", 2);
|
|
53
|
+
PaymentProvider = __decorateClass([
|
|
54
|
+
Entity("payment_providers"),
|
|
55
|
+
Unique(["name"]),
|
|
56
|
+
Index(["name"])
|
|
48
57
|
], PaymentProvider);
|
|
49
|
-
export {
|
|
50
|
-
|
|
58
|
+
export {
|
|
59
|
+
PaymentProvider
|
|
60
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(PaymentMethod ||
|
|
6
|
-
|
|
1
|
+
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
2
|
+
PaymentMethod2["PIX"] = "pix";
|
|
3
|
+
PaymentMethod2["CREDIT_CARD"] = "credit_card";
|
|
4
|
+
return PaymentMethod2;
|
|
5
|
+
})(PaymentMethod || {});
|
|
6
|
+
export {
|
|
7
|
+
PaymentMethod
|
|
8
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(PaymentStatus ||
|
|
11
|
-
|
|
1
|
+
var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
2
|
+
PaymentStatus2["PENDING"] = "PENDING";
|
|
3
|
+
PaymentStatus2["PAID"] = "PAID";
|
|
4
|
+
PaymentStatus2["FAILED"] = "FAILED";
|
|
5
|
+
PaymentStatus2["EXPIRED"] = "EXPIRED";
|
|
6
|
+
PaymentStatus2["CANCELED"] = "CANCELED";
|
|
7
|
+
PaymentStatus2["REFUNDED"] = "REFUNDED";
|
|
8
|
+
PaymentStatus2["PROCESSING"] = "PROCESSING";
|
|
9
|
+
return PaymentStatus2;
|
|
10
|
+
})(PaymentStatus || {});
|
|
11
|
+
export {
|
|
12
|
+
PaymentStatus
|
|
13
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Payment } from "./payment.entity.js";
|
|
2
|
+
import { PaymentMethod } from "./enums/payment-method.enum.js";
|
|
3
|
+
import { PaymentStatus } from "./enums/payment-status.enum.js";
|
|
4
|
+
export {
|
|
5
|
+
Payment,
|
|
6
|
+
PaymentMethod,
|
|
7
|
+
PaymentStatus
|
|
8
|
+
};
|
|
@@ -1,85 +1,82 @@
|
|
|
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
|
+
OneToMany,
|
|
16
|
+
PrimaryGeneratedColumn,
|
|
17
|
+
UpdateDateColumn
|
|
18
|
+
} from "typeorm";
|
|
19
|
+
import { TournamentPayment } from "../../tournaments";
|
|
20
|
+
import { PaymentProviderName } from "../payment-providers";
|
|
21
|
+
import { PaymentMethod } from "./enums/payment-method.enum.js";
|
|
22
|
+
import { PaymentStatus } from "./enums/payment-status.enum.js";
|
|
23
|
+
let Payment = class {
|
|
9
24
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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')
|
|
25
|
+
__decorateClass([
|
|
26
|
+
PrimaryGeneratedColumn()
|
|
27
|
+
], Payment.prototype, "id", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({ name: "external_id", type: "varchar", length: 255, nullable: true })
|
|
30
|
+
], Payment.prototype, "externalId", 2);
|
|
31
|
+
__decorateClass([
|
|
32
|
+
Column({ type: "int" })
|
|
33
|
+
], Payment.prototype, "amount", 2);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
Column({
|
|
36
|
+
name: "payment_method",
|
|
37
|
+
type: "enum",
|
|
38
|
+
enum: PaymentMethod
|
|
39
|
+
})
|
|
40
|
+
], Payment.prototype, "paymentMethod", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({
|
|
43
|
+
type: "enum",
|
|
44
|
+
enum: PaymentStatus,
|
|
45
|
+
enumName: "PaymentStatus",
|
|
46
|
+
default: PaymentStatus.PENDING
|
|
47
|
+
})
|
|
48
|
+
], Payment.prototype, "status", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
Column({
|
|
51
|
+
type: "enum",
|
|
52
|
+
enum: PaymentProviderName,
|
|
53
|
+
enumName: "PaymentProviderName",
|
|
54
|
+
default: PaymentProviderName.PAGARME
|
|
55
|
+
})
|
|
56
|
+
], Payment.prototype, "paymentProviderName", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
Column({ name: "qr_code_url", type: "text", nullable: true })
|
|
59
|
+
], Payment.prototype, "qrCodeUrl", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
Column({ name: "qr_code", type: "text", nullable: true })
|
|
62
|
+
], Payment.prototype, "qrCode", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
Column({ name: "expires_at", type: "timestamptz", nullable: true })
|
|
65
|
+
], Payment.prototype, "expiresAt", 2);
|
|
66
|
+
__decorateClass([
|
|
67
|
+
CreateDateColumn({ name: "created_at", type: "timestamptz" })
|
|
68
|
+
], Payment.prototype, "createdAt", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
UpdateDateColumn({ name: "updated_at", type: "timestamptz" })
|
|
71
|
+
], Payment.prototype, "updatedAt", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
OneToMany(() => TournamentPayment, (tournamentPayment) => tournamentPayment.payment, {
|
|
74
|
+
cascade: true
|
|
75
|
+
})
|
|
76
|
+
], Payment.prototype, "tournamentPayments", 2);
|
|
77
|
+
Payment = __decorateClass([
|
|
78
|
+
Entity("payments")
|
|
83
79
|
], Payment);
|
|
84
|
-
export {
|
|
85
|
-
|
|
80
|
+
export {
|
|
81
|
+
Payment
|
|
82
|
+
};
|