@natrave/shared-entities 1.1.3 → 1.1.5
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/{src/app-auth/index.ts → dist/app-auth/index.js} +1 -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/{src/app-auth/password-resets/index.ts → dist/app-auth/password-resets/index.js} +1 -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/{src/app-auth/refresh-tokens/index.ts → dist/app-auth/refresh-tokens/index.js} +1 -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/{src/app-auth/user-auth-providers/index.ts → dist/app-auth/user-auth-providers/index.js} +1 -1
- 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/{src/app-auth/user-verifications/index.ts → dist/app-auth/user-verifications/index.js} +1 -1
- 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/{src/app-auth/users/index.ts → dist/app-auth/users/index.js} +1 -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/{src/facilities/addresses/index.ts → dist/facilities/addresses/index.js} +1 -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/{src/facilities/facilities/index.ts → dist/facilities/facilities/index.js} +1 -1
- 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/{src/facilities/facility-images/index.ts → dist/facilities/facility-images/index.js} +1 -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/{src/facilities/facility-owners/index.ts → dist/facilities/facility-owners/index.js} +1 -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/{src/facilities/fields/index.ts → dist/facilities/fields/index.js} +1 -1
- 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/{src/facilities/index.ts → dist/facilities/index.js} +1 -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/{src/index.ts → dist/index.js} +1 -3
- 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/{src/payments/index.ts → dist/payments/index.js} +1 -2
- 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/{src/payments/payment-providers/index.ts → dist/payments/payment-providers/index.js} +1 -1
- 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/{src/payments/payments/index.ts → dist/payments/payments/index.js} +1 -2
- 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/{src/payments/user-payment-providers/index.ts → dist/payments/user-payment-providers/index.js} +1 -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/{src/tournaments/index.ts → dist/tournaments/index.js} +1 -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/{src/tournaments/tournament-facilities/index.ts → dist/tournaments/tournament-facilities/index.js} +1 -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/{src/tournaments/tournament-format-configs/index.ts → dist/tournaments/tournament-format-configs/index.js} +1 -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/{src/tournaments/tournament-match-cards/index.ts → dist/tournaments/tournament-match-cards/index.js} +1 -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/{src/tournaments/tournament-match-goals/index.ts → dist/tournaments/tournament-match-goals/index.js} +1 -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/{src/tournaments/tournament-match-schemas/index.ts → dist/tournaments/tournament-match-schemas/index.js} +1 -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/{src/tournaments/tournament-matches/index.ts → dist/tournaments/tournament-matches/index.js} +1 -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/{src/tournaments/tournament-payments/index.ts → dist/tournaments/tournament-payments/index.js} +1 -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/{src/tournaments/tournament-players/index.ts → dist/tournaments/tournament-players/index.js} +1 -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/{src/tournaments/tournament-prize-rules/index.ts → dist/tournaments/tournament-prize-rules/index.js} +1 -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/{src/tournaments/tournament-rules/index.ts → dist/tournaments/tournament-rules/index.js} +1 -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/{src/tournaments/tournament-teams/index.ts → dist/tournaments/tournament-teams/index.js} +1 -1
- 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/{src/tournaments/tournaments/index.ts → dist/tournaments/tournaments/index.js} +1 -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 +5 -2
- package/.changeset/README.md +0 -9
- package/.changeset/config.json +0 -11
- package/.github/workflows/release.yml +0 -80
- package/.husky/pre-commit +0 -4
- package/.husky/pre-push +0 -4
- package/.lintstagedrc.json +0 -5
- package/.prettierignore +0 -2
- package/.prettierrc.json +0 -12
- package/CHANGELOG.md +0 -29
- package/eslint.config.js +0 -84
- package/src/app-auth/password-resets/password-reset.entity.ts +0 -52
- package/src/app-auth/refresh-tokens/refresh-token.entity.ts +0 -52
- package/src/app-auth/user-auth-providers/enums/auth-provider.enum.ts +0 -24
- package/src/app-auth/user-auth-providers/user-auth-provider.entity.ts +0 -58
- package/src/app-auth/user-verifications/enums/verification-type.enum.ts +0 -19
- package/src/app-auth/user-verifications/user-verification.entity.ts +0 -62
- package/src/app-auth/users/user.entity.ts +0 -149
- package/src/app-auth/users/utils/format-data.utils.ts +0 -38
- package/src/common/utils/decimal-transformer.utils.ts +0 -13
- package/src/facilities/addresses/address.entity.ts +0 -82
- package/src/facilities/facilities/enums/facility-status.enum.ts +0 -25
- package/src/facilities/facilities/facility.entity.ts +0 -137
- package/src/facilities/facilities/utils/sanititze.utils.ts +0 -19
- package/src/facilities/facility-images/facility-image.entity.ts +0 -64
- package/src/facilities/facility-owners/facility-owner.entity.ts +0 -74
- package/src/facilities/facility-owners/utils/sanitize.utils.ts +0 -16
- package/src/facilities/fields/enums/surface-type.enum.ts +0 -35
- package/src/facilities/fields/field.entity.ts +0 -74
- package/src/payments/payment-providers/enums/payment-provider-name.enum.ts +0 -15
- package/src/payments/payment-providers/payment-provider.entity.ts +0 -61
- package/src/payments/payments/enums/payment-method.enum.ts +0 -20
- package/src/payments/payments/enums/payment-status.enum.ts +0 -45
- package/src/payments/payments/payment.entity.ts +0 -84
- package/src/payments/user-payment-providers/user-payment-provider.entity.ts +0 -73
- package/src/tournaments/tournament-facilities/tournament-facility.entity.ts +0 -67
- package/src/tournaments/tournament-format-configs/tournament-format-config.entity.ts +0 -98
- package/src/tournaments/tournament-match-cards/tournament-match-card.entity.ts +0 -86
- package/src/tournaments/tournament-match-goals/tournament-match-goal.entity.ts +0 -88
- package/src/tournaments/tournament-match-schemas/tournament-match-schema.entity.ts +0 -51
- package/src/tournaments/tournament-matches/tournament-match.entity.ts +0 -120
- package/src/tournaments/tournament-payments/tournament-payment.entity.ts +0 -67
- package/src/tournaments/tournament-players/tournament-player.entity.ts +0 -96
- package/src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts +0 -65
- package/src/tournaments/tournament-rules/tournament-rule.entity.ts +0 -77
- package/src/tournaments/tournament-teams/enums/tournament-team-status.enum.ts +0 -21
- package/src/tournaments/tournament-teams/tournament-team.entity.ts +0 -121
- package/src/tournaments/tournament-teams/utils/invite-code-generator.ts +0 -12
- package/src/tournaments/tournaments/tournament.entity.ts +0 -153
- package/tsconfig.json +0 -29
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { DayOfWeek, ITournament, TournamentGender } from '@natrave/tournaments-service-types';
|
|
2
|
-
import {
|
|
3
|
-
Entity,
|
|
4
|
-
Column,
|
|
5
|
-
PrimaryGeneratedColumn,
|
|
6
|
-
CreateDateColumn,
|
|
7
|
-
UpdateDateColumn,
|
|
8
|
-
OneToMany,
|
|
9
|
-
OneToOne,
|
|
10
|
-
ManyToOne,
|
|
11
|
-
JoinColumn,
|
|
12
|
-
} from 'typeorm';
|
|
13
|
-
|
|
14
|
-
import { TournamentFacility } from 'tournaments/tournament-facilities';
|
|
15
|
-
import { TournamentFormatConfig } from 'tournaments/tournament-format-configs';
|
|
16
|
-
import { TournamentMatchSchema } from 'tournaments/tournament-match-schemas';
|
|
17
|
-
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
18
|
-
import { TournamentPayment } from 'tournaments/tournament-payments';
|
|
19
|
-
import { TournamentPrizeRule } from 'tournaments/tournament-prize-rules';
|
|
20
|
-
import { TournamentRule } from 'tournaments/tournament-rules';
|
|
21
|
-
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Entidade que representa um torneio.
|
|
25
|
-
*
|
|
26
|
-
* @remarks
|
|
27
|
-
* Esta entidade armazena todas as propriedades essenciais de um torneio, como datas, formato, regras,
|
|
28
|
-
* dias de partida, informações de localização e gênero, além das datas de criação e atualização.
|
|
29
|
-
*
|
|
30
|
-
* @public
|
|
31
|
-
*/
|
|
32
|
-
@Entity('tournaments')
|
|
33
|
-
export class Tournament implements ITournament {
|
|
34
|
-
@PrimaryGeneratedColumn()
|
|
35
|
-
id: number;
|
|
36
|
-
|
|
37
|
-
@Column({ type: 'varchar', length: 255 })
|
|
38
|
-
name: string;
|
|
39
|
-
|
|
40
|
-
@Column({ name: 'initial_date', type: 'timestamptz' })
|
|
41
|
-
initialDate: Date;
|
|
42
|
-
|
|
43
|
-
@Column({ name: 'end_date', type: 'timestamptz' })
|
|
44
|
-
endDate: Date;
|
|
45
|
-
|
|
46
|
-
@Column({ type: 'text', nullable: true })
|
|
47
|
-
description?: string | null;
|
|
48
|
-
|
|
49
|
-
@Column({ name: 'tournament_image', type: 'text', nullable: true })
|
|
50
|
-
tournamentImage?: string | null;
|
|
51
|
-
|
|
52
|
-
@Column({ name: 'match_schema_id', type: 'int', nullable: true })
|
|
53
|
-
matchSchemaId?: number | null;
|
|
54
|
-
|
|
55
|
-
@Column({ name: 'rule_id', type: 'int' })
|
|
56
|
-
ruleId: number;
|
|
57
|
-
|
|
58
|
-
@Column({ name: 'format_config_id', type: 'int' })
|
|
59
|
-
formatConfigId: number;
|
|
60
|
-
|
|
61
|
-
@Column({
|
|
62
|
-
name: 'match_days',
|
|
63
|
-
type: 'enum',
|
|
64
|
-
enum: Object.values(DayOfWeek),
|
|
65
|
-
array: true,
|
|
66
|
-
})
|
|
67
|
-
matchDays: DayOfWeek[];
|
|
68
|
-
|
|
69
|
-
@Column({ name: 'price_per_team', type: 'int' })
|
|
70
|
-
pricePerTeam: number;
|
|
71
|
-
|
|
72
|
-
@Column({ name: 'match_start_time', type: 'time' })
|
|
73
|
-
matchStartTime: string;
|
|
74
|
-
|
|
75
|
-
@Column({ name: 'match_end_time', type: 'time' })
|
|
76
|
-
matchEndTime: string;
|
|
77
|
-
|
|
78
|
-
@Column({ type: 'varchar', length: 100 })
|
|
79
|
-
city: string;
|
|
80
|
-
|
|
81
|
-
@Column({ type: 'varchar', length: 2 })
|
|
82
|
-
state: string;
|
|
83
|
-
|
|
84
|
-
@Column({
|
|
85
|
-
type: 'enum',
|
|
86
|
-
enum: Object.values(TournamentGender),
|
|
87
|
-
})
|
|
88
|
-
gender: TournamentGender;
|
|
89
|
-
|
|
90
|
-
@Column({ name: 'deleted_at', type: 'timestamptz', nullable: true })
|
|
91
|
-
deletedAt: Date | null;
|
|
92
|
-
|
|
93
|
-
@CreateDateColumn({ name: 'created_at', type: 'timestamptz' })
|
|
94
|
-
createdAt: Date;
|
|
95
|
-
|
|
96
|
-
@UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' })
|
|
97
|
-
updatedAt: Date;
|
|
98
|
-
|
|
99
|
-
/** RELAÇÕES */
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Relação com o esquema de partidas associado ao torneio.
|
|
103
|
-
*/
|
|
104
|
-
@ManyToOne(() => TournamentMatchSchema, (matchSchema) => matchSchema.tournaments, {
|
|
105
|
-
onDelete: 'CASCADE',
|
|
106
|
-
})
|
|
107
|
-
@JoinColumn({ name: 'match_schema_id' })
|
|
108
|
-
matchSchema: TournamentMatchSchema;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Relação com os times associados ao torneio.
|
|
112
|
-
*/
|
|
113
|
-
@OneToMany(() => TournamentTeam, (team) => team.tournament)
|
|
114
|
-
teams: TournamentTeam[];
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Relação com as regras do torneio.
|
|
118
|
-
*/
|
|
119
|
-
@OneToOne(() => TournamentRule, (rule) => rule.tournament, { cascade: true })
|
|
120
|
-
@JoinColumn({ name: 'rule_id' })
|
|
121
|
-
rule: TournamentRule;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Relação com o formato do torneio.
|
|
125
|
-
*/
|
|
126
|
-
@OneToOne(() => TournamentFormatConfig, (format) => format.tournament, { cascade: true })
|
|
127
|
-
@JoinColumn({ name: 'format_config_id' })
|
|
128
|
-
format: TournamentFormatConfig;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Relação com as regras de premiação associadas ao torneio.
|
|
132
|
-
*/
|
|
133
|
-
@OneToMany(() => TournamentPrizeRule, (prizeRule) => prizeRule.tournament)
|
|
134
|
-
prizeRules: TournamentPrizeRule[];
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Relação com os pagamentos associados ao torneio.
|
|
138
|
-
*/
|
|
139
|
-
@OneToMany(() => TournamentPayment, (payment) => payment.tournament)
|
|
140
|
-
payments: TournamentPayment[];
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Relação com as partidas associadas ao torneio.
|
|
144
|
-
*/
|
|
145
|
-
@OneToMany(() => TournamentMatch, (match) => match.tournament)
|
|
146
|
-
matches: TournamentMatch[];
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Relação com os estabelecimentos associadas ao torneio.
|
|
150
|
-
*/
|
|
151
|
-
@OneToMany(() => TournamentFacility, (facility) => facility.tournament)
|
|
152
|
-
tournamentFacilities: TournamentFacility[];
|
|
153
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "dist",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"target": "ES2021",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"allowSyntheticDefaultImports": true,
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"resolveJsonModule": true,
|
|
16
|
-
"noImplicitAny": true,
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true,
|
|
19
|
-
"noFallthroughCasesInSwitch": true,
|
|
20
|
-
"removeComments": true,
|
|
21
|
-
"experimentalDecorators": true,
|
|
22
|
-
"emitDecoratorMetadata": true,
|
|
23
|
-
"strictPropertyInitialization": false,
|
|
24
|
-
"baseUrl": "./src"
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
"include": ["src"],
|
|
28
|
-
"exclude": ["node_modules", "dist", "tests"]
|
|
29
|
-
}
|