@natrave/shared-entities 8.28.0 → 8.30.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/common/utils/decimal-transformer.utils.d.ts +4 -0
- package/dist/common/utils/decimal-transformer.utils.d.ts.map +1 -1
- package/dist/common/utils/decimal-transformer.utils.js +15 -1
- 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/facilities/addresses/address.entity.d.ts +3 -4
- package/dist/facilities/addresses/address.entity.d.ts.map +1 -1
- package/dist/facilities/addresses/address.entity.js +7 -5
- package/dist/tournaments/category-broadcast-settings/category-broadcast-setting.entity.d.ts +10 -0
- package/dist/tournaments/category-broadcast-settings/category-broadcast-setting.entity.d.ts.map +1 -0
- package/dist/tournaments/category-broadcast-settings/category-broadcast-setting.entity.js +79 -0
- package/dist/tournaments/category-broadcast-settings/index.d.ts +2 -0
- package/dist/tournaments/category-broadcast-settings/index.d.ts.map +1 -0
- package/dist/tournaments/category-broadcast-settings/index.js +4 -0
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-matches/enums/match-broadcast-mode.enum.d.ts +6 -0
- package/dist/tournaments/tournament-matches/enums/match-broadcast-mode.enum.d.ts.map +1 -0
- package/dist/tournaments/tournament-matches/enums/match-broadcast-mode.enum.js +9 -0
- package/dist/tournaments/tournament-matches/index.d.ts +1 -0
- package/dist/tournaments/tournament-matches/index.d.ts.map +1 -1
- package/dist/tournaments/tournament-matches/index.js +2 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts +2 -0
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +17 -1
- package/package.json +1 -1
|
@@ -2,4 +2,8 @@ export declare const DecimalTransformer: {
|
|
|
2
2
|
to: (value: number) => number;
|
|
3
3
|
from: (value: string) => number;
|
|
4
4
|
};
|
|
5
|
+
export declare const NullableDecimalTransformer: {
|
|
6
|
+
to: (value: number | null | undefined) => number | null;
|
|
7
|
+
from: (value: string | null) => number | null;
|
|
8
|
+
};
|
|
5
9
|
//# sourceMappingURL=decimal-transformer.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decimal-transformer.utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/decimal-transformer.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;gBACjB,MAAM,KAAG,MAAM;kBAMb,MAAM,KAAG,MAAM;CAK9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"decimal-transformer.utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/decimal-transformer.utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;gBACjB,MAAM,KAAG,MAAM;kBAMb,MAAM,KAAG,MAAM;CAK9B,CAAC;AAMF,eAAO,MAAM,0BAA0B;gBACzB,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAAI;kBAMvC,MAAM,GAAG,IAAI,KAAG,MAAM,GAAG,IAAI;CAK5C,CAAC"}
|
|
@@ -11,6 +11,20 @@ const DecimalTransformer = {
|
|
|
11
11
|
return isNaN(parsed) ? NaN : parsed;
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
+
const NullableDecimalTransformer = {
|
|
15
|
+
to: (value) => {
|
|
16
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return value;
|
|
20
|
+
},
|
|
21
|
+
from: (value) => {
|
|
22
|
+
if (value === null || value === void 0) return null;
|
|
23
|
+
const parsed = parseFloat(value.trim());
|
|
24
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
14
27
|
export {
|
|
15
|
-
DecimalTransformer
|
|
28
|
+
DecimalTransformer,
|
|
29
|
+
NullableDecimalTransformer
|
|
16
30
|
};
|
|
@@ -10,7 +10,7 @@ import { Notification, NotificationDelivery, NotificationDispatchLog, PushDevice
|
|
|
10
10
|
import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
|
|
11
11
|
import { Player, PlayerPersonalData, PlayerPosition } from '../players';
|
|
12
12
|
import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamKit, TeamModality, TeamSponsor, TeamTrophy } from '../teams';
|
|
13
|
-
import { Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
|
|
13
|
+
import { CategoryBroadcastSetting, Referee, RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBillingOutbox, TournamentBracket, TournamentBracketSlot, TournamentCategoryGroup, TournamentContact, TournamentCoupon, TournamentCreationDraft, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentGroupContact, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchKit, TournamentMatchObservation, TournamentMatchPlayerNumber, TournamentMatchReferee, TournamentMatchRule, TournamentMatchSchema, TournamentMatchSubstitution, TournamentMatchTimeout, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPointsAdjustment, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, TournamentTeam, TournamentTeamInvitation, TournamentTeamMemberNote, TournamentTieBreakConfig } from '../tournaments';
|
|
14
14
|
import { UserDomainEvent, UserEventView } from '../user-events';
|
|
15
|
-
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 TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof
|
|
15
|
+
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 TournamentMatchKit | typeof TournamentMatchSubstitution | typeof TournamentMatchTimeout | typeof TournamentPenaltyShootout | typeof CategoryBroadcastSetting | typeof Tournament | typeof TournamentMatchReferee | typeof Referee | typeof RegulationExtraction | typeof TournamentAllowedPhone | typeof PhoneNumber | typeof TournamentBillingOutbox | typeof TournamentGroupContact | typeof TournamentCategoryGroup | typeof Organization | typeof TournamentContact | typeof Coupon | typeof CouponUsage | typeof TournamentCoupon | typeof TournamentCreationDraft | typeof City | typeof FacilityImage | typeof Facility | typeof FacilityOwner | typeof Field | typeof FieldImage | typeof TournamentFacility | typeof TournamentFollow | typeof TournamentFormatConfig | typeof TournamentMatchObservation | typeof TournamentMatchPlayerNumber | typeof TournamentMatchRule | typeof TournamentMatchSchema | typeof TournamentMatchAvailability | typeof UserPaymentProvider | typeof PaymentProvider | typeof Payment | typeof TournamentPayment | typeof OrganizationUser | typeof TournamentPlayerRule | typeof TournamentPointsAdjustment | typeof TournamentPrizeRule | typeof TournamentPublicationChargeRule | typeof TournamentRegistrationRequest | typeof TournamentRegistrationRequirement | typeof TournamentRegulationFieldStatus | typeof TournamentTeamInvitation | typeof TournamentTeamMemberNote | typeof TournamentTieBreakConfig | typeof Address | typeof OrganizationUserBillingInfo | typeof TournamentGroup | typeof TournamentBracket | typeof TournamentBracketSlot | typeof TeamTrophy | typeof TournamentMatchCard | typeof TeamAccessCode | typeof TeamJoinRequest | typeof TeamKit | typeof TeamModality | typeof TeamSponsor | typeof PlayerPosition | typeof PlayerPersonalData | typeof UserAuthProvider | typeof RefreshToken | typeof UserOnboardingIntent | typeof UserVerification | typeof BillingProduct | typeof BillingPlan | typeof BillingSubscriptionGrant | typeof BillingSubscription | typeof BillingSubscriptionItem | typeof BillingAccount | typeof BillingEvent | typeof BillingInvoice | typeof BillingInvoiceLineItem | typeof BillingMatchUsage | typeof BillingPayment | typeof BillingProviderWebhookEvent | typeof FeedActivityReaction | typeof FeedActivity | typeof FeedActivitySubject | typeof FeedOutbox | typeof FinanceAuditEvent | typeof FinanceEntryItem | typeof FinanceEntry | typeof FinanceLedger | typeof UserDomainEvent | typeof UserEventView)[];
|
|
16
16
|
//# 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,iBAAiB,EACjB,cAAc,EACd,WAAW,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B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,+BAA+B,EAC/B,6BAA6B,EAC7B,iCAAiC,EAEjC,+BAA+B,EAE/B,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,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,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,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,wBAAwB,EACxB,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,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9F,OAAO,EAAE,iBAAiB,EA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iB,gwFA2G7B,CAAC"}
|
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
TeamTrophy
|
|
60
60
|
} from "../teams/index.js";
|
|
61
61
|
import {
|
|
62
|
+
CategoryBroadcastSetting,
|
|
62
63
|
Referee,
|
|
63
64
|
RegulationExtraction,
|
|
64
65
|
Tournament,
|
|
@@ -107,6 +108,7 @@ import {
|
|
|
107
108
|
import { UserDomainEvent, UserEventView } from "../user-events/index.js";
|
|
108
109
|
const DATABASE_ENTITIES = [
|
|
109
110
|
Address,
|
|
111
|
+
CategoryBroadcastSetting,
|
|
110
112
|
City,
|
|
111
113
|
BillingProduct,
|
|
112
114
|
BillingPlan,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IAddress } from '@natrave/facility-service-types';
|
|
2
1
|
import { OrganizationUserBillingInfo } from '../../central-auth';
|
|
3
2
|
import { BrazilianState } from '../../common/enums/brazilian-state.enum';
|
|
4
3
|
import { Facility } from '../../facilities/facilities';
|
|
5
|
-
export declare class Address
|
|
4
|
+
export declare class Address {
|
|
6
5
|
id: number;
|
|
7
6
|
createdAt: Date;
|
|
8
7
|
updatedAt: Date;
|
|
@@ -14,8 +13,8 @@ export declare class Address implements IAddress {
|
|
|
14
13
|
state: BrazilianState;
|
|
15
14
|
postalCode: string;
|
|
16
15
|
country: string;
|
|
17
|
-
latitude: number;
|
|
18
|
-
longitude: number;
|
|
16
|
+
latitude: number | null;
|
|
17
|
+
longitude: number | null;
|
|
19
18
|
facilities: Facility[];
|
|
20
19
|
organizationUserBillingInfos: OrganizationUserBillingInfo[];
|
|
21
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAWvD,qBAEa,OAAO;IAIlB,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,MAAM,CAAC;IAQtB,MAAM,EAAE,MAAM,CAAC;IAQf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,YAAY,EAAE,MAAM,CAAC;IAOrB,IAAI,EAAE,MAAM,CAAC;IAOb,KAAK,EAAE,cAAc,CAAC;IAQtB,UAAU,EAAE,MAAM,CAAC;IAOnB,OAAO,EAAE,MAAM,CAAC;IAWhB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAWxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAUzB,UAAU,EAAE,QAAQ,EAAE,CAAC;IAMvB,4BAA4B,EAAE,2BAA2B,EAAE,CAAC;CAC7D"}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "typeorm";
|
|
20
20
|
import { OrganizationUserBillingInfo } from "../../central-auth/index.js";
|
|
21
21
|
import { BrazilianState } from "../../common/enums/brazilian-state.enum.js";
|
|
22
|
-
import {
|
|
22
|
+
import { NullableDecimalTransformer } from "../../common/utils/decimal-transformer.utils.js";
|
|
23
23
|
import { Facility } from "../../facilities/facilities/index.js";
|
|
24
24
|
let Address = class {
|
|
25
25
|
};
|
|
@@ -107,8 +107,9 @@ __decorateClass([
|
|
|
107
107
|
type: "decimal",
|
|
108
108
|
precision: 10,
|
|
109
109
|
scale: 8,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
nullable: true,
|
|
111
|
+
transformer: NullableDecimalTransformer,
|
|
112
|
+
comment: "Coordenada geogr\xE1fica de latitude. Nulo quando o local n\xE3o tem localiza\xE7\xE3o conhecida."
|
|
112
113
|
})
|
|
113
114
|
], Address.prototype, "latitude", 2);
|
|
114
115
|
__decorateClass([
|
|
@@ -116,8 +117,9 @@ __decorateClass([
|
|
|
116
117
|
type: "decimal",
|
|
117
118
|
precision: 11,
|
|
118
119
|
scale: 8,
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
nullable: true,
|
|
121
|
+
transformer: NullableDecimalTransformer,
|
|
122
|
+
comment: "Coordenada geogr\xE1fica de longitude. Nulo quando o local n\xE3o tem localiza\xE7\xE3o conhecida."
|
|
121
123
|
})
|
|
122
124
|
], Address.prototype, "longitude", 2);
|
|
123
125
|
__decorateClass([
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tournament } from '../tournaments/tournament.entity';
|
|
2
|
+
export declare class CategoryBroadcastSetting {
|
|
3
|
+
categoryId: number;
|
|
4
|
+
broadcastUrl: string | null;
|
|
5
|
+
setByOrganizationUserId: number | null;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
category?: Tournament;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=category-broadcast-setting.entity.d.ts.map
|
package/dist/tournaments/category-broadcast-settings/category-broadcast-setting.entity.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category-broadcast-setting.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/category-broadcast-settings/category-broadcast-setting.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AA4B9D,qBAOa,wBAAwB;IAOnC,UAAU,EAAE,MAAM,CAAC;IAWnB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAU5B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOvC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAUhB,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
Check,
|
|
13
|
+
Column,
|
|
14
|
+
CreateDateColumn,
|
|
15
|
+
Entity,
|
|
16
|
+
JoinColumn,
|
|
17
|
+
ManyToOne,
|
|
18
|
+
PrimaryColumn,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { Tournament } from "../tournaments/tournament.entity.js";
|
|
22
|
+
let CategoryBroadcastSetting = class {
|
|
23
|
+
};
|
|
24
|
+
__decorateClass([
|
|
25
|
+
PrimaryColumn({
|
|
26
|
+
name: "category_id",
|
|
27
|
+
type: "int",
|
|
28
|
+
primaryKeyConstraintName: "PK_category_broadcast_settings",
|
|
29
|
+
comment: "Categoria (linha de tournaments)."
|
|
30
|
+
})
|
|
31
|
+
], CategoryBroadcastSetting.prototype, "categoryId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
name: "broadcast_url",
|
|
35
|
+
type: "varchar",
|
|
36
|
+
length: 2048,
|
|
37
|
+
nullable: true,
|
|
38
|
+
comment: "Link de transmiss\xE3o da categoria (http/https). Nulo = o organizador removeu o link; as partidas em broadcast_mode category ficam sem transmiss\xE3o."
|
|
39
|
+
})
|
|
40
|
+
], CategoryBroadcastSetting.prototype, "broadcastUrl", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
Column({
|
|
43
|
+
name: "set_by_organization_user_id",
|
|
44
|
+
type: "int",
|
|
45
|
+
nullable: true,
|
|
46
|
+
comment: "organization_users.id de quem gravou o link por \xFAltimo. Nulo quando a escrita n\xE3o veio de um organizador."
|
|
47
|
+
})
|
|
48
|
+
], CategoryBroadcastSetting.prototype, "setByOrganizationUserId", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
CreateDateColumn({
|
|
51
|
+
name: "created_at",
|
|
52
|
+
type: "timestamptz",
|
|
53
|
+
comment: "Quando a categoria ganhou link pela primeira vez."
|
|
54
|
+
})
|
|
55
|
+
], CategoryBroadcastSetting.prototype, "createdAt", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
UpdateDateColumn({
|
|
58
|
+
name: "updated_at",
|
|
59
|
+
type: "timestamptz",
|
|
60
|
+
comment: "\xDAltima troca ou remo\xE7\xE3o do link."
|
|
61
|
+
})
|
|
62
|
+
], CategoryBroadcastSetting.prototype, "updatedAt", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
ManyToOne(() => Tournament, { onDelete: "CASCADE" }),
|
|
65
|
+
JoinColumn({
|
|
66
|
+
name: "category_id",
|
|
67
|
+
foreignKeyConstraintName: "FK_category_broadcast_settings_category"
|
|
68
|
+
})
|
|
69
|
+
], CategoryBroadcastSetting.prototype, "category", 2);
|
|
70
|
+
CategoryBroadcastSetting = __decorateClass([
|
|
71
|
+
Entity("category_broadcast_settings"),
|
|
72
|
+
Check(
|
|
73
|
+
"CHK_category_broadcast_settings_url",
|
|
74
|
+
`"broadcast_url" IS NULL OR (btrim("broadcast_url") <> '' AND char_length("broadcast_url") <= 2048)`
|
|
75
|
+
)
|
|
76
|
+
], CategoryBroadcastSetting);
|
|
77
|
+
export {
|
|
78
|
+
CategoryBroadcastSetting
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/category-broadcast-settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './category-broadcast-settings';
|
|
1
2
|
export { CARD_REASONS_BY_TYPE, CardReason } from './enums/card-reason.enum';
|
|
2
3
|
export type { GoalKind } from './enums/goal-method.enum';
|
|
3
4
|
export { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from './enums/goal-method.enum';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tournaments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,cAAc,YAAY,CAAC;AAC3B,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,8BAA8B,CAAC;AAC7C,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,yBAAyB,CAAC;AACxC,cAAc,iC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";
|
|
2
3
|
import { GOAL_METHODS_BY_KIND, GoalMethod, resolveGoalKind } from "./enums/goal-method.enum.js";
|
|
3
4
|
import { MatchEventType } from "./enums/match-event-type.enum.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-broadcast-mode.enum.d.ts","sourceRoot":"","sources":["../../../../src/tournaments/tournament-matches/enums/match-broadcast-mode.enum.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAK5B,QAAQ,aAAa;IAGrB,MAAM,WAAW;IAGjB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var MatchBroadcastMode = /* @__PURE__ */ ((MatchBroadcastMode2) => {
|
|
2
|
+
MatchBroadcastMode2["CATEGORY"] = "category";
|
|
3
|
+
MatchBroadcastMode2["CUSTOM"] = "custom";
|
|
4
|
+
MatchBroadcastMode2["NONE"] = "none";
|
|
5
|
+
return MatchBroadcastMode2;
|
|
6
|
+
})(MatchBroadcastMode || {});
|
|
7
|
+
export {
|
|
8
|
+
MatchBroadcastMode
|
|
9
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { MatchBroadcastMode } from './enums/match-broadcast-mode.enum';
|
|
1
2
|
export { MatchCreationSource } from './enums/match-creation-source.enum';
|
|
2
3
|
export { MatchResultEntryMode } from './enums/match-result-entry-mode.enum';
|
|
3
4
|
export { MatchScoresheetSource } from './enums/match-scoresheet-source.enum';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { MatchBroadcastMode } from "./enums/match-broadcast-mode.enum.js";
|
|
1
2
|
import { MatchCreationSource } from "./enums/match-creation-source.enum.js";
|
|
2
3
|
import { MatchResultEntryMode } from "./enums/match-result-entry-mode.enum.js";
|
|
3
4
|
import { MatchScoresheetSource } from "./enums/match-scoresheet-source.enum.js";
|
|
4
5
|
import { TournamentMatch } from "./tournament-match.entity.js";
|
|
5
6
|
export {
|
|
7
|
+
MatchBroadcastMode,
|
|
6
8
|
MatchCreationSource,
|
|
7
9
|
MatchResultEntryMode,
|
|
8
10
|
MatchScoresheetSource,
|
|
@@ -12,6 +12,7 @@ import { TournamentMatchTimeout } from '../tournament-match-timeouts';
|
|
|
12
12
|
import { TournamentPenaltyShootout } from '../tournament-penalty-shootouts';
|
|
13
13
|
import { TournamentTeam } from '../tournament-teams';
|
|
14
14
|
import { Tournament } from '../tournaments';
|
|
15
|
+
import { MatchBroadcastMode } from './enums/match-broadcast-mode.enum';
|
|
15
16
|
import { MatchCreationSource } from './enums/match-creation-source.enum';
|
|
16
17
|
import { MatchResultEntryMode } from './enums/match-result-entry-mode.enum';
|
|
17
18
|
import { MatchScoresheetSource } from './enums/match-scoresheet-source.enum';
|
|
@@ -34,6 +35,7 @@ export declare class TournamentMatch {
|
|
|
34
35
|
walkoverReason: string | null;
|
|
35
36
|
broadcastUrl: string | null;
|
|
36
37
|
broadcastUrlSetAt: Date | null;
|
|
38
|
+
broadcastMode: MatchBroadcastMode;
|
|
37
39
|
startedAt: Date | null;
|
|
38
40
|
matchDateSetOnStart: boolean;
|
|
39
41
|
advancingTeamId: number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-match.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-matches/tournament-match.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAevF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"tournament-match.entity.d.ts","source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,kBAAkB,EAAE,CAAC;IAG3B,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAG7C,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IAGnC,YAAY,EAAE,0BAA0B,EAAE,CAAC;IAG3C,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IAGtC,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IAGvC,eAAe,EAAE,yBAAyB,CAAC;CAC5C"}
|
|
@@ -35,9 +35,11 @@ import { TournamentMatchTimeout } from "../tournament-match-timeouts/index.js";
|
|
|
35
35
|
import { TournamentPenaltyShootout } from "../tournament-penalty-shootouts/index.js";
|
|
36
36
|
import { TournamentTeam } from "../tournament-teams/index.js";
|
|
37
37
|
import { Tournament } from "../tournaments/index.js";
|
|
38
|
+
import { MatchBroadcastMode } from "./enums/match-broadcast-mode.enum.js";
|
|
38
39
|
import { MatchCreationSource } from "./enums/match-creation-source.enum.js";
|
|
39
40
|
import { MatchResultEntryMode } from "./enums/match-result-entry-mode.enum.js";
|
|
40
41
|
import { MatchScoresheetSource } from "./enums/match-scoresheet-source.enum.js";
|
|
42
|
+
const BROADCAST_MODES = Object.values(MatchBroadcastMode).map((mode) => `'${mode}'`).join(", ");
|
|
41
43
|
let TournamentMatch = class {
|
|
42
44
|
};
|
|
43
45
|
__decorateClass([
|
|
@@ -160,7 +162,7 @@ __decorateClass([
|
|
|
160
162
|
type: "varchar",
|
|
161
163
|
nullable: true,
|
|
162
164
|
default: null,
|
|
163
|
-
comment: "
|
|
165
|
+
comment: "Link de transmiss\xE3o que vale para a partida, j\xE1 resolvido: o pr\xF3prio (broadcast_mode custom), o da categoria (category) ou nulo. Quem l\xEA n\xE3o consulta a categoria."
|
|
164
166
|
})
|
|
165
167
|
], TournamentMatch.prototype, "broadcastUrl", 2);
|
|
166
168
|
__decorateClass([
|
|
@@ -172,6 +174,15 @@ __decorateClass([
|
|
|
172
174
|
comment: "Instante em que a URL de transmiss\xE3o foi definida (\xFAltima altera\xE7\xE3o). Fica null quando n\xE3o h\xE1 link."
|
|
173
175
|
})
|
|
174
176
|
], TournamentMatch.prototype, "broadcastUrlSetAt", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
Column({
|
|
179
|
+
name: "broadcast_mode",
|
|
180
|
+
type: "varchar",
|
|
181
|
+
length: 10,
|
|
182
|
+
default: MatchBroadcastMode.CATEGORY,
|
|
183
|
+
comment: "De onde vem o broadcast_url: category (segue o link da categoria), custom (link pr\xF3prio) ou none (sem transmiss\xE3o). Default category: partida nova j\xE1 segue a categoria."
|
|
184
|
+
})
|
|
185
|
+
], TournamentMatch.prototype, "broadcastMode", 2);
|
|
175
186
|
__decorateClass([
|
|
176
187
|
Column({
|
|
177
188
|
name: "started_at",
|
|
@@ -356,6 +367,11 @@ TournamentMatch = __decorateClass([
|
|
|
356
367
|
Check(`
|
|
357
368
|
(advancement_reason IS NULL OR advancing_team_id IS NOT NULL)
|
|
358
369
|
`),
|
|
370
|
+
Check("CHK_tournament_matches_broadcast_mode", `"broadcast_mode" IN (${BROADCAST_MODES})`),
|
|
371
|
+
Check(
|
|
372
|
+
"CHK_tournament_matches_broadcast_none_without_url",
|
|
373
|
+
`"broadcast_mode" <> '${MatchBroadcastMode.NONE}' OR "broadcast_url" IS NULL`
|
|
374
|
+
),
|
|
359
375
|
Entity("tournament_matches")
|
|
360
376
|
], TournamentMatch);
|
|
361
377
|
export {
|