@natrave/shared-entities 1.4.89 → 1.4.91
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/central-auth/organization-users/organization-user.entity.d.ts +2 -0
- package/dist/central-auth/organization-users/organization-user.entity.d.ts.map +1 -1
- package/dist/central-auth/organization-users/organization-user.entity.js +5 -0
- package/dist/database-entities/index.d.ts +2 -2
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +2 -0
- package/dist/tournaments/index.d.ts +3 -2
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +3 -2
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts +4 -5
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +8 -8
- package/dist/tournaments/tournament-publication-charge-rules/index.d.ts +3 -0
- package/dist/tournaments/tournament-publication-charge-rules/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-publication-charge-rules/index.js +6 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule-type.enum.d.ts +4 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule-type.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule-type.enum.js +7 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule.entity.d.ts +13 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule.entity.js +94 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IOrganizationUser, OrganizationUserStatus } from '@natrave/auth-service-types';
|
|
2
|
+
import { TournamentPayment } from '../../tournaments';
|
|
2
3
|
import { Organization } from '../organizations';
|
|
3
4
|
export declare class OrganizationUser implements IOrganizationUser {
|
|
4
5
|
id: number;
|
|
@@ -13,5 +14,6 @@ export declare class OrganizationUser implements IOrganizationUser {
|
|
|
13
14
|
createdAt: Date;
|
|
14
15
|
updatedAt: Date;
|
|
15
16
|
organization: Organization;
|
|
17
|
+
tournamentPayments: TournamentPayment[];
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=organization-user.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"organization-user.entity.d.ts","sourceRoot":"","sources":["../../../src/central-auth/organization-users/organization-user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAcxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,qBAWa,gBAAiB,YAAW,iBAAiB;IAExD,EAAE,EAAE,MAAM,CAAC;IAOX,cAAc,EAAE,MAAM,CAAC;IAQvB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAOxB,KAAK,EAAE,MAAM,CAAC;IAOd,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,sBAAsB,CAAC;IAU/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,YAAY,EAAE,YAAY,CAAC;IAM3B,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC"}
|
|
@@ -16,10 +16,12 @@ import {
|
|
|
16
16
|
Index,
|
|
17
17
|
JoinColumn,
|
|
18
18
|
ManyToOne,
|
|
19
|
+
OneToMany,
|
|
19
20
|
PrimaryGeneratedColumn,
|
|
20
21
|
Unique,
|
|
21
22
|
UpdateDateColumn
|
|
22
23
|
} from "typeorm";
|
|
24
|
+
import { TournamentPayment } from "../../tournaments/index.js";
|
|
23
25
|
import { Organization } from "../organizations/index.js";
|
|
24
26
|
let OrganizationUser = class {
|
|
25
27
|
};
|
|
@@ -105,6 +107,9 @@ __decorateClass([
|
|
|
105
107
|
ManyToOne(() => Organization, (organization) => organization.users, { onDelete: "CASCADE" }),
|
|
106
108
|
JoinColumn({ name: "organization_id" })
|
|
107
109
|
], OrganizationUser.prototype, "organization", 2);
|
|
110
|
+
__decorateClass([
|
|
111
|
+
OneToMany(() => TournamentPayment, (tournamentPayment) => tournamentPayment.organizationUser)
|
|
112
|
+
], OrganizationUser.prototype, "tournamentPayments", 2);
|
|
108
113
|
OrganizationUser = __decorateClass([
|
|
109
114
|
Unique("UQ_organization_users_document", ["document"]),
|
|
110
115
|
Unique("UQ_organization_users_email", ["email"]),
|
|
@@ -7,7 +7,7 @@ import { NotificationToken } from '../notifications';
|
|
|
7
7
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
8
8
|
import { Player, PlayerPosition } from '../players';
|
|
9
9
|
import { PlayerTeam, Team, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
10
|
-
import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentRegistrationRequest, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
|
|
10
|
+
import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
|
|
11
11
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
12
|
-
export declare const DATABASE_ENTITIES: (typeof OrganizationUser | typeof Organization | typeof PhoneNumber | typeof TournamentAllowedPhone | typeof Tournament | typeof
|
|
12
|
+
export declare const DATABASE_ENTITIES: (typeof OrganizationUser | typeof Organization | typeof TournamentPayment | typeof PhoneNumber | typeof TournamentAllowedPhone | typeof Tournament | typeof FacilityImage | typeof Facility | typeof FieldImage | typeof Field | typeof Address | typeof TournamentFacility | typeof FacilityOwner | typeof PasswordReset | typeof NotificationToken | typeof User | typeof UserAuthProvider | typeof RefreshToken | typeof Player | typeof TournamentRegistrationRequest | typeof UserVerification | typeof PlayerPosition | typeof PlayerTeam | typeof TeamJoinRequest | typeof TeamPlayerMergeHistory | typeof Team | typeof TournamentPlayer | typeof TournamentTeam | typeof TeamModality | typeof TournamentTeamContactAttempt | typeof TeamTrophy | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentFormatConfig | typeof TournamentMatchGoal | typeof TournamentMatch | typeof TournamentMatchCard | typeof TournamentPenaltyShootout | typeof TournamentGroup | typeof TournamentBracketSlot | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentBracket | typeof TournamentPublicationChargeRule | typeof UserDomainEvent | typeof UserEventView)[];
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvF,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAE7B,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpG,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACvF,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAE7B,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,41CAwD7B,CAAC"}
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
TournamentPlayer,
|
|
29
29
|
TournamentPlayerRule,
|
|
30
30
|
TournamentPrizeRule,
|
|
31
|
+
TournamentPublicationChargeRule,
|
|
31
32
|
TournamentRegistrationRequest,
|
|
32
33
|
TournamentRule,
|
|
33
34
|
TournamentTeam,
|
|
@@ -65,6 +66,7 @@ const DATABASE_ENTITIES = [
|
|
|
65
66
|
TournamentPayment,
|
|
66
67
|
TournamentPlayer,
|
|
67
68
|
TournamentPlayerRule,
|
|
69
|
+
TournamentPublicationChargeRule,
|
|
68
70
|
TournamentPrizeRule,
|
|
69
71
|
TournamentRegistrationRequest,
|
|
70
72
|
TournamentRule,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './tournament-allowed-phone';
|
|
2
|
+
export * from './tournament-bracket-slots';
|
|
2
3
|
export * from './tournament-brackets';
|
|
3
4
|
export * from './tournament-contacts';
|
|
4
5
|
export * from './tournament-coupons';
|
|
@@ -16,10 +17,10 @@ export * from './tournament-penalty-shootouts';
|
|
|
16
17
|
export * from './tournament-player-rules';
|
|
17
18
|
export * from './tournament-players';
|
|
18
19
|
export * from './tournament-prize-rules';
|
|
20
|
+
export * from './tournament-publication-charge-rules';
|
|
21
|
+
export * from './tournament-registration-requests';
|
|
19
22
|
export * from './tournament-rules';
|
|
20
23
|
export * from './tournament-team-contact-attempts';
|
|
21
24
|
export * from './tournament-teams';
|
|
22
|
-
export * from './tournament-bracket-slots';
|
|
23
|
-
export * from './tournament-registration-requests';
|
|
24
25
|
export * from './tournaments';
|
|
25
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./tournament-allowed-phone/index.js";
|
|
2
|
+
export * from "./tournament-bracket-slots/index.js";
|
|
2
3
|
export * from "./tournament-brackets/index.js";
|
|
3
4
|
export * from "./tournament-contacts/index.js";
|
|
4
5
|
export * from "./tournament-coupons/index.js";
|
|
@@ -16,9 +17,9 @@ export * from "./tournament-penalty-shootouts/index.js";
|
|
|
16
17
|
export * from "./tournament-player-rules/index.js";
|
|
17
18
|
export * from "./tournament-players/index.js";
|
|
18
19
|
export * from "./tournament-prize-rules/index.js";
|
|
20
|
+
export * from "./tournament-publication-charge-rules/index.js";
|
|
21
|
+
export * from "./tournament-registration-requests/index.js";
|
|
19
22
|
export * from "./tournament-rules/index.js";
|
|
20
23
|
export * from "./tournament-team-contact-attempts/index.js";
|
|
21
24
|
export * from "./tournament-teams/index.js";
|
|
22
|
-
export * from "./tournament-bracket-slots/index.js";
|
|
23
|
-
export * from "./tournament-registration-requests/index.js";
|
|
24
25
|
export * from "./tournaments/index.js";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { User } from '../../app-auth';
|
|
1
|
+
import { OrganizationUser } from '../../central-auth';
|
|
3
2
|
import { Payment } from '../../payments';
|
|
4
3
|
import { Tournament } from '../tournaments';
|
|
5
|
-
export declare class TournamentPayment
|
|
4
|
+
export declare class TournamentPayment {
|
|
6
5
|
id: string;
|
|
7
6
|
paymentId: number;
|
|
8
7
|
tournamentId: number;
|
|
9
|
-
|
|
8
|
+
organizationUserId: number;
|
|
10
9
|
createdAt: Date;
|
|
11
10
|
updatedAt: Date;
|
|
12
|
-
|
|
11
|
+
organizationUser: OrganizationUser;
|
|
13
12
|
payment: Payment;
|
|
14
13
|
tournament: Tournament;
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-payment.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/tournament-payment.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tournament-payment.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-payments/tournament-payment.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBACa,iBAAiB;IAI5B,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,MAAM,CAAC;IAOlB,YAAY,EAAE,MAAM,CAAC;IAOrB,kBAAkB,EAAE,MAAM,CAAC;IAO3B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,gBAAgB,EAAE,gBAAgB,CAAC;IAInC,OAAO,EAAE,OAAO,CAAC;IAIjB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
PrimaryGeneratedColumn,
|
|
18
18
|
UpdateDateColumn
|
|
19
19
|
} from "typeorm";
|
|
20
|
-
import {
|
|
20
|
+
import { OrganizationUser } from "../../central-auth/index.js";
|
|
21
21
|
import { Payment } from "../../payments/index.js";
|
|
22
22
|
import { Tournament } from "../tournaments/index.js";
|
|
23
23
|
let TournamentPayment = class {
|
|
@@ -43,11 +43,11 @@ __decorateClass([
|
|
|
43
43
|
], TournamentPayment.prototype, "tournamentId", 2);
|
|
44
44
|
__decorateClass([
|
|
45
45
|
Column({
|
|
46
|
-
name: "
|
|
47
|
-
type: "
|
|
48
|
-
comment: "Identificador do usu\xE1rio que realizou o pagamento."
|
|
46
|
+
name: "organization_user_id",
|
|
47
|
+
type: "int",
|
|
48
|
+
comment: "Identificador do usu\xE1rio da organiza\xE7\xE3o que realizou o pagamento."
|
|
49
49
|
})
|
|
50
|
-
], TournamentPayment.prototype, "
|
|
50
|
+
], TournamentPayment.prototype, "organizationUserId", 2);
|
|
51
51
|
__decorateClass([
|
|
52
52
|
CreateDateColumn({
|
|
53
53
|
name: "created_at",
|
|
@@ -63,9 +63,9 @@ __decorateClass([
|
|
|
63
63
|
})
|
|
64
64
|
], TournamentPayment.prototype, "updatedAt", 2);
|
|
65
65
|
__decorateClass([
|
|
66
|
-
ManyToOne(() =>
|
|
67
|
-
JoinColumn({ name: "
|
|
68
|
-
], TournamentPayment.prototype, "
|
|
66
|
+
ManyToOne(() => OrganizationUser, { onDelete: "CASCADE" }),
|
|
67
|
+
JoinColumn({ name: "organization_user_id" })
|
|
68
|
+
], TournamentPayment.prototype, "organizationUser", 2);
|
|
69
69
|
__decorateClass([
|
|
70
70
|
ManyToOne(() => Payment, { onDelete: "CASCADE", eager: true }),
|
|
71
71
|
JoinColumn({ name: "payment_id" })
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-publication-charge-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TournamentPublicationChargeRuleType } from "./tournament-publication-charge-rule-type.enum.js";
|
|
2
|
+
import { TournamentPublicationChargeRule } from "./tournament-publication-charge-rule.entity.js";
|
|
3
|
+
export {
|
|
4
|
+
TournamentPublicationChargeRule,
|
|
5
|
+
TournamentPublicationChargeRuleType
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-publication-charge-rule-type.enum.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule-type.enum.ts"],"names":[],"mappings":"AAKA,oBAAY,mCAAmC;IAI7C,eAAe,oBAAoB;CACpC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var TournamentPublicationChargeRuleType = /* @__PURE__ */ ((TournamentPublicationChargeRuleType2) => {
|
|
2
|
+
TournamentPublicationChargeRuleType2["TEAM_COUNT_OVER"] = "team_count_over";
|
|
3
|
+
return TournamentPublicationChargeRuleType2;
|
|
4
|
+
})(TournamentPublicationChargeRuleType || {});
|
|
5
|
+
export {
|
|
6
|
+
TournamentPublicationChargeRuleType
|
|
7
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TournamentPublicationChargeRuleType } from './tournament-publication-charge-rule-type.enum';
|
|
2
|
+
export declare class TournamentPublicationChargeRule {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
ruleType: TournamentPublicationChargeRuleType;
|
|
7
|
+
teamCountThreshold: number | null;
|
|
8
|
+
amount: number;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tournament-publication-charge-rule.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-publication-charge-rule.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-publication-charge-rules/tournament-publication-charge-rule.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AAOrG,qBAIa,+BAA+B;IAI1C,EAAE,EAAE,MAAM,CAAC;IAQX,IAAI,EAAE,MAAM,CAAC;IAOb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,QAAQ,EAAE,mCAAmC,CAAC;IAQ9C,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAMlC,MAAM,EAAE,MAAM,CAAC;IAQf,QAAQ,EAAE,OAAO,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
PrimaryGeneratedColumn,
|
|
17
|
+
UpdateDateColumn
|
|
18
|
+
} from "typeorm";
|
|
19
|
+
import { TournamentPublicationChargeRuleType } from "./tournament-publication-charge-rule-type.enum.js";
|
|
20
|
+
let TournamentPublicationChargeRule = class {
|
|
21
|
+
};
|
|
22
|
+
__decorateClass([
|
|
23
|
+
PrimaryGeneratedColumn({
|
|
24
|
+
comment: "Identificador \xFAnico da regra de cobran\xE7a de publica\xE7\xE3o."
|
|
25
|
+
})
|
|
26
|
+
], TournamentPublicationChargeRule.prototype, "id", 2);
|
|
27
|
+
__decorateClass([
|
|
28
|
+
Column({
|
|
29
|
+
type: "varchar",
|
|
30
|
+
length: 100,
|
|
31
|
+
unique: true,
|
|
32
|
+
comment: "Nome \xFAnico da regra de cobran\xE7a."
|
|
33
|
+
})
|
|
34
|
+
], TournamentPublicationChargeRule.prototype, "name", 2);
|
|
35
|
+
__decorateClass([
|
|
36
|
+
Column({
|
|
37
|
+
type: "text",
|
|
38
|
+
nullable: true,
|
|
39
|
+
comment: "Descri\xE7\xE3o opcional da regra de cobran\xE7a."
|
|
40
|
+
})
|
|
41
|
+
], TournamentPublicationChargeRule.prototype, "description", 2);
|
|
42
|
+
__decorateClass([
|
|
43
|
+
Column({
|
|
44
|
+
name: "rule_type",
|
|
45
|
+
type: "enum",
|
|
46
|
+
enum: TournamentPublicationChargeRuleType,
|
|
47
|
+
comment: "Tipo da regra de cobran\xE7a (ex: team_count_over)."
|
|
48
|
+
})
|
|
49
|
+
], TournamentPublicationChargeRule.prototype, "ruleType", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
Column({
|
|
52
|
+
name: "team_count_threshold",
|
|
53
|
+
type: "integer",
|
|
54
|
+
nullable: true,
|
|
55
|
+
comment: "Limite de quantidade de times para aplica\xE7\xE3o da regra."
|
|
56
|
+
})
|
|
57
|
+
], TournamentPublicationChargeRule.prototype, "teamCountThreshold", 2);
|
|
58
|
+
__decorateClass([
|
|
59
|
+
Column({
|
|
60
|
+
type: "integer",
|
|
61
|
+
comment: "Valor da cobran\xE7a em centavos."
|
|
62
|
+
})
|
|
63
|
+
], TournamentPublicationChargeRule.prototype, "amount", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
Column({
|
|
66
|
+
name: "is_active",
|
|
67
|
+
type: "boolean",
|
|
68
|
+
default: true,
|
|
69
|
+
comment: "Indica se a regra est\xE1 ativa."
|
|
70
|
+
})
|
|
71
|
+
], TournamentPublicationChargeRule.prototype, "isActive", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
CreateDateColumn({
|
|
74
|
+
name: "created_at",
|
|
75
|
+
type: "timestamptz",
|
|
76
|
+
comment: "Data de cria\xE7\xE3o da regra de cobran\xE7a."
|
|
77
|
+
})
|
|
78
|
+
], TournamentPublicationChargeRule.prototype, "createdAt", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
UpdateDateColumn({
|
|
81
|
+
name: "updated_at",
|
|
82
|
+
type: "timestamptz",
|
|
83
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o da regra."
|
|
84
|
+
})
|
|
85
|
+
], TournamentPublicationChargeRule.prototype, "updatedAt", 2);
|
|
86
|
+
TournamentPublicationChargeRule = __decorateClass([
|
|
87
|
+
Entity("tournament_publication_charge_rules"),
|
|
88
|
+
Index("idx_tournament_publication_charge_rule_type", ["ruleType"]),
|
|
89
|
+
Index("idx_tournament_publication_charge_rule_active", ["isActive"]),
|
|
90
|
+
Index("idx_tournament_publication_charge_rule_type_active", ["ruleType", "isActive"])
|
|
91
|
+
], TournamentPublicationChargeRule);
|
|
92
|
+
export {
|
|
93
|
+
TournamentPublicationChargeRule
|
|
94
|
+
};
|