@natrave/shared-entities 1.2.2 → 1.2.3
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/password-resets/password-reset.entity.js +1 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js +1 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +1 -1
- package/dist/app-auth/user-verifications/user-verification.entity.js +1 -1
- package/dist/app-auth/users/user.entity.js +6 -6
- package/dist/facilities/addresses/address.entity.js +2 -2
- package/dist/facilities/facilities/facility.entity.js +5 -5
- package/dist/facilities/facility-images/facility-image.entity.js +1 -1
- package/dist/facilities/facility-owners/facility-owner.entity.js +1 -1
- package/dist/facilities/fields/field.entity.js +2 -2
- package/dist/payments/payment-providers/payment-provider.entity.js +1 -1
- package/dist/payments/payments/payment.entity.js +2 -2
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js +2 -2
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +2 -2
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +1 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +3 -3
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +3 -3
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +1 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +5 -5
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +3 -3
- package/dist/tournaments/tournament-players/tournament-player.entity.js +4 -4
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +1 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js +1 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +5 -5
- package/dist/tournaments/tournaments/tournament.entity.js +8 -8
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
PrimaryGeneratedColumn,
|
|
18
18
|
UpdateDateColumn
|
|
19
19
|
} from "typeorm";
|
|
20
|
-
import { User } from "../users";
|
|
20
|
+
import { User } from "../users/index.js";
|
|
21
21
|
import { VerificationType } from "./enums/verification-type.enum.js";
|
|
22
22
|
let UserVerification = class {
|
|
23
23
|
};
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
Unique,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { UserPaymentProvider } from "../../payments";
|
|
23
|
-
import { TournamentPlayer } from "../../tournaments";
|
|
24
|
-
import { PasswordReset } from "../password-resets";
|
|
25
|
-
import { RefreshToken } from "../refresh-tokens";
|
|
26
|
-
import { UserAuthProvider } from "../user-auth-providers";
|
|
27
|
-
import { UserVerification } from "../user-verifications";
|
|
22
|
+
import { UserPaymentProvider } from "../../payments/index.js";
|
|
23
|
+
import { TournamentPlayer } from "../../tournaments/index.js";
|
|
24
|
+
import { PasswordReset } from "../password-resets/index.js";
|
|
25
|
+
import { RefreshToken } from "../refresh-tokens/index.js";
|
|
26
|
+
import { UserAuthProvider } from "../user-auth-providers/index.js";
|
|
27
|
+
import { UserVerification } from "../user-verifications/index.js";
|
|
28
28
|
import { formatUserBeforeInsertData } from "./utils/format-data.utils.js";
|
|
29
29
|
let User = class {
|
|
30
30
|
prepareData() {
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
PrimaryGeneratedColumn,
|
|
17
17
|
UpdateDateColumn
|
|
18
18
|
} from "typeorm";
|
|
19
|
-
import { DecimalTransformer } from "../../common/utils/decimal-transformer.utils";
|
|
20
|
-
import { Facility } from "../../facilities/facilities/facility.entity";
|
|
19
|
+
import { DecimalTransformer } from "../../common/utils/decimal-transformer.utils.js";
|
|
20
|
+
import { Facility } from "../../facilities/facilities/facility.entity.js";
|
|
21
21
|
let Address = class {
|
|
22
22
|
};
|
|
23
23
|
__decorateClass([
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
Unique,
|
|
24
24
|
UpdateDateColumn
|
|
25
25
|
} from "typeorm";
|
|
26
|
-
import { TournamentFacility } from "../../tournaments";
|
|
27
|
-
import { Address } from "../addresses";
|
|
28
|
-
import { FacilityImage } from "../facility-images";
|
|
29
|
-
import { FacilityOwner } from "../facility-owners";
|
|
30
|
-
import { Field } from "../fields";
|
|
26
|
+
import { TournamentFacility } from "../../tournaments/index.js";
|
|
27
|
+
import { Address } from "../addresses/index.js";
|
|
28
|
+
import { FacilityImage } from "../facility-images/index.js";
|
|
29
|
+
import { FacilityOwner } from "../facility-owners/index.js";
|
|
30
|
+
import { Field } from "../fields/index.js";
|
|
31
31
|
import { FacilityStatus } from "./enums/facility-status.enum.js";
|
|
32
32
|
import { sanitizeFacility } from "./utils/sanititze.utils.js";
|
|
33
33
|
let Facility = class {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
Unique,
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
|
-
import { Facility } from "../facilities/facility.entity";
|
|
23
|
+
import { Facility } from "../facilities/facility.entity.js";
|
|
24
24
|
import { sanitizeFacilityOwner } from "./utils/sanitize.utils.js";
|
|
25
25
|
let FacilityOwner = class {
|
|
26
26
|
sanitizeFields() {
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
Unique,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { TournamentMatch } from "../../tournaments";
|
|
23
|
-
import { Facility } from "../facilities";
|
|
22
|
+
import { TournamentMatch } from "../../tournaments/index.js";
|
|
23
|
+
import { Facility } from "../facilities/index.js";
|
|
24
24
|
import { FieldSurfaceType } from "./enums/surface-type.enum.js";
|
|
25
25
|
let Field = class {
|
|
26
26
|
};
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
Unique,
|
|
19
19
|
UpdateDateColumn
|
|
20
20
|
} from "typeorm";
|
|
21
|
-
import { UserPaymentProvider } from "../user-payment-providers";
|
|
21
|
+
import { UserPaymentProvider } from "../user-payment-providers/index.js";
|
|
22
22
|
import { PaymentProviderName } from "./enums/payment-provider-name.enum.js";
|
|
23
23
|
let PaymentProvider = class {
|
|
24
24
|
};
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
PrimaryGeneratedColumn,
|
|
17
17
|
UpdateDateColumn
|
|
18
18
|
} from "typeorm";
|
|
19
|
-
import { TournamentPayment } from "../../tournaments";
|
|
20
|
-
import { PaymentProviderName } from "../payment-providers";
|
|
19
|
+
import { TournamentPayment } from "../../tournaments/index.js";
|
|
20
|
+
import { PaymentProviderName } from "../payment-providers/index.js";
|
|
21
21
|
import { PaymentMethod } from "./enums/payment-method.enum.js";
|
|
22
22
|
import { PaymentStatus } from "./enums/payment-status.enum.js";
|
|
23
23
|
let Payment = class {
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
Unique,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { User } from "../../app-auth";
|
|
23
|
-
import { PaymentProvider } from "../payment-providers";
|
|
22
|
+
import { User } from "../../app-auth/index.js";
|
|
23
|
+
import { PaymentProvider } from "../payment-providers/index.js";
|
|
24
24
|
let UserPaymentProvider = class {
|
|
25
25
|
};
|
|
26
26
|
__decorateClass([
|
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
Unique,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { Facility } from "../../facilities";
|
|
23
|
-
import { Tournament } from "../tournaments";
|
|
22
|
+
import { Facility } from "../../facilities/index.js";
|
|
23
|
+
import { Tournament } from "../tournaments/index.js";
|
|
24
24
|
let TournamentFacility = class {
|
|
25
25
|
};
|
|
26
26
|
__decorateClass([
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
TournamentFormat
|
|
15
15
|
} from "@natrave/tournaments-service-types";
|
|
16
16
|
import { Column, CreateDateColumn, Entity, JoinColumn, OneToOne, UpdateDateColumn } from "typeorm";
|
|
17
|
-
import { Tournament } from "../tournaments";
|
|
17
|
+
import { Tournament } from "../tournaments/index.js";
|
|
18
18
|
let TournamentFormatConfig = class {
|
|
19
19
|
};
|
|
20
20
|
__decorateClass([
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
PrimaryGeneratedColumn,
|
|
23
23
|
UpdateDateColumn
|
|
24
24
|
} from "typeorm";
|
|
25
|
-
import { TournamentMatch } from "../tournament-matches";
|
|
26
|
-
import { TournamentPlayer } from "../tournament-players";
|
|
27
|
-
import { TournamentTeam } from "../tournament-teams";
|
|
25
|
+
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
26
|
+
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
27
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
28
28
|
let TournamentMatchCard = class {
|
|
29
29
|
};
|
|
30
30
|
__decorateClass([
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
PrimaryGeneratedColumn,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { TournamentMatch } from "../tournament-matches";
|
|
23
|
-
import { TournamentPlayer } from "../tournament-players";
|
|
24
|
-
import { TournamentTeam } from "../tournament-teams";
|
|
22
|
+
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
23
|
+
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
24
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
25
25
|
let TournamentMatchGoal = class {
|
|
26
26
|
};
|
|
27
27
|
__decorateClass([
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
PrimaryGeneratedColumn,
|
|
20
20
|
UpdateDateColumn
|
|
21
21
|
} from "typeorm";
|
|
22
|
-
import { Field } from "../../facilities";
|
|
23
|
-
import { TournamentMatchCard } from "../tournament-match-cards";
|
|
24
|
-
import { TournamentMatchGoal } from "../tournament-match-goals";
|
|
25
|
-
import { TournamentTeam } from "../tournament-teams";
|
|
26
|
-
import { Tournament } from "../tournaments";
|
|
22
|
+
import { Field } from "../../facilities/index.js";
|
|
23
|
+
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
24
|
+
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
25
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
26
|
+
import { Tournament } from "../tournaments/index.js";
|
|
27
27
|
let TournamentMatch = class {
|
|
28
28
|
};
|
|
29
29
|
__decorateClass([
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
PrimaryGeneratedColumn,
|
|
18
18
|
UpdateDateColumn
|
|
19
19
|
} from "typeorm";
|
|
20
|
-
import { User } from "../../app-auth";
|
|
21
|
-
import { Payment } from "../../payments";
|
|
22
|
-
import { Tournament } from "../tournaments";
|
|
20
|
+
import { User } from "../../app-auth/index.js";
|
|
21
|
+
import { Payment } from "../../payments/index.js";
|
|
22
|
+
import { Tournament } from "../tournaments/index.js";
|
|
23
23
|
let TournamentPayment = class {
|
|
24
24
|
};
|
|
25
25
|
__decorateClass([
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
Unique,
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
|
-
import { User } from "../../app-auth";
|
|
24
|
-
import { TournamentMatchCard } from "../tournament-match-cards";
|
|
25
|
-
import { TournamentMatchGoal } from "../tournament-match-goals";
|
|
26
|
-
import { TournamentTeam } from "../tournament-teams";
|
|
23
|
+
import { User } from "../../app-auth/index.js";
|
|
24
|
+
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
25
|
+
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
26
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
27
27
|
let TournamentPlayer = class {
|
|
28
28
|
};
|
|
29
29
|
__decorateClass([
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
Unique,
|
|
22
22
|
UpdateDateColumn
|
|
23
23
|
} from "typeorm";
|
|
24
|
-
import { TournamentMatchCard } from "../tournament-match-cards";
|
|
25
|
-
import { TournamentMatchGoal } from "../tournament-match-goals";
|
|
26
|
-
import { TournamentMatch } from "../tournament-matches";
|
|
27
|
-
import { TournamentPlayer } from "../tournament-players";
|
|
28
|
-
import { Tournament } from "../tournaments";
|
|
24
|
+
import { TournamentMatchCard } from "../tournament-match-cards/index.js";
|
|
25
|
+
import { TournamentMatchGoal } from "../tournament-match-goals/index.js";
|
|
26
|
+
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
27
|
+
import { TournamentPlayer } from "../tournament-players/index.js";
|
|
28
|
+
import { Tournament } from "../tournaments/index.js";
|
|
29
29
|
import { TournamentTeamStatus } from "./enums/tournament-team-status.enum.js";
|
|
30
30
|
import { generateRandomInviteCode } from "./utils/invite-code-generator.js";
|
|
31
31
|
let TournamentTeam = class {
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
PrimaryGeneratedColumn,
|
|
21
21
|
UpdateDateColumn
|
|
22
22
|
} from "typeorm";
|
|
23
|
-
import { TournamentFacility } from "../tournament-facilities";
|
|
24
|
-
import { TournamentFormatConfig } from "../tournament-format-configs";
|
|
25
|
-
import { TournamentMatchSchema } from "../tournament-match-schemas";
|
|
26
|
-
import { TournamentMatch } from "../tournament-matches";
|
|
27
|
-
import { TournamentPayment } from "../tournament-payments";
|
|
28
|
-
import { TournamentPrizeRule } from "../tournament-prize-rules";
|
|
29
|
-
import { TournamentRule } from "../tournament-rules";
|
|
30
|
-
import { TournamentTeam } from "../tournament-teams";
|
|
23
|
+
import { TournamentFacility } from "../tournament-facilities/index.js";
|
|
24
|
+
import { TournamentFormatConfig } from "../tournament-format-configs/index.js";
|
|
25
|
+
import { TournamentMatchSchema } from "../tournament-match-schemas/index.js";
|
|
26
|
+
import { TournamentMatch } from "../tournament-matches/index.js";
|
|
27
|
+
import { TournamentPayment } from "../tournament-payments/index.js";
|
|
28
|
+
import { TournamentPrizeRule } from "../tournament-prize-rules/index.js";
|
|
29
|
+
import { TournamentRule } from "../tournament-rules/index.js";
|
|
30
|
+
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
31
31
|
let Tournament = class {
|
|
32
32
|
};
|
|
33
33
|
__decorateClass([
|