@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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Index, Check, ManyToOne, JoinColumn, } from 'typeorm';
|
|
11
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
12
|
+
let TournamentPrizeRule = class TournamentPrizeRule {
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
PrimaryGeneratedColumn(),
|
|
16
|
+
__metadata("design:type", Number)
|
|
17
|
+
], TournamentPrizeRule.prototype, "id", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ name: 'tournament_id', type: 'int' }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], TournamentPrizeRule.prototype, "tournamentId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ type: 'int' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], TournamentPrizeRule.prototype, "amount", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], TournamentPrizeRule.prototype, "rank", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TournamentPrizeRule.prototype, "description", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], TournamentPrizeRule.prototype, "createdAt", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], TournamentPrizeRule.prototype, "updatedAt", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ManyToOne(() => Tournament, (tournament) => tournament.prizeRules, {
|
|
44
|
+
onDelete: 'CASCADE',
|
|
45
|
+
}),
|
|
46
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
47
|
+
__metadata("design:type", Tournament)
|
|
48
|
+
], TournamentPrizeRule.prototype, "tournament", void 0);
|
|
49
|
+
TournamentPrizeRule = __decorate([
|
|
50
|
+
Entity('tournament_prize_rules'),
|
|
51
|
+
Index(['tournamentId', 'rank']),
|
|
52
|
+
Check('CHK_TOURNAMENT_PRIZE_RULES_NON_NEGATIVE', 'amount >= 0 AND rank >= 0')
|
|
53
|
+
], TournamentPrizeRule);
|
|
54
|
+
export { TournamentPrizeRule };
|
|
55
|
+
//# sourceMappingURL=tournament-prize-rule.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-prize-rule.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-prize-rules/tournament-prize-rule.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAkB9C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAiC/B,CAAA;AA/BC;IADC,sBAAsB,EAAE;;+CACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;yDAC1B;AAGrB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACT;AAGf;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;iDACX;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACpC;AAGrB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAGhB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACnD,IAAI;sDAAC;AAYhB;IAJC,SAAS,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE;QAClE,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,UAAU;uDAAC;AAhCZ,mBAAmB;IAH/B,MAAM,CAAC,wBAAwB,CAAC;IAChC,KAAK,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,CAAC,yCAAyC,EAAE,2BAA2B,CAAC;GACjE,mBAAmB,CAiC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ITournamentRule } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
3
|
+
export declare class TournamentRule implements ITournamentRule {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentId: number;
|
|
6
|
+
maxPlayerPerTeam: number;
|
|
7
|
+
minPlayerPerTeam: number;
|
|
8
|
+
minAge: number;
|
|
9
|
+
maxAge?: number;
|
|
10
|
+
expectedTeams: number;
|
|
11
|
+
notes?: string;
|
|
12
|
+
regulationPdfUrl?: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
tournament: Tournament;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=tournament-rule.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/tournament-rule.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAYrE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAWrD,qBAIa,cAAe,YAAW,eAAe;IAEpD,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,aAAa,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAWhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Check, Column, CreateDateColumn, Entity, JoinColumn, OneToOne, PrimaryGeneratedColumn, UpdateDateColumn, } from 'typeorm';
|
|
11
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
12
|
+
let TournamentRule = class TournamentRule {
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
PrimaryGeneratedColumn(),
|
|
16
|
+
__metadata("design:type", Number)
|
|
17
|
+
], TournamentRule.prototype, "id", void 0);
|
|
18
|
+
__decorate([
|
|
19
|
+
Column({ name: 'tournament_id', type: 'int', unique: true }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], TournamentRule.prototype, "tournamentId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Column({ name: 'max_player_per_team', type: 'int' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], TournamentRule.prototype, "maxPlayerPerTeam", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ name: 'min_player_per_team', type: 'int' }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], TournamentRule.prototype, "minPlayerPerTeam", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ name: 'min_age', type: 'int' }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], TournamentRule.prototype, "minAge", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ name: 'max_age', type: 'int', nullable: true }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], TournamentRule.prototype, "maxAge", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ name: 'expected_teams', type: 'int' }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], TournamentRule.prototype, "expectedTeams", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], TournamentRule.prototype, "notes", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({
|
|
48
|
+
name: 'regulation_pdf_url',
|
|
49
|
+
type: 'varchar',
|
|
50
|
+
length: 500,
|
|
51
|
+
nullable: true,
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], TournamentRule.prototype, "regulationPdfUrl", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], TournamentRule.prototype, "createdAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], TournamentRule.prototype, "updatedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
OneToOne(() => Tournament, (tournament) => tournament.rule, {
|
|
65
|
+
cascade: true,
|
|
66
|
+
}),
|
|
67
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
68
|
+
__metadata("design:type", Tournament)
|
|
69
|
+
], TournamentRule.prototype, "tournament", void 0);
|
|
70
|
+
TournamentRule = __decorate([
|
|
71
|
+
Entity('tournament_rules'),
|
|
72
|
+
Check('CHK_PLAYERS_PER_TEAM', '"max_player_per_team" >= "min_player_per_team"'),
|
|
73
|
+
Check('CHK_MIN_AGE', '"min_age" >= 0'),
|
|
74
|
+
Check('CHK_MAX_AGE', '"max_age" IS NULL OR "max_age" > "min_age"')
|
|
75
|
+
], TournamentRule);
|
|
76
|
+
export { TournamentRule };
|
|
77
|
+
//# sourceMappingURL=tournament-rule.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-rule.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-rules/tournament-rule.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,QAAQ,EACR,sB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AAa,EAAE,CAAC;8BACnD,IAAI;iDAAC;AAWhB;IAJC,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QAC3D,OAAO,EAAE,IAAI;KACd,CAAC;IACD,UAAU,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAC1B,UAAU;kDAAC;AAhDZ,cAAc;IAJ1B,MAAM,CAAC,kBAAkB,CAAC;IAC1B,KAAK,CAAC,sBAAsB,EAAE,gDAAgD,CAAC;IAC/E,KAAK,CAAC,aAAa,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,aAAa,EAAE,4CAA4C,CAAC;GACtD,cAAc,CAiD1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-team-status.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-teams/enums/tournament-team-status.enum.ts"],"names":[],"mappings":"AASA,oBAAY,oBAAoB;IAK9B,OAAO,YAAY;IAKnB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var TournamentTeamStatus;
|
|
2
|
+
(function (TournamentTeamStatus) {
|
|
3
|
+
TournamentTeamStatus["DEFAULT"] = "default";
|
|
4
|
+
TournamentTeamStatus["REGISTERED"] = "registered";
|
|
5
|
+
})(TournamentTeamStatus || (TournamentTeamStatus = {}));
|
|
6
|
+
//# sourceMappingURL=tournament-team-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-team-status.enum.js","sourceRoot":"","sources":["../../../../src/tournaments/tournament-teams/enums/tournament-team-status.enum.ts"],"names":[],"mappings":"AASA,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAK9B,2CAAmB,CAAA;IAKnB,iDAAyB,CAAA;AAC3B,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ITournamentTeam } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
3
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
4
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
5
|
+
import { TournamentPlayer } from 'tournaments/tournament-players';
|
|
6
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
7
|
+
import { TournamentTeamStatus } from './enums/tournament-team-status.enum';
|
|
8
|
+
export declare class TournamentTeam implements ITournamentTeam {
|
|
9
|
+
id: number;
|
|
10
|
+
tournamentId: number;
|
|
11
|
+
name: string;
|
|
12
|
+
teamLogoUrl?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
inviteCode: string;
|
|
15
|
+
status: TournamentTeamStatus;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
tournament: Tournament;
|
|
19
|
+
players: TournamentPlayer[];
|
|
20
|
+
homeMatches: TournamentMatch[];
|
|
21
|
+
awayMatches: TournamentMatch[];
|
|
22
|
+
goals: TournamentMatchGoal[];
|
|
23
|
+
cards: TournamentMatchCard[];
|
|
24
|
+
generateInviteCode(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=tournament-team.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-team.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/tournament-team.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAerE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAY3E,qBAKa,cAAe,YAAW,eAAe;IAEpD,EAAE,EAAE,MAAM,CAAC;IAGX,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IASnB,MAAM,EAAE,oBAAoB,CAAC;IAG7B,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAWhB,UAAU,EAAE,UAAU,CAAC;IAMvB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAM5B,WAAW,EAAE,eAAe,EAAE,CAAC;IAM/B,WAAW,EAAE,eAAe,EAAE,CAAC;IAM/B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAM7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAM7B,kBAAkB,IAAI,IAAI;CAG3B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, ManyToOne, JoinColumn, Unique, Index, BeforeInsert, OneToMany, } from 'typeorm';
|
|
11
|
+
import { TournamentMatchCard } from 'tournaments/tournament-match-cards';
|
|
12
|
+
import { TournamentMatchGoal } from 'tournaments/tournament-match-goals';
|
|
13
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
14
|
+
import { TournamentPlayer } from 'tournaments/tournament-players';
|
|
15
|
+
import { Tournament } from 'tournaments/tournaments';
|
|
16
|
+
import { TournamentTeamStatus } from './enums/tournament-team-status.enum';
|
|
17
|
+
import { generateRandomInviteCode } from './utils/invite-code-generator';
|
|
18
|
+
let TournamentTeam = class TournamentTeam {
|
|
19
|
+
generateInviteCode() {
|
|
20
|
+
this.inviteCode = generateRandomInviteCode();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
PrimaryGeneratedColumn(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], TournamentTeam.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column({ name: 'tournament_id', type: 'int' }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], TournamentTeam.prototype, "tournamentId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'varchar', length: 100 }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], TournamentTeam.prototype, "name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ name: 'team_logo_url', type: 'text', nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TournamentTeam.prototype, "teamLogoUrl", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar', length: 255, nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], TournamentTeam.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ name: 'invite_code', type: 'varchar', length: 5, unique: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TournamentTeam.prototype, "inviteCode", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'enum', enum: TournamentTeamStatus, default: TournamentTeamStatus.DEFAULT }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], TournamentTeam.prototype, "status", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], TournamentTeam.prototype, "createdAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], TournamentTeam.prototype, "updatedAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
ManyToOne(() => Tournament, (tournament) => tournament.teams, {
|
|
61
|
+
onDelete: 'CASCADE',
|
|
62
|
+
}),
|
|
63
|
+
JoinColumn({ name: 'tournament_id' }),
|
|
64
|
+
__metadata("design:type", Tournament)
|
|
65
|
+
], TournamentTeam.prototype, "tournament", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
OneToMany(() => TournamentPlayer, (player) => player.team),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], TournamentTeam.prototype, "players", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
OneToMany(() => TournamentMatch, (match) => match.homeTeam),
|
|
72
|
+
__metadata("design:type", Array)
|
|
73
|
+
], TournamentTeam.prototype, "homeMatches", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
OneToMany(() => TournamentMatch, (match) => match.awayTeam),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], TournamentTeam.prototype, "awayMatches", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
OneToMany(() => TournamentMatchGoal, (goal) => goal.team),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], TournamentTeam.prototype, "goals", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
OneToMany(() => TournamentMatchCard, (card) => card.team),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], TournamentTeam.prototype, "cards", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
BeforeInsert(),
|
|
88
|
+
__metadata("design:type", Function),
|
|
89
|
+
__metadata("design:paramtypes", []),
|
|
90
|
+
__metadata("design:returntype", void 0)
|
|
91
|
+
], TournamentTeam.prototype, "generateInviteCode", null);
|
|
92
|
+
TournamentTeam = __decorate([
|
|
93
|
+
Entity('tournament_teams'),
|
|
94
|
+
Unique(['tournamentId', 'name']),
|
|
95
|
+
Unique(['inviteCode']),
|
|
96
|
+
Index('IDX_tournament_team_tournament_id', ['tournamentId']),
|
|
97
|
+
Index('IDX_tournament_team_invite_code', ['inviteCode'])
|
|
98
|
+
], TournamentTeam);
|
|
99
|
+
export { TournamentTeam };
|
|
100
|
+
//# sourceMappingURL=tournament-team.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-team.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournament-teams/tournament-team.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACt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C1B,MAAM,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;IACtB,KAAK,CAAC,mCAAmC,EAAE,CAAC,cAAc,CAAC,CAAC;IAC5D,KAAK,CAAC,iCAAiC,EAAE,CAAC,YAAY,CAAC,CAAC;GAC5C,cAAc,CAkF1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invite-code-generator.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-teams/utils/invite-code-generator.ts"],"names":[],"mappings":"AASA,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invite-code-generator.js","sourceRoot":"","sources":["../../../../src/tournaments/tournament-teams/utils/invite-code-generator.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,wBAAwB;IACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tournaments/tournaments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DayOfWeek, ITournament, TournamentGender } from '@natrave/tournaments-service-types';
|
|
2
|
+
import { TournamentFacility } from 'tournaments/tournament-facilities';
|
|
3
|
+
import { TournamentFormatConfig } from 'tournaments/tournament-format-configs';
|
|
4
|
+
import { TournamentMatchSchema } from 'tournaments/tournament-match-schemas';
|
|
5
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
6
|
+
import { TournamentPayment } from 'tournaments/tournament-payments';
|
|
7
|
+
import { TournamentPrizeRule } from 'tournaments/tournament-prize-rules';
|
|
8
|
+
import { TournamentRule } from 'tournaments/tournament-rules';
|
|
9
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
10
|
+
export declare class Tournament implements ITournament {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
initialDate: Date;
|
|
14
|
+
endDate: Date;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
tournamentImage?: string | null;
|
|
17
|
+
matchSchemaId?: number | null;
|
|
18
|
+
ruleId: number;
|
|
19
|
+
formatConfigId: number;
|
|
20
|
+
matchDays: DayOfWeek[];
|
|
21
|
+
pricePerTeam: number;
|
|
22
|
+
matchStartTime: string;
|
|
23
|
+
matchEndTime: string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
gender: TournamentGender;
|
|
27
|
+
deletedAt: Date | null;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
matchSchema: TournamentMatchSchema;
|
|
31
|
+
teams: TournamentTeam[];
|
|
32
|
+
rule: TournamentRule;
|
|
33
|
+
format: TournamentFormatConfig;
|
|
34
|
+
prizeRules: TournamentPrizeRule[];
|
|
35
|
+
payments: TournamentPayment[];
|
|
36
|
+
matches: TournamentMatch[];
|
|
37
|
+
tournamentFacilities: TournamentFacility[];
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=tournament.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAa9F,OAAO,EAAE,kBA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B,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAMlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAM9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAM3B,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;CAC5C"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { DayOfWeek, TournamentGender } from '@natrave/tournaments-service-types';
|
|
11
|
+
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, OneToMany, OneToOne, ManyToOne, JoinColumn, } from 'typeorm';
|
|
12
|
+
import { TournamentFacility } from 'tournaments/tournament-facilities';
|
|
13
|
+
import { TournamentFormatConfig } from 'tournaments/tournament-format-configs';
|
|
14
|
+
import { TournamentMatchSchema } from 'tournaments/tournament-match-schemas';
|
|
15
|
+
import { TournamentMatch } from 'tournaments/tournament-matches';
|
|
16
|
+
import { TournamentPayment } from 'tournaments/tournament-payments';
|
|
17
|
+
import { TournamentPrizeRule } from 'tournaments/tournament-prize-rules';
|
|
18
|
+
import { TournamentRule } from 'tournaments/tournament-rules';
|
|
19
|
+
import { TournamentTeam } from 'tournaments/tournament-teams';
|
|
20
|
+
let Tournament = class Tournament {
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryGeneratedColumn(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], Tournament.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'varchar', length: 255 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Tournament.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ name: 'initial_date', type: 'timestamptz' }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], Tournament.prototype, "initialDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ name: 'end_date', type: 'timestamptz' }),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], Tournament.prototype, "endDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column({ type: 'text', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], Tournament.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column({ name: 'tournament_image', type: 'text', nullable: true }),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], Tournament.prototype, "tournamentImage", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column({ name: 'match_schema_id', type: 'int', nullable: true }),
|
|
48
|
+
__metadata("design:type", Object)
|
|
49
|
+
], Tournament.prototype, "matchSchemaId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column({ name: 'rule_id', type: 'int' }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], Tournament.prototype, "ruleId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ name: 'format_config_id', type: 'int' }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Tournament.prototype, "formatConfigId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
Column({
|
|
60
|
+
name: 'match_days',
|
|
61
|
+
type: 'enum',
|
|
62
|
+
enum: Object.values(DayOfWeek),
|
|
63
|
+
array: true,
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", Array)
|
|
66
|
+
], Tournament.prototype, "matchDays", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column({ name: 'price_per_team', type: 'int' }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], Tournament.prototype, "pricePerTeam", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Column({ name: 'match_start_time', type: 'time' }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Tournament.prototype, "matchStartTime", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Column({ name: 'match_end_time', type: 'time' }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Tournament.prototype, "matchEndTime", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Column({ type: 'varchar', length: 100 }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Tournament.prototype, "city", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
Column({ type: 'varchar', length: 2 }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Tournament.prototype, "state", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
Column({
|
|
89
|
+
type: 'enum',
|
|
90
|
+
enum: Object.values(TournamentGender),
|
|
91
|
+
}),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], Tournament.prototype, "gender", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
Column({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
|
|
96
|
+
__metadata("design:type", Object)
|
|
97
|
+
], Tournament.prototype, "deletedAt", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
CreateDateColumn({ name: 'created_at', type: 'timestamptz' }),
|
|
100
|
+
__metadata("design:type", Date)
|
|
101
|
+
], Tournament.prototype, "createdAt", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' }),
|
|
104
|
+
__metadata("design:type", Date)
|
|
105
|
+
], Tournament.prototype, "updatedAt", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
ManyToOne(() => TournamentMatchSchema, (matchSchema) => matchSchema.tournaments, {
|
|
108
|
+
onDelete: 'CASCADE',
|
|
109
|
+
}),
|
|
110
|
+
JoinColumn({ name: 'match_schema_id' }),
|
|
111
|
+
__metadata("design:type", TournamentMatchSchema)
|
|
112
|
+
], Tournament.prototype, "matchSchema", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
OneToMany(() => TournamentTeam, (team) => team.tournament),
|
|
115
|
+
__metadata("design:type", Array)
|
|
116
|
+
], Tournament.prototype, "teams", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
OneToOne(() => TournamentRule, (rule) => rule.tournament, { cascade: true }),
|
|
119
|
+
JoinColumn({ name: 'rule_id' }),
|
|
120
|
+
__metadata("design:type", TournamentRule)
|
|
121
|
+
], Tournament.prototype, "rule", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
OneToOne(() => TournamentFormatConfig, (format) => format.tournament, { cascade: true }),
|
|
124
|
+
JoinColumn({ name: 'format_config_id' }),
|
|
125
|
+
__metadata("design:type", TournamentFormatConfig)
|
|
126
|
+
], Tournament.prototype, "format", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
OneToMany(() => TournamentPrizeRule, (prizeRule) => prizeRule.tournament),
|
|
129
|
+
__metadata("design:type", Array)
|
|
130
|
+
], Tournament.prototype, "prizeRules", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
OneToMany(() => TournamentPayment, (payment) => payment.tournament),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], Tournament.prototype, "payments", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
OneToMany(() => TournamentMatch, (match) => match.tournament),
|
|
137
|
+
__metadata("design:type", Array)
|
|
138
|
+
], Tournament.prototype, "matches", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
OneToMany(() => TournamentFacility, (facility) => facility.tournament),
|
|
141
|
+
__metadata("design:type", Array)
|
|
142
|
+
], Tournament.prototype, "tournamentFacilities", void 0);
|
|
143
|
+
Tournament = __decorate([
|
|
144
|
+
Entity('tournaments')
|
|
145
|
+
], Tournament);
|
|
146
|
+
export { Tournament };
|
|
147
|
+
//# sourceMappingURL=tournament.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.entity.js","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAe,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EACL,MAAM,EACN,MAAM,EACN,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAYvD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAwHtB,CAAA;AAtHC;IADC,sBAAsB,EAAE;;sCACd;AAGX;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;wCAC5B;AAGb;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EA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EAAE,CAAC;IACxF,UAAU,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BACjC,sBAAsB;0CAAC;AAM/B;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC;;8CACxC;AAMlC;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,iBAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;;4CACtC;AAM9B;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;;2CACnC;AAM3B;IADC,SAAS,CAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;;wDAC5B;AAvHhC,UAAU;IADtB,MAAM,CAAC,aAAa,CAAC;GACT,UAAU,CAwHtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"require": "./dist/index.cjs"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
13
16
|
"repository": {
|
|
14
17
|
"type": "git",
|
|
15
18
|
"url": "https://github.com/na-trave/shared-entities.git"
|
|
@@ -39,7 +42,7 @@
|
|
|
39
42
|
"ts-node": "^10.9.2"
|
|
40
43
|
},
|
|
41
44
|
"dependencies": {
|
|
42
|
-
"@natrave/tournaments-service-types": "^1.1.
|
|
45
|
+
"@natrave/tournaments-service-types": "^1.1.5",
|
|
43
46
|
"reflect-metadata": "^0.2.2",
|
|
44
47
|
"typeorm": "^0.3.21"
|
|
45
48
|
},
|