@natrave/shared-entities 1.6.11 → 1.6.13

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.
@@ -8,7 +8,7 @@ import { Notification, NotificationDelivery, NotificationDispatchLog, PushDevice
8
8
  import { Payment, PaymentProvider, UserPaymentProvider } from '../payments';
9
9
  import { Player, PlayerPersonalData, PlayerPosition } from '../players';
10
10
  import { PlayerTeam, Team, TeamAccessCode, TeamJoinRequest, TeamModality, TeamTrophy } from '../teams';
11
- import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
11
+ import { Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationField, TournamentTeam, TournamentTeamContactAttempt } from '../tournaments';
12
12
  import { UserDomainEvent, UserEventView } from '../user-events';
13
- 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 TournamentAllowedPhone | typeof Tournament | typeof PhoneNumber | 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 TournamentTeamContactAttempt | typeof Address | typeof OrganizationUserBillingInfo | typeof Organization | 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 UserVerification | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
13
+ 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 TournamentAllowedPhone | typeof Tournament | typeof PhoneNumber | 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 TournamentRegulationField | typeof TournamentTeamContactAttempt | typeof Address | typeof OrganizationUserBillingInfo | typeof Organization | 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 UserVerification | typeof FeedActivitySubject | typeof FeedActivity | typeof FeedOutbox | typeof UserDomainEvent | typeof UserEventView)[];
14
14
  //# 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,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,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,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,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,EAC7B,iCAAiC,EAEjC,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,wrDAoE7B,CAAC"}
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,EACL,YAAY,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,iBAAiB,CAAC;AACzB,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,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,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,EAC7B,iCAAiC,EACjC,yBAAyB,EAEzB,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,2tDAqE7B,CAAC"}
@@ -51,6 +51,7 @@ import {
51
51
  TournamentPublicationChargeRule,
52
52
  TournamentRegistrationRequest,
53
53
  TournamentRegistrationRequirement,
54
+ TournamentRegulationField,
54
55
  TournamentRule,
55
56
  TournamentTeam,
56
57
  TournamentTeamContactAttempt
@@ -96,6 +97,7 @@ const DATABASE_ENTITIES = [
96
97
  TournamentRegistrationRequirement,
97
98
  TournamentPrizeRule,
98
99
  TournamentRegistrationRequest,
100
+ TournamentRegulationField,
99
101
  TournamentRule,
100
102
  TournamentTeam,
101
103
  User,
@@ -21,6 +21,7 @@ export * from './tournament-prize-rules';
21
21
  export * from './tournament-publication-charge-rules';
22
22
  export * from './tournament-registration-requests';
23
23
  export * from './tournament-registration-requirements';
24
+ export * from './tournament-regulation-fields';
24
25
  export * from './tournament-rules';
25
26
  export * from './tournament-team-contact-attempts';
26
27
  export * from './tournament-teams';
@@ -1 +1 @@
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,sBAAsB,CAAC;AACrC,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,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,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,sBAAsB,CAAC;AACrC,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,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -21,6 +21,7 @@ export * from "./tournament-prize-rules/index.js";
21
21
  export * from "./tournament-publication-charge-rules/index.js";
22
22
  export * from "./tournament-registration-requests/index.js";
23
23
  export * from "./tournament-registration-requirements/index.js";
24
+ export * from "./tournament-regulation-fields/index.js";
24
25
  export * from "./tournament-rules/index.js";
25
26
  export * from "./tournament-team-contact-attempts/index.js";
26
27
  export * from "./tournament-teams/index.js";
@@ -1,12 +1,11 @@
1
1
  import { OrganizationType } from '@natrave/auth-service-types';
2
- import { ITournamentContact } from '@natrave/tournaments-service-types';
3
2
  import { Tournament } from '../tournaments';
4
- export declare class TournamentContact implements ITournamentContact {
3
+ export declare class TournamentContact {
5
4
  id: number;
6
5
  tournamentId: number;
7
- firstName: string;
8
- lastName: string;
9
- phone: string;
6
+ firstName: string | null;
7
+ lastName: string | null;
8
+ phone: string | null;
10
9
  organizationName: string | null;
11
10
  organizationType: OrganizationType | null;
12
11
  profilePictureUrl: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAaxE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAkB,YAAW,kBAAkB;IAI1D,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IAQrB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,MAAM,CAAC;IAQjB,KAAK,EAAE,MAAM,CAAC;IAQd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
1
+ {"version":3,"file":"tournament-contact.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-contacts/tournament-contact.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAa/D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO5C,qBAGa,iBAAiB;IAI5B,EAAE,EAAE,MAAM,CAAC;IAOX,YAAY,EAAE,MAAM,CAAC;IASrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IASxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAQrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAU1C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IASjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -40,6 +40,7 @@ __decorateClass([
40
40
  name: "first_name",
41
41
  type: "varchar",
42
42
  length: 255,
43
+ nullable: true,
43
44
  comment: "Primeiro nome do usu\xE1rio."
44
45
  })
45
46
  ], TournamentContact.prototype, "firstName", 2);
@@ -48,6 +49,7 @@ __decorateClass([
48
49
  name: "last_name",
49
50
  type: "varchar",
50
51
  length: 255,
52
+ nullable: true,
51
53
  comment: "\xDAltimo nome do usu\xE1rio."
52
54
  })
53
55
  ], TournamentContact.prototype, "lastName", 2);
@@ -56,6 +58,7 @@ __decorateClass([
56
58
  name: "phone",
57
59
  type: "varchar",
58
60
  length: 16,
61
+ nullable: true,
59
62
  comment: "N\xFAmero de telefone do usu\xE1rio."
60
63
  })
61
64
  ], TournamentContact.prototype, "phone", 2);
@@ -0,0 +1,2 @@
1
+ export { TournamentRegulationField } from './tournament-regulation-field.entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-regulation-fields/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TournamentRegulationField } from "./tournament-regulation-field.entity.js";
2
+ export {
3
+ TournamentRegulationField
4
+ };
@@ -0,0 +1,12 @@
1
+ import { Tournament } from '../tournaments';
2
+ export declare class TournamentRegulationField {
3
+ tournamentId: number;
4
+ field: string;
5
+ value: unknown;
6
+ source: 'extraction' | 'manual';
7
+ status: 'filled' | 'skipped';
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ tournament: Tournament;
11
+ }
12
+ //# sourceMappingURL=tournament-regulation-field.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament-regulation-field.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-regulation-fields/tournament-regulation-field.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAc5C,qBAKa,yBAAyB;IAMpC,YAAY,EAAE,MAAM,CAAC;IAOrB,KAAK,EAAE,MAAM,CAAC;IAQd,KAAK,EAAE,OAAO,CAAC;IAOf,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC;IAOhC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAO7B,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,86 @@
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/index.js";
22
+ let TournamentRegulationField = class {
23
+ };
24
+ __decorateClass([
25
+ PrimaryColumn({
26
+ name: "tournament_id",
27
+ type: "int",
28
+ comment: "ID do torneio ao qual o campo do regulamento pertence."
29
+ })
30
+ ], TournamentRegulationField.prototype, "tournamentId", 2);
31
+ __decorateClass([
32
+ PrimaryColumn({
33
+ type: "varchar",
34
+ length: 64,
35
+ comment: "Identificador do campo do regulamento (chave da estrutura EAV)."
36
+ })
37
+ ], TournamentRegulationField.prototype, "field", 2);
38
+ __decorateClass([
39
+ Column({
40
+ type: "jsonb",
41
+ nullable: true,
42
+ comment: "Valor do campo em JSONB. Tipagem rica \xE9 responsabilidade da service que owna o regulamento (tournaments-service)."
43
+ })
44
+ ], TournamentRegulationField.prototype, "value", 2);
45
+ __decorateClass([
46
+ Column({
47
+ type: "varchar",
48
+ length: 16,
49
+ comment: "Origem do preenchimento do campo (extraction ou manual)."
50
+ })
51
+ ], TournamentRegulationField.prototype, "source", 2);
52
+ __decorateClass([
53
+ Column({
54
+ type: "varchar",
55
+ length: 16,
56
+ comment: "Status do preenchimento: filled (com valor) ou skipped (intencionalmente sem valor)."
57
+ })
58
+ ], TournamentRegulationField.prototype, "status", 2);
59
+ __decorateClass([
60
+ CreateDateColumn({
61
+ name: "created_at",
62
+ type: "timestamptz",
63
+ comment: "Data de cria\xE7\xE3o do registro."
64
+ })
65
+ ], TournamentRegulationField.prototype, "createdAt", 2);
66
+ __decorateClass([
67
+ UpdateDateColumn({
68
+ name: "updated_at",
69
+ type: "timestamptz",
70
+ comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
71
+ })
72
+ ], TournamentRegulationField.prototype, "updatedAt", 2);
73
+ __decorateClass([
74
+ ManyToOne(() => Tournament, { onDelete: "CASCADE" }),
75
+ JoinColumn({ name: "tournament_id" })
76
+ ], TournamentRegulationField.prototype, "tournament", 2);
77
+ TournamentRegulationField = __decorateClass([
78
+ Entity("tournament_regulation_fields"),
79
+ Check(
80
+ "tournament_regulation_fields_value_status_check",
81
+ `("status" = 'filled' AND "value" IS NOT NULL) OR ("status" = 'skipped' AND "value" IS NULL)`
82
+ )
83
+ ], TournamentRegulationField);
84
+ export {
85
+ TournamentRegulationField
86
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natrave/shared-entities",
3
- "version": "1.6.11",
3
+ "version": "1.6.13",
4
4
  "description": "Entidades compartilhadass da NaTrave",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",