@natrave/shared-entities 1.6.15 → 1.7.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 +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 +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-regulation-field-statuses/index.d.ts +2 -0
- package/dist/tournaments/tournament-regulation-field-statuses/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-regulation-field-statuses/index.js +4 -0
- package/dist/tournaments/tournament-regulation-field-statuses/tournament-regulation-field-status.entity.d.ts +11 -0
- package/dist/tournaments/tournament-regulation-field-statuses/tournament-regulation-field-status.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-regulation-field-statuses/tournament-regulation-field-status.entity.js +80 -0
- package/package.json +1 -1
|
@@ -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 { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement,
|
|
11
|
+
import { RegulationExtraction, Tournament, TournamentAllowedPhone, TournamentBracket, TournamentBracketSlot, TournamentContact, TournamentCoupon, TournamentFacility, TournamentFollow, TournamentFormatConfig, TournamentGroup, TournamentMatch, TournamentMatchAvailability, TournamentMatchCard, TournamentMatchGoal, TournamentMatchRule, TournamentMatchSchema, TournamentPayment, TournamentPenaltyShootout, TournamentPlayer, TournamentPlayerRule, TournamentPrizeRule, TournamentPublicationChargeRule, TournamentRegistrationRequest, TournamentRegistrationRequirement, TournamentRegulationFieldStatus, 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 RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | 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
|
|
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 RegulationExtraction | typeof Tournament | typeof TournamentAllowedPhone | 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 TournamentRegulationFieldStatus | 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,oBAAoB,EACpB,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,
|
|
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,oBAAoB,EACpB,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,+BAA+B,EAE/B,cAAc,EACd,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,+vDAuE7B,CAAC"}
|
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
TournamentRegistrationRequest,
|
|
54
54
|
TournamentRegistrationRequirement,
|
|
55
55
|
TournamentRegulationField,
|
|
56
|
+
TournamentRegulationFieldStatus,
|
|
56
57
|
TournamentRule,
|
|
57
58
|
TournamentTeam,
|
|
58
59
|
TournamentTeamContactAttempt
|
|
@@ -100,6 +101,7 @@ const DATABASE_ENTITIES = [
|
|
|
100
101
|
TournamentPrizeRule,
|
|
101
102
|
TournamentRegistrationRequest,
|
|
102
103
|
TournamentRegulationField,
|
|
104
|
+
TournamentRegulationFieldStatus,
|
|
103
105
|
TournamentRule,
|
|
104
106
|
TournamentTeam,
|
|
105
107
|
User,
|
|
@@ -22,6 +22,7 @@ export * from './tournament-prize-rules';
|
|
|
22
22
|
export * from './tournament-publication-charge-rules';
|
|
23
23
|
export * from './tournament-registration-requests';
|
|
24
24
|
export * from './tournament-registration-requirements';
|
|
25
|
+
export * from './tournament-regulation-field-statuses';
|
|
25
26
|
export * from './tournament-regulation-fields';
|
|
26
27
|
export * from './tournament-rules';
|
|
27
28
|
export * from './tournament-team-contact-attempts';
|
|
@@ -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,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"}
|
|
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,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,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -22,6 +22,7 @@ export * from "./tournament-prize-rules/index.js";
|
|
|
22
22
|
export * from "./tournament-publication-charge-rules/index.js";
|
|
23
23
|
export * from "./tournament-registration-requests/index.js";
|
|
24
24
|
export * from "./tournament-registration-requirements/index.js";
|
|
25
|
+
export * from "./tournament-regulation-field-statuses/index.js";
|
|
25
26
|
export * from "./tournament-regulation-fields/index.js";
|
|
26
27
|
export * from "./tournament-rules/index.js";
|
|
27
28
|
export * from "./tournament-team-contact-attempts/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-regulation-field-statuses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Tournament } from '../tournaments';
|
|
2
|
+
export declare class TournamentRegulationFieldStatus {
|
|
3
|
+
tournamentId: number;
|
|
4
|
+
field: string;
|
|
5
|
+
status: 'filled' | 'skipped';
|
|
6
|
+
source: 'extraction' | 'manual';
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
tournament: Tournament;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=tournament-regulation-field-status.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament-regulation-field-status.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-regulation-field-statuses/tournament-regulation-field-status.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAiB5C,qBAKa,+BAA+B;IAM1C,YAAY,EAAE,MAAM,CAAC;IAQrB,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAO7B,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC;IAOhC,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,UAAU,EAAE,UAAU,CAAC;CACxB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
Index,
|
|
17
|
+
JoinColumn,
|
|
18
|
+
ManyToOne,
|
|
19
|
+
PrimaryColumn,
|
|
20
|
+
UpdateDateColumn
|
|
21
|
+
} from "typeorm";
|
|
22
|
+
import { Tournament } from "../tournaments/index.js";
|
|
23
|
+
let TournamentRegulationFieldStatus = class {
|
|
24
|
+
};
|
|
25
|
+
__decorateClass([
|
|
26
|
+
PrimaryColumn({
|
|
27
|
+
name: "tournament_id",
|
|
28
|
+
type: "int",
|
|
29
|
+
comment: "ID do torneio ao qual o status do campo do regulamento pertence."
|
|
30
|
+
})
|
|
31
|
+
], TournamentRegulationFieldStatus.prototype, "tournamentId", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
PrimaryColumn({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: 64,
|
|
36
|
+
comment: "Identificador do campo do regulamento (chave opaca do cat\xE1logo no app, ex.: registrationFee, playerMinAge, playerRegistrationRequirement.cpf)."
|
|
37
|
+
})
|
|
38
|
+
], TournamentRegulationFieldStatus.prototype, "field", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
Column({
|
|
41
|
+
type: "varchar",
|
|
42
|
+
length: 16,
|
|
43
|
+
comment: "Status do preenchimento: filled (usu\xE1rio preencheu valor) ou skipped (pulou explicitamente). Aus\xEAncia de linha = pending."
|
|
44
|
+
})
|
|
45
|
+
], TournamentRegulationFieldStatus.prototype, "status", 2);
|
|
46
|
+
__decorateClass([
|
|
47
|
+
Column({
|
|
48
|
+
type: "varchar",
|
|
49
|
+
length: 16,
|
|
50
|
+
comment: "Origem do preenchimento do campo (extraction ou manual)."
|
|
51
|
+
})
|
|
52
|
+
], TournamentRegulationFieldStatus.prototype, "source", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
CreateDateColumn({
|
|
55
|
+
name: "created_at",
|
|
56
|
+
type: "timestamptz",
|
|
57
|
+
comment: "Data de cria\xE7\xE3o do registro."
|
|
58
|
+
})
|
|
59
|
+
], TournamentRegulationFieldStatus.prototype, "createdAt", 2);
|
|
60
|
+
__decorateClass([
|
|
61
|
+
UpdateDateColumn({
|
|
62
|
+
name: "updated_at",
|
|
63
|
+
type: "timestamptz",
|
|
64
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do registro."
|
|
65
|
+
})
|
|
66
|
+
], TournamentRegulationFieldStatus.prototype, "updatedAt", 2);
|
|
67
|
+
__decorateClass([
|
|
68
|
+
ManyToOne(() => Tournament, { onDelete: "CASCADE" }),
|
|
69
|
+
JoinColumn({ name: "tournament_id" })
|
|
70
|
+
], TournamentRegulationFieldStatus.prototype, "tournament", 2);
|
|
71
|
+
TournamentRegulationFieldStatus = __decorateClass([
|
|
72
|
+
Entity("tournament_regulation_field_status"),
|
|
73
|
+
Index("idx_tournament_regulation_field_status_field", ["field"]),
|
|
74
|
+
Index("idx_tournament_regulation_field_status_tournament_status", ["tournamentId", "status"]),
|
|
75
|
+
Check("tournament_regulation_field_status_status_check", `status IN ('filled', 'skipped')`),
|
|
76
|
+
Check("tournament_regulation_field_status_source_check", `source IN ('extraction', 'manual')`)
|
|
77
|
+
], TournamentRegulationFieldStatus);
|
|
78
|
+
export {
|
|
79
|
+
TournamentRegulationFieldStatus
|
|
80
|
+
};
|