@natrave/shared-entities 7.13.0 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database-entities/index.d.ts +3 -3
- package/dist/database-entities/index.d.ts.map +1 -1
- package/dist/database-entities/index.js +13 -2
- package/dist/facilities/cities/city.entity.d.ts +11 -0
- package/dist/facilities/cities/city.entity.d.ts.map +1 -0
- package/dist/facilities/cities/city.entity.js +69 -0
- package/dist/facilities/cities/index.d.ts +2 -0
- package/dist/facilities/cities/index.d.ts.map +1 -0
- package/dist/facilities/cities/index.js +4 -0
- package/dist/facilities/index.d.ts +1 -0
- package/dist/facilities/index.d.ts.map +1 -1
- package/dist/facilities/index.js +1 -0
- package/dist/tournaments/enums/tie-break-criterion.enum.d.ts +11 -0
- package/dist/tournaments/enums/tie-break-criterion.enum.d.ts.map +1 -0
- package/dist/tournaments/enums/tie-break-criterion.enum.js +23 -0
- package/dist/tournaments/index.d.ts +2 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +6 -0
- package/dist/tournaments/tournament-tie-break-configs/index.d.ts +2 -0
- package/dist/tournaments/tournament-tie-break-configs/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-tie-break-configs/index.js +4 -0
- package/dist/tournaments/tournament-tie-break-configs/tournament-tie-break-config.entity.d.ts +11 -0
- package/dist/tournaments/tournament-tie-break-configs/tournament-tie-break-config.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-tie-break-configs/tournament-tie-break-config.entity.js +67 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts +2 -0
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +4 -0
- package/package.json +2 -2
|
@@ -2,14 +2,14 @@ import { PasswordReset, RefreshToken, User, UserAuthProvider, UserOnboardingInte
|
|
|
2
2
|
import { BillingAccount, BillingEvent, BillingInvoice, BillingInvoiceLineItem, BillingPayment, BillingPlan, BillingProduct, BillingProviderWebhookEvent, BillingSubscription, BillingSubscriptionItem } from '../billing';
|
|
3
3
|
import { Organization, OrganizationUser, OrganizationUserBillingInfo, PhoneNumber } from '../central-auth';
|
|
4
4
|
import { Coupon, CouponUsage } from '../coupons';
|
|
5
|
-
import { Address, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
|
|
5
|
+
import { Address, City, Facility, FacilityImage, FacilityOwner, Field, FieldImage } from '../facilities';
|
|
6
6
|
import { FeedActivity, FeedActivitySubject, FeedOutbox } from '../feed';
|
|
7
7
|
import { TeamPlayerMergeHistory } from '../history-logs';
|
|
8
8
|
import { Notification, NotificationDelivery, NotificationDispatchLog, PushDeviceToken, UserNotificationPreference } from '../notifications';
|
|
9
9
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
10
10
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
11
11
|
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
|
|
12
|
-
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation } from '../tournaments';
|
|
12
|
+
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTieBreakConfig } from '../tournaments';
|
|
13
13
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
14
|
-
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
14
|
+
export declare const DATABASE_ENTITIES: (typeof PasswordReset | typeof Notification | typeof User | typeof NotificationDelivery | typeof NotificationDispatchLog | typeof PushDeviceToken | typeof UserNotificationPreference | typeof TeamPlayerMergeHistory | typeof Team | typeof PlayerTeam | typeof Player | typeof TournamentMatchGoal | typeof TournamentTeam | typeof TournamentMatch | typeof TournamentPlayer | typeof TournamentPenaltyShootout | typeof RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamModality | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionItem | typeof BillingSubscription | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
|
|
15
15
|
//# 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,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/database-entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM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hE,eAAO,MAAM,iBAAiB,yrEAuF7B,CAAC"}
|
|
@@ -25,7 +25,15 @@ import {
|
|
|
25
25
|
PhoneNumber
|
|
26
26
|
} from "../central-auth/index.js";
|
|
27
27
|
import { Coupon, CouponUsage } from "../coupons/index.js";
|
|
28
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
Address,
|
|
30
|
+
City,
|
|
31
|
+
Facility,
|
|
32
|
+
FacilityImage,
|
|
33
|
+
FacilityOwner,
|
|
34
|
+
Field,
|
|
35
|
+
FieldImage
|
|
36
|
+
} from "../facilities/index.js";
|
|
29
37
|
import { FeedActivity, FeedActivitySubject, FeedOutbox } from "../feed/index.js";
|
|
30
38
|
import { TeamPlayerMergeHistory } from "../history-logs/index.js";
|
|
31
39
|
import {
|
|
@@ -78,11 +86,13 @@ import {
|
|
|
78
86
|
TournamentRegulationFieldStatus,
|
|
79
87
|
TournamentRule,
|
|
80
88
|
TournamentTeam,
|
|
81
|
-
TournamentTeamInvitation
|
|
89
|
+
TournamentTeamInvitation,
|
|
90
|
+
TournamentTieBreakConfig
|
|
82
91
|
} from "../tournaments/index.js";
|
|
83
92
|
import { UserDomainEvent, UserEventView } from "../user-events/index.js";
|
|
84
93
|
const DATABASE_ENTITIES = [
|
|
85
94
|
Address,
|
|
95
|
+
City,
|
|
86
96
|
BillingProduct,
|
|
87
97
|
BillingPlan,
|
|
88
98
|
BillingAccount,
|
|
@@ -140,6 +150,7 @@ const DATABASE_ENTITIES = [
|
|
|
140
150
|
TournamentRule,
|
|
141
151
|
TournamentTeam,
|
|
142
152
|
TournamentTeamInvitation,
|
|
153
|
+
TournamentTieBreakConfig,
|
|
143
154
|
User,
|
|
144
155
|
UserAuthProvider,
|
|
145
156
|
UserOnboardingIntent,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICity } from '@natrave/facility-service-types';
|
|
2
|
+
import { BrazilianState } from '../../common/enums/brazilian-state.enum';
|
|
3
|
+
export declare class City implements ICity {
|
|
4
|
+
ibgeCode: number;
|
|
5
|
+
name: string;
|
|
6
|
+
nameAscii: string;
|
|
7
|
+
state: BrazilianState;
|
|
8
|
+
latitude: number;
|
|
9
|
+
longitude: number;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=city.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"city.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/cities/city.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAgBzE,qBAGa,IAAK,YAAW,KAAK;IAMhC,QAAQ,EAAE,MAAM,CAAC;IAOjB,IAAI,EAAE,MAAM,CAAC;IAQb,SAAS,EAAE,MAAM,CAAC;IAOlB,KAAK,EAAE,cAAc,CAAC;IAStB,QAAQ,EAAE,MAAM,CAAC;IASjB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { Column, Entity, Index, PrimaryColumn } from "typeorm";
|
|
12
|
+
import { DecimalTransformer } from "../../common/utils/decimal-transformer.utils.js";
|
|
13
|
+
let City = class {
|
|
14
|
+
};
|
|
15
|
+
__decorateClass([
|
|
16
|
+
PrimaryColumn({
|
|
17
|
+
name: "ibge_code",
|
|
18
|
+
type: "int",
|
|
19
|
+
comment: "C\xF3digo IBGE do munic\xEDpio (identidade est\xE1vel, 7 d\xEDgitos)."
|
|
20
|
+
})
|
|
21
|
+
], City.prototype, "ibgeCode", 2);
|
|
22
|
+
__decorateClass([
|
|
23
|
+
Column({
|
|
24
|
+
type: "varchar",
|
|
25
|
+
length: 120,
|
|
26
|
+
comment: 'Nome oficial do munic\xEDpio (ex.: "Sorocaba").'
|
|
27
|
+
})
|
|
28
|
+
], City.prototype, "name", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({
|
|
31
|
+
name: "name_ascii",
|
|
32
|
+
type: "varchar",
|
|
33
|
+
length: 120,
|
|
34
|
+
comment: "Nome normalizado (min\xFAsculo, sem acento) usado na busca por nome."
|
|
35
|
+
})
|
|
36
|
+
], City.prototype, "nameAscii", 2);
|
|
37
|
+
__decorateClass([
|
|
38
|
+
Column({
|
|
39
|
+
type: "varchar",
|
|
40
|
+
length: 2,
|
|
41
|
+
comment: "Estado (UF) do munic\xEDpio."
|
|
42
|
+
})
|
|
43
|
+
], City.prototype, "state", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
Column({
|
|
46
|
+
type: "decimal",
|
|
47
|
+
precision: 10,
|
|
48
|
+
scale: 8,
|
|
49
|
+
transformer: DecimalTransformer,
|
|
50
|
+
comment: "Latitude do centroide do munic\xEDpio."
|
|
51
|
+
})
|
|
52
|
+
], City.prototype, "latitude", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
Column({
|
|
55
|
+
type: "decimal",
|
|
56
|
+
precision: 11,
|
|
57
|
+
scale: 8,
|
|
58
|
+
transformer: DecimalTransformer,
|
|
59
|
+
comment: "Longitude do centroide do munic\xEDpio."
|
|
60
|
+
})
|
|
61
|
+
], City.prototype, "longitude", 2);
|
|
62
|
+
City = __decorateClass([
|
|
63
|
+
Entity("cities"),
|
|
64
|
+
Index("idx_cities_state", ["state"]),
|
|
65
|
+
Index("idx_cities_name_ascii", ["nameAscii"])
|
|
66
|
+
], City);
|
|
67
|
+
export {
|
|
68
|
+
City
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/facilities/cities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/facilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/facilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
package/dist/facilities/index.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum TieBreakCriterion {
|
|
2
|
+
POINTS = "points",
|
|
3
|
+
WINS = "wins",
|
|
4
|
+
GOAL_DIFFERENCE = "goal-difference",
|
|
5
|
+
GOALS_FOR = "goals-for",
|
|
6
|
+
GOALS_AGAINST = "goals-against",
|
|
7
|
+
FEWEST_RED_CARDS = "fewest-red-cards",
|
|
8
|
+
FEWEST_YELLOW_CARDS = "fewest-yellow-cards"
|
|
9
|
+
}
|
|
10
|
+
export declare const DEFAULT_TIE_BREAK_ORDER: readonly TieBreakCriterion[];
|
|
11
|
+
//# sourceMappingURL=tie-break-criterion.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tie-break-criterion.enum.d.ts","sourceRoot":"","sources":["../../../src/tournaments/enums/tie-break-criterion.enum.ts"],"names":[],"mappings":"AASA,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;CAC5C;AAMD,eAAO,MAAM,uBAAuB,EAAE,SAAS,iBAAiB,EAQ/D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var TieBreakCriterion = /* @__PURE__ */ ((TieBreakCriterion2) => {
|
|
2
|
+
TieBreakCriterion2["POINTS"] = "points";
|
|
3
|
+
TieBreakCriterion2["WINS"] = "wins";
|
|
4
|
+
TieBreakCriterion2["GOAL_DIFFERENCE"] = "goal-difference";
|
|
5
|
+
TieBreakCriterion2["GOALS_FOR"] = "goals-for";
|
|
6
|
+
TieBreakCriterion2["GOALS_AGAINST"] = "goals-against";
|
|
7
|
+
TieBreakCriterion2["FEWEST_RED_CARDS"] = "fewest-red-cards";
|
|
8
|
+
TieBreakCriterion2["FEWEST_YELLOW_CARDS"] = "fewest-yellow-cards";
|
|
9
|
+
return TieBreakCriterion2;
|
|
10
|
+
})(TieBreakCriterion || {});
|
|
11
|
+
const DEFAULT_TIE_BREAK_ORDER = [
|
|
12
|
+
"points" /* POINTS */,
|
|
13
|
+
"wins" /* WINS */,
|
|
14
|
+
"goal-difference" /* GOAL_DIFFERENCE */,
|
|
15
|
+
"goals-for" /* GOALS_FOR */,
|
|
16
|
+
"goals-against" /* GOALS_AGAINST */,
|
|
17
|
+
"fewest-red-cards" /* FEWEST_RED_CARDS */,
|
|
18
|
+
"fewest-yellow-cards" /* FEWEST_YELLOW_CARDS */
|
|
19
|
+
];
|
|
20
|
+
export {
|
|
21
|
+
DEFAULT_TIE_BREAK_ORDER,
|
|
22
|
+
TieBreakCriterion
|
|
23
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from './enums/tie-break-criterion.enum';
|
|
1
2
|
export * from './regulation-extractions';
|
|
2
3
|
export * from './tournament-allowed-phone';
|
|
3
4
|
export * from './tournament-billing-outbox';
|
|
@@ -30,5 +31,6 @@ export * from './tournament-regulation-fields';
|
|
|
30
31
|
export * from './tournament-rules';
|
|
31
32
|
export * from './tournament-team-invitations';
|
|
32
33
|
export * from './tournament-teams';
|
|
34
|
+
export * from './tournament-tie-break-configs';
|
|
33
35
|
export * from './tournaments';
|
|
34
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,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,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAA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
|
+
import { DEFAULT_TIE_BREAK_ORDER, TieBreakCriterion } from "./enums/tie-break-criterion.enum.js";
|
|
1
2
|
export * from "./regulation-extractions/index.js";
|
|
2
3
|
export * from "./tournament-allowed-phone/index.js";
|
|
3
4
|
export * from "./tournament-billing-outbox/index.js";
|
|
@@ -30,4 +31,9 @@ export * from "./tournament-regulation-fields/index.js";
|
|
|
30
31
|
export * from "./tournament-rules/index.js";
|
|
31
32
|
export * from "./tournament-team-invitations/index.js";
|
|
32
33
|
export * from "./tournament-teams/index.js";
|
|
34
|
+
export * from "./tournament-tie-break-configs/index.js";
|
|
33
35
|
export * from "./tournaments/index.js";
|
|
36
|
+
export {
|
|
37
|
+
DEFAULT_TIE_BREAK_ORDER,
|
|
38
|
+
TieBreakCriterion
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-tie-break-configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TieBreakCriterion } from '../enums/tie-break-criterion.enum';
|
|
2
|
+
import { Tournament } from '../tournaments';
|
|
3
|
+
export declare class TournamentTieBreakConfig {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentId: number;
|
|
6
|
+
criteria: TieBreakCriterion[];
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
tournament: Tournament;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tournament-tie-break-config.entity.d.ts.map
|
package/dist/tournaments/tournament-tie-break-configs/tournament-tie-break-config.entity.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-tie-break-config.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-tie-break-configs/tournament-tie-break-config.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAgB5C,qBAEa,wBAAwB;IAInC,EAAE,EAAE,MAAM,CAAC;IAQX,YAAY,EAAE,MAAM,CAAC;IAMrB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAO9B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
JoinColumn,
|
|
17
|
+
OneToOne,
|
|
18
|
+
PrimaryGeneratedColumn,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { Tournament } from "../tournaments/index.js";
|
|
22
|
+
let TournamentTieBreakConfig = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryGeneratedColumn({
|
|
26
|
+
comment: "Identificador \xFAnico da configura\xE7\xE3o de desempate."
|
|
27
|
+
})
|
|
28
|
+
], TournamentTieBreakConfig.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({
|
|
31
|
+
name: "tournament_id",
|
|
32
|
+
type: "int",
|
|
33
|
+
unique: true,
|
|
34
|
+
comment: "Identificador do torneio associado a esta configura\xE7\xE3o."
|
|
35
|
+
})
|
|
36
|
+
], TournamentTieBreakConfig.prototype, "tournamentId", 2);
|
|
37
|
+
__decorateClass([
|
|
38
|
+
Column({
|
|
39
|
+
type: "jsonb",
|
|
40
|
+
comment: "Ordem customizada dos crit\xE9rios de desempate aplicados \xE0 classifica\xE7\xE3o."
|
|
41
|
+
})
|
|
42
|
+
], TournamentTieBreakConfig.prototype, "criteria", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
CreateDateColumn({
|
|
45
|
+
name: "created_at",
|
|
46
|
+
type: "timestamptz",
|
|
47
|
+
comment: "Data e hora de cria\xE7\xE3o da configura\xE7\xE3o."
|
|
48
|
+
})
|
|
49
|
+
], TournamentTieBreakConfig.prototype, "createdAt", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
UpdateDateColumn({
|
|
52
|
+
name: "updated_at",
|
|
53
|
+
type: "timestamptz",
|
|
54
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o da configura\xE7\xE3o."
|
|
55
|
+
})
|
|
56
|
+
], TournamentTieBreakConfig.prototype, "updatedAt", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
OneToOne(() => Tournament, (tournament) => tournament.tieBreakConfig, { onDelete: "CASCADE" }),
|
|
59
|
+
JoinColumn({ name: "tournament_id" })
|
|
60
|
+
], TournamentTieBreakConfig.prototype, "tournament", 2);
|
|
61
|
+
TournamentTieBreakConfig = __decorateClass([
|
|
62
|
+
Entity("tournament_tie_break_configs"),
|
|
63
|
+
Index("IDX_tournament_tie_break_configs_tournament_id", ["tournamentId"])
|
|
64
|
+
], TournamentTieBreakConfig);
|
|
65
|
+
export {
|
|
66
|
+
TournamentTieBreakConfig
|
|
67
|
+
};
|
|
@@ -23,6 +23,7 @@ import { TournamentRegistrationRequirement } from '../tournament-registration-re
|
|
|
23
23
|
import { TournamentRule } from '../tournament-rules';
|
|
24
24
|
import { TournamentTeamInvitation } from '../tournament-team-invitations';
|
|
25
25
|
import { TournamentTeam } from '../tournament-teams';
|
|
26
|
+
import { TournamentTieBreakConfig } from '../tournament-tie-break-configs';
|
|
26
27
|
import { TournamentRegulationMode } from './enums/tournament-regulation-mode.enum';
|
|
27
28
|
type TournamentContract = Omit<ITournament, 'publicationStatus'>;
|
|
28
29
|
export declare class Tournament implements TournamentContract {
|
|
@@ -62,6 +63,7 @@ export declare class Tournament implements TournamentContract {
|
|
|
62
63
|
rule: TournamentRule;
|
|
63
64
|
playerRule: TournamentPlayerRule;
|
|
64
65
|
format: TournamentFormatConfig;
|
|
66
|
+
tieBreakConfig: TournamentTieBreakConfig;
|
|
65
67
|
prizeRules: TournamentPrizeRule[];
|
|
66
68
|
payments: TournamentPayment[];
|
|
67
69
|
matches: TournamentMatch[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournaments/tournament.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,oCAAoC,CAAC;AAgB5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EA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AAoB,CAAC;IAGjC,MAAM,EAAE,sBAAsB,CAAC;IAG/B,cAAc,EAAE,wBAAwB,CAAC;IAGzC,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,OAAO,EAAE,eAAe,EAAE,CAAC;IAG3B,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAG3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAG5B,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;IAGnD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,YAAY,EAAE,qBAAqB,EAAE,CAAC;IAItC,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAGlC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAG9B,oBAAoB,EAAE,6BAA6B,EAAE,CAAC;IAGtD,eAAe,EAAE,wBAAwB,EAAE,CAAC;IAG5C,wBAAwB,EAAE,iCAAiC,EAAE,CAAC;IAG9D,aAAa,EAAE,sBAAsB,EAAE,CAAC;IAKxC,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
|
|
@@ -50,6 +50,7 @@ import { TournamentRegistrationRequirement } from "../tournament-registration-re
|
|
|
50
50
|
import { TournamentRule } from "../tournament-rules/index.js";
|
|
51
51
|
import { TournamentTeamInvitation } from "../tournament-team-invitations/index.js";
|
|
52
52
|
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
53
|
+
import { TournamentTieBreakConfig } from "../tournament-tie-break-configs/index.js";
|
|
53
54
|
import { TournamentRegulationMode } from "./enums/tournament-regulation-mode.enum.js";
|
|
54
55
|
let Tournament = class {
|
|
55
56
|
};
|
|
@@ -291,6 +292,9 @@ __decorateClass([
|
|
|
291
292
|
__decorateClass([
|
|
292
293
|
OneToOne(() => TournamentFormatConfig, (format) => format.tournament)
|
|
293
294
|
], Tournament.prototype, "format", 2);
|
|
295
|
+
__decorateClass([
|
|
296
|
+
OneToOne(() => TournamentTieBreakConfig, (config) => config.tournament)
|
|
297
|
+
], Tournament.prototype, "tieBreakConfig", 2);
|
|
294
298
|
__decorateClass([
|
|
295
299
|
OneToMany(() => TournamentPrizeRule, (prizeRule) => prizeRule.tournament)
|
|
296
300
|
], Tournament.prototype, "prizeRules", 2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@natrave/shared-entities",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"description": "Entidades compartilhadass da NaTrave",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@natrave/auth-service-types": "^1.2.2",
|
|
47
|
-
"@natrave/facility-service-types": "^0.0
|
|
47
|
+
"@natrave/facility-service-types": "^0.2.0",
|
|
48
48
|
"@natrave/notification-service-types": "^1.1.73",
|
|
49
49
|
"@natrave/tournaments-service-types": "^1.4.4",
|
|
50
50
|
"@natrave/user-domain-events": "^0.1.10",
|