c2-climbing-x 1.0.85 → 1.0.87
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/models/Access.d.ts +9 -11
- package/dist/models/Account.d.ts +3 -7
- package/dist/models/Challenge.d.ts +3 -7
- package/dist/models/ChallengeRound.d.ts +5 -13
- package/dist/models/Championship.d.ts +3 -7
- package/dist/models/ChampionshipClassification.d.ts +3 -7
- package/dist/models/ChampionshipMatch.d.ts +3 -7
- package/dist/models/ChampionshipPhase.d.ts +15 -39
- package/dist/models/ChampionshipRound.d.ts +3 -7
- package/dist/models/File.d.ts +9 -11
- package/dist/models/Team.d.ts +3 -7
- package/dist/models/Ticket.d.ts +3 -7
- package/dist/models/TicketGuess.d.ts +3 -7
- package/dist/models/TicketOrder.d.ts +5 -13
- package/dist/models/WalletMoviment.d.ts +33 -7
- package/dist/models/WalletMoviment.js +35 -0
- package/package.json +1 -1
- package/dist/models/Match.d.ts +0 -17
- package/dist/models/Match.js +0 -26
- package/dist/models/Phase.d.ts +0 -13
- package/dist/models/Phase.js +0 -27
- package/dist/models/Round.d.ts +0 -16
- package/dist/models/Round.js +0 -31
package/dist/models/Access.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const AccessSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
};
|
|
21
|
-
}, {
|
|
21
|
+
}, {
|
|
22
22
|
active: boolean;
|
|
23
23
|
account: Types.ObjectId;
|
|
24
24
|
token: string;
|
|
@@ -26,9 +26,9 @@ export declare const AccessSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
26
26
|
userAgent: string;
|
|
27
27
|
latitude: number;
|
|
28
28
|
longitude: number;
|
|
29
|
-
notes?: string |
|
|
30
|
-
tokenFCM?: string |
|
|
31
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
29
|
+
notes?: string | undefined;
|
|
30
|
+
tokenFCM?: string | undefined;
|
|
31
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
32
32
|
active: boolean;
|
|
33
33
|
account: Types.ObjectId;
|
|
34
34
|
token: string;
|
|
@@ -36,9 +36,9 @@ export declare const AccessSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
36
36
|
userAgent: string;
|
|
37
37
|
latitude: number;
|
|
38
38
|
longitude: number;
|
|
39
|
-
notes?: string |
|
|
40
|
-
tokenFCM?: string |
|
|
41
|
-
}
|
|
39
|
+
notes?: string | undefined;
|
|
40
|
+
tokenFCM?: string | undefined;
|
|
41
|
+
}>> & import("mongoose").FlatRecord<{
|
|
42
42
|
active: boolean;
|
|
43
43
|
account: Types.ObjectId;
|
|
44
44
|
token: string;
|
|
@@ -46,10 +46,8 @@ export declare const AccessSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
46
46
|
userAgent: string;
|
|
47
47
|
latitude: number;
|
|
48
48
|
longitude: number;
|
|
49
|
-
notes?: string |
|
|
50
|
-
tokenFCM?: string |
|
|
49
|
+
notes?: string | undefined;
|
|
50
|
+
tokenFCM?: string | undefined;
|
|
51
51
|
}> & {
|
|
52
52
|
_id: Types.ObjectId;
|
|
53
|
-
} & {
|
|
54
|
-
__v: number;
|
|
55
53
|
}>;
|
package/dist/models/Account.d.ts
CHANGED
|
@@ -18,12 +18,8 @@ export interface IAccount {
|
|
|
18
18
|
updatedAtDateTime: Date;
|
|
19
19
|
image?: IFile;
|
|
20
20
|
}
|
|
21
|
-
export declare const AccountSchema: Schema<IAccount, import("mongoose").Model<IAccount, any, any, any, import("mongoose").Document<unknown, any, IAccount
|
|
21
|
+
export declare const AccountSchema: Schema<IAccount, import("mongoose").Model<IAccount, any, any, any, import("mongoose").Document<unknown, any, IAccount> & IAccount & Required<{
|
|
22
22
|
_id: Types.ObjectId;
|
|
23
|
-
}> & {
|
|
24
|
-
__v: number;
|
|
25
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAccount, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAccount>, {}> & import("mongoose").FlatRecord<IAccount> & Required<{
|
|
23
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAccount, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAccount>> & import("mongoose").FlatRecord<IAccount> & Required<{
|
|
26
24
|
_id: Types.ObjectId;
|
|
27
|
-
}
|
|
28
|
-
__v: number;
|
|
29
|
-
}>;
|
|
25
|
+
}>>;
|
|
@@ -27,12 +27,8 @@ export interface IChallenge {
|
|
|
27
27
|
updatedAtDateTime: Date;
|
|
28
28
|
status: ChallengeStatus;
|
|
29
29
|
}
|
|
30
|
-
export declare const ChallengeSchema: Schema<IChallenge, import("mongoose").Model<IChallenge, any, any, any, import("mongoose").Document<unknown, any, IChallenge
|
|
30
|
+
export declare const ChallengeSchema: Schema<IChallenge, import("mongoose").Model<IChallenge, any, any, any, import("mongoose").Document<unknown, any, IChallenge> & IChallenge & Required<{
|
|
31
31
|
_id: Types.ObjectId;
|
|
32
|
-
}> & {
|
|
33
|
-
__v: number;
|
|
34
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallenge, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallenge>, {}> & import("mongoose").FlatRecord<IChallenge> & Required<{
|
|
32
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallenge, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallenge>> & import("mongoose").FlatRecord<IChallenge> & Required<{
|
|
35
33
|
_id: Types.ObjectId;
|
|
36
|
-
}
|
|
37
|
-
__v: number;
|
|
38
|
-
}>;
|
|
34
|
+
}>>;
|
|
@@ -21,21 +21,13 @@ export interface IChallengeRound {
|
|
|
21
21
|
createdAtDateTime: Date;
|
|
22
22
|
updatedAtDateTime: Date;
|
|
23
23
|
}
|
|
24
|
-
export declare const ChallengeMatchSchema: Schema<IChallengeMatch, import("mongoose").Model<IChallengeMatch, any, any, any, import("mongoose").Document<unknown, any, IChallengeMatch
|
|
24
|
+
export declare const ChallengeMatchSchema: Schema<IChallengeMatch, import("mongoose").Model<IChallengeMatch, any, any, any, import("mongoose").Document<unknown, any, IChallengeMatch> & IChallengeMatch & {
|
|
25
25
|
_id: Types.ObjectId;
|
|
26
|
-
} & {
|
|
27
|
-
__v: number;
|
|
28
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallengeMatch, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallengeMatch>, {}> & import("mongoose").FlatRecord<IChallengeMatch> & {
|
|
26
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallengeMatch, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallengeMatch>> & import("mongoose").FlatRecord<IChallengeMatch> & {
|
|
29
27
|
_id: Types.ObjectId;
|
|
30
|
-
} & {
|
|
31
|
-
__v: number;
|
|
32
28
|
}>;
|
|
33
|
-
export declare const ChallengeRoundSchema: Schema<IChallengeRound, import("mongoose").Model<IChallengeRound, any, any, any, import("mongoose").Document<unknown, any, IChallengeRound
|
|
29
|
+
export declare const ChallengeRoundSchema: Schema<IChallengeRound, import("mongoose").Model<IChallengeRound, any, any, any, import("mongoose").Document<unknown, any, IChallengeRound> & IChallengeRound & Required<{
|
|
34
30
|
_id: Types.ObjectId;
|
|
35
|
-
}> & {
|
|
36
|
-
__v: number;
|
|
37
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallengeRound, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallengeRound>, {}> & import("mongoose").FlatRecord<IChallengeRound> & Required<{
|
|
31
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChallengeRound, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChallengeRound>> & import("mongoose").FlatRecord<IChallengeRound> & Required<{
|
|
38
32
|
_id: Types.ObjectId;
|
|
39
|
-
}
|
|
40
|
-
__v: number;
|
|
41
|
-
}>;
|
|
33
|
+
}>>;
|
|
@@ -12,12 +12,8 @@ export interface IChampionship {
|
|
|
12
12
|
createdAtDateTime: Date;
|
|
13
13
|
updatedAtDateTime: Date;
|
|
14
14
|
}
|
|
15
|
-
export declare const ChampionshipSchema: Schema<IChampionship, import("mongoose").Model<IChampionship, any, any, any, import("mongoose").Document<unknown, any, IChampionship
|
|
15
|
+
export declare const ChampionshipSchema: Schema<IChampionship, import("mongoose").Model<IChampionship, any, any, any, import("mongoose").Document<unknown, any, IChampionship> & IChampionship & Required<{
|
|
16
16
|
_id: Types.ObjectId;
|
|
17
|
-
}> & {
|
|
18
|
-
__v: number;
|
|
19
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionship, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionship>, {}> & import("mongoose").FlatRecord<IChampionship> & Required<{
|
|
17
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionship, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionship>> & import("mongoose").FlatRecord<IChampionship> & Required<{
|
|
20
18
|
_id: Types.ObjectId;
|
|
21
|
-
}
|
|
22
|
-
__v: number;
|
|
23
|
-
}>;
|
|
19
|
+
}>>;
|
|
@@ -20,12 +20,8 @@ export interface IChampionshipClassification {
|
|
|
20
20
|
createdAtDateTime: Date;
|
|
21
21
|
updatedAtDateTime: Date;
|
|
22
22
|
}
|
|
23
|
-
export declare const ChampionshipClassificationSchema: Schema<IChampionshipClassification, import("mongoose").Model<IChampionshipClassification, any, any, any, import("mongoose").Document<unknown, any, IChampionshipClassification
|
|
23
|
+
export declare const ChampionshipClassificationSchema: Schema<IChampionshipClassification, import("mongoose").Model<IChampionshipClassification, any, any, any, import("mongoose").Document<unknown, any, IChampionshipClassification> & IChampionshipClassification & Required<{
|
|
24
24
|
_id: Types.ObjectId;
|
|
25
|
-
}> & {
|
|
26
|
-
__v: number;
|
|
27
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipClassification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipClassification>, {}> & import("mongoose").FlatRecord<IChampionshipClassification> & Required<{
|
|
25
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipClassification, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipClassification>> & import("mongoose").FlatRecord<IChampionshipClassification> & Required<{
|
|
28
26
|
_id: Types.ObjectId;
|
|
29
|
-
}
|
|
30
|
-
__v: number;
|
|
31
|
-
}>;
|
|
27
|
+
}>>;
|
|
@@ -22,12 +22,8 @@ export interface IChampionshipMatch {
|
|
|
22
22
|
createdAtDateTime: Date;
|
|
23
23
|
updatedAtDateTime: Date;
|
|
24
24
|
}
|
|
25
|
-
export declare const ChampionshipMatchSchema: Schema<IChampionshipMatch, import("mongoose").Model<IChampionshipMatch, any, any, any, import("mongoose").Document<unknown, any, IChampionshipMatch
|
|
25
|
+
export declare const ChampionshipMatchSchema: Schema<IChampionshipMatch, import("mongoose").Model<IChampionshipMatch, any, any, any, import("mongoose").Document<unknown, any, IChampionshipMatch> & IChampionshipMatch & Required<{
|
|
26
26
|
_id: Types.ObjectId;
|
|
27
|
-
}> & {
|
|
28
|
-
__v: number;
|
|
29
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipMatch, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipMatch>, {}> & import("mongoose").FlatRecord<IChampionshipMatch> & Required<{
|
|
27
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipMatch, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipMatch>> & import("mongoose").FlatRecord<IChampionshipMatch> & Required<{
|
|
30
28
|
_id: Types.ObjectId;
|
|
31
|
-
}
|
|
32
|
-
__v: number;
|
|
33
|
-
}>;
|
|
29
|
+
}>>;
|
|
@@ -45,57 +45,33 @@ export interface IQualifiedRule {
|
|
|
45
45
|
limit: number;
|
|
46
46
|
label: string;
|
|
47
47
|
}
|
|
48
|
-
export declare const SlotsSchema: Schema<ISlots, import("mongoose").Model<ISlots, any, any, any, import("mongoose").Document<unknown, any, ISlots
|
|
48
|
+
export declare const SlotsSchema: Schema<ISlots, import("mongoose").Model<ISlots, any, any, any, import("mongoose").Document<unknown, any, ISlots> & ISlots & Required<{
|
|
49
49
|
_id: Types.ObjectId;
|
|
50
|
-
}> & {
|
|
51
|
-
__v: number;
|
|
52
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ISlots, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ISlots>, {}> & import("mongoose").FlatRecord<ISlots> & Required<{
|
|
50
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ISlots, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ISlots>> & import("mongoose").FlatRecord<ISlots> & Required<{
|
|
53
51
|
_id: Types.ObjectId;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
}>;
|
|
57
|
-
export declare const QualifiedsSlotsSchema: Schema<IQualifiedsSlots, import("mongoose").Model<IQualifiedsSlots, any, any, any, import("mongoose").Document<unknown, any, IQualifiedsSlots, any> & IQualifiedsSlots & Required<{
|
|
52
|
+
}>>;
|
|
53
|
+
export declare const QualifiedsSlotsSchema: Schema<IQualifiedsSlots, import("mongoose").Model<IQualifiedsSlots, any, any, any, import("mongoose").Document<unknown, any, IQualifiedsSlots> & IQualifiedsSlots & Required<{
|
|
58
54
|
_id: Types.ObjectId;
|
|
59
|
-
}> & {
|
|
60
|
-
__v: number;
|
|
61
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IQualifiedsSlots, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IQualifiedsSlots>, {}> & import("mongoose").FlatRecord<IQualifiedsSlots> & Required<{
|
|
55
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IQualifiedsSlots, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IQualifiedsSlots>> & import("mongoose").FlatRecord<IQualifiedsSlots> & Required<{
|
|
62
56
|
_id: Types.ObjectId;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
}>;
|
|
66
|
-
export declare const GroupSchema: Schema<IGroup, import("mongoose").Model<IGroup, any, any, any, import("mongoose").Document<unknown, any, IGroup, any> & IGroup & {
|
|
57
|
+
}>>;
|
|
58
|
+
export declare const GroupSchema: Schema<IGroup, import("mongoose").Model<IGroup, any, any, any, import("mongoose").Document<unknown, any, IGroup> & IGroup & {
|
|
67
59
|
_id: Types.ObjectId;
|
|
68
|
-
} & {
|
|
69
|
-
__v: number;
|
|
70
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IGroup, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IGroup>, {}> & import("mongoose").FlatRecord<IGroup> & {
|
|
60
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IGroup, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IGroup>> & import("mongoose").FlatRecord<IGroup> & {
|
|
71
61
|
_id: Types.ObjectId;
|
|
72
|
-
} & {
|
|
73
|
-
__v: number;
|
|
74
62
|
}>;
|
|
75
|
-
export declare const QualifiedRuleSchema: Schema<IQualifiedRule, import("mongoose").Model<IQualifiedRule, any, any, any, import("mongoose").Document<unknown, any, IQualifiedRule
|
|
63
|
+
export declare const QualifiedRuleSchema: Schema<IQualifiedRule, import("mongoose").Model<IQualifiedRule, any, any, any, import("mongoose").Document<unknown, any, IQualifiedRule> & IQualifiedRule & {
|
|
76
64
|
_id: Types.ObjectId;
|
|
77
|
-
} & {
|
|
78
|
-
__v: number;
|
|
79
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IQualifiedRule, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IQualifiedRule>, {}> & import("mongoose").FlatRecord<IQualifiedRule> & {
|
|
65
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IQualifiedRule, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IQualifiedRule>> & import("mongoose").FlatRecord<IQualifiedRule> & {
|
|
80
66
|
_id: Types.ObjectId;
|
|
81
|
-
} & {
|
|
82
|
-
__v: number;
|
|
83
67
|
}>;
|
|
84
|
-
export declare const MatchRulesSchema: Schema<IMatchRules, import("mongoose").Model<IMatchRules, any, any, any, import("mongoose").Document<unknown, any, IMatchRules
|
|
68
|
+
export declare const MatchRulesSchema: Schema<IMatchRules, import("mongoose").Model<IMatchRules, any, any, any, import("mongoose").Document<unknown, any, IMatchRules> & IMatchRules & {
|
|
85
69
|
_id: Types.ObjectId;
|
|
86
|
-
} & {
|
|
87
|
-
__v: number;
|
|
88
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IMatchRules, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IMatchRules>, {}> & import("mongoose").FlatRecord<IMatchRules> & {
|
|
70
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IMatchRules, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IMatchRules>> & import("mongoose").FlatRecord<IMatchRules> & {
|
|
89
71
|
_id: Types.ObjectId;
|
|
90
|
-
} & {
|
|
91
|
-
__v: number;
|
|
92
72
|
}>;
|
|
93
|
-
export declare const ChampionshipPhaseSchema: Schema<IChampionshipPhase, import("mongoose").Model<IChampionshipPhase, any, any, any, import("mongoose").Document<unknown, any, IChampionshipPhase
|
|
73
|
+
export declare const ChampionshipPhaseSchema: Schema<IChampionshipPhase, import("mongoose").Model<IChampionshipPhase, any, any, any, import("mongoose").Document<unknown, any, IChampionshipPhase> & IChampionshipPhase & Required<{
|
|
94
74
|
_id: Types.ObjectId;
|
|
95
|
-
}> & {
|
|
96
|
-
__v: number;
|
|
97
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipPhase, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipPhase>, {}> & import("mongoose").FlatRecord<IChampionshipPhase> & Required<{
|
|
75
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipPhase, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipPhase>> & import("mongoose").FlatRecord<IChampionshipPhase> & Required<{
|
|
98
76
|
_id: Types.ObjectId;
|
|
99
|
-
}
|
|
100
|
-
__v: number;
|
|
101
|
-
}>;
|
|
77
|
+
}>>;
|
|
@@ -15,12 +15,8 @@ export interface IChampionshipRound {
|
|
|
15
15
|
createdAtDateTime: Date;
|
|
16
16
|
updatedAtDateTime: Date;
|
|
17
17
|
}
|
|
18
|
-
export declare const ChampionshipRoundSchema: Schema<IChampionshipRound, import("mongoose").Model<IChampionshipRound, any, any, any, import("mongoose").Document<unknown, any, IChampionshipRound
|
|
18
|
+
export declare const ChampionshipRoundSchema: Schema<IChampionshipRound, import("mongoose").Model<IChampionshipRound, any, any, any, import("mongoose").Document<unknown, any, IChampionshipRound> & IChampionshipRound & Required<{
|
|
19
19
|
_id: Types.ObjectId;
|
|
20
|
-
}> & {
|
|
21
|
-
__v: number;
|
|
22
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipRound, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipRound>, {}> & import("mongoose").FlatRecord<IChampionshipRound> & Required<{
|
|
20
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IChampionshipRound, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IChampionshipRound>> & import("mongoose").FlatRecord<IChampionshipRound> & Required<{
|
|
23
21
|
_id: Types.ObjectId;
|
|
24
|
-
}
|
|
25
|
-
__v: number;
|
|
26
|
-
}>;
|
|
22
|
+
}>>;
|
package/dist/models/File.d.ts
CHANGED
|
@@ -11,23 +11,21 @@ export declare const FileSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
13
|
};
|
|
14
|
-
}, {
|
|
14
|
+
}, {
|
|
15
15
|
contentType: string;
|
|
16
16
|
description: string;
|
|
17
|
-
format?: string |
|
|
18
|
-
url?: string |
|
|
19
|
-
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
17
|
+
format?: string | undefined;
|
|
18
|
+
url?: string | undefined;
|
|
19
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
20
20
|
contentType: string;
|
|
21
21
|
description: string;
|
|
22
|
-
format?: string |
|
|
23
|
-
url?: string |
|
|
24
|
-
}
|
|
22
|
+
format?: string | undefined;
|
|
23
|
+
url?: string | undefined;
|
|
24
|
+
}>> & import("mongoose").FlatRecord<{
|
|
25
25
|
contentType: string;
|
|
26
26
|
description: string;
|
|
27
|
-
format?: string |
|
|
28
|
-
url?: string |
|
|
27
|
+
format?: string | undefined;
|
|
28
|
+
url?: string | undefined;
|
|
29
29
|
}> & {
|
|
30
30
|
_id: import("mongoose").Types.ObjectId;
|
|
31
|
-
} & {
|
|
32
|
-
__v: number;
|
|
33
31
|
}>;
|
package/dist/models/Team.d.ts
CHANGED
|
@@ -10,12 +10,8 @@ export interface ITeam {
|
|
|
10
10
|
createdAtDateTime: Date;
|
|
11
11
|
updatedAtDateTime: Date;
|
|
12
12
|
}
|
|
13
|
-
export declare const TeamSchema: Schema<ITeam, import("mongoose").Model<ITeam, any, any, any, import("mongoose").Document<unknown, any, ITeam
|
|
13
|
+
export declare const TeamSchema: Schema<ITeam, import("mongoose").Model<ITeam, any, any, any, import("mongoose").Document<unknown, any, ITeam> & ITeam & Required<{
|
|
14
14
|
_id: Types.ObjectId;
|
|
15
|
-
}> & {
|
|
16
|
-
__v: number;
|
|
17
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITeam, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITeam>, {}> & import("mongoose").FlatRecord<ITeam> & Required<{
|
|
15
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITeam, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITeam>> & import("mongoose").FlatRecord<ITeam> & Required<{
|
|
18
16
|
_id: Types.ObjectId;
|
|
19
|
-
}
|
|
20
|
-
__v: number;
|
|
21
|
-
}>;
|
|
17
|
+
}>>;
|
package/dist/models/Ticket.d.ts
CHANGED
|
@@ -23,12 +23,8 @@ export interface ITicket {
|
|
|
23
23
|
createdAtDateTime: Date;
|
|
24
24
|
updatedAtDateTime: Date;
|
|
25
25
|
}
|
|
26
|
-
export declare const TicketSchema: Schema<ITicket, import("mongoose").Model<ITicket, any, any, any, import("mongoose").Document<unknown, any, ITicket
|
|
26
|
+
export declare const TicketSchema: Schema<ITicket, import("mongoose").Model<ITicket, any, any, any, import("mongoose").Document<unknown, any, ITicket> & ITicket & Required<{
|
|
27
27
|
_id: Types.ObjectId;
|
|
28
|
-
}> & {
|
|
29
|
-
__v: number;
|
|
30
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicket, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicket>, {}> & import("mongoose").FlatRecord<ITicket> & Required<{
|
|
28
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicket, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicket>> & import("mongoose").FlatRecord<ITicket> & Required<{
|
|
31
29
|
_id: Types.ObjectId;
|
|
32
|
-
}
|
|
33
|
-
__v: number;
|
|
34
|
-
}>;
|
|
30
|
+
}>>;
|
|
@@ -20,12 +20,8 @@ export interface ITicketGuess {
|
|
|
20
20
|
createdAtDateTime: Date;
|
|
21
21
|
updatedAtDateTime: Date;
|
|
22
22
|
}
|
|
23
|
-
export declare const TicketGuessSchema: Schema<ITicketGuess, import("mongoose").Model<ITicketGuess, any, any, any, import("mongoose").Document<unknown, any, ITicketGuess
|
|
23
|
+
export declare const TicketGuessSchema: Schema<ITicketGuess, import("mongoose").Model<ITicketGuess, any, any, any, import("mongoose").Document<unknown, any, ITicketGuess> & ITicketGuess & Required<{
|
|
24
24
|
_id: Types.ObjectId;
|
|
25
|
-
}> & {
|
|
26
|
-
__v: number;
|
|
27
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicketGuess, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicketGuess>, {}> & import("mongoose").FlatRecord<ITicketGuess> & Required<{
|
|
25
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicketGuess, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicketGuess>> & import("mongoose").FlatRecord<ITicketGuess> & Required<{
|
|
28
26
|
_id: Types.ObjectId;
|
|
29
|
-
}
|
|
30
|
-
__v: number;
|
|
31
|
-
}>;
|
|
27
|
+
}>>;
|
|
@@ -34,21 +34,13 @@ export interface ITicketOrder {
|
|
|
34
34
|
createdAtDateTime: Date;
|
|
35
35
|
updatedAtDateTime: Date;
|
|
36
36
|
}
|
|
37
|
-
export declare const AcceptTermsOfChallengeSchema: Schema<IAcceptTermsOfChallenge, import("mongoose").Model<IAcceptTermsOfChallenge, any, any, any, import("mongoose").Document<unknown, any, IAcceptTermsOfChallenge
|
|
37
|
+
export declare const AcceptTermsOfChallengeSchema: Schema<IAcceptTermsOfChallenge, import("mongoose").Model<IAcceptTermsOfChallenge, any, any, any, import("mongoose").Document<unknown, any, IAcceptTermsOfChallenge> & IAcceptTermsOfChallenge & {
|
|
38
38
|
_id: Types.ObjectId;
|
|
39
|
-
} & {
|
|
40
|
-
__v: number;
|
|
41
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAcceptTermsOfChallenge, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAcceptTermsOfChallenge>, {}> & import("mongoose").FlatRecord<IAcceptTermsOfChallenge> & {
|
|
39
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IAcceptTermsOfChallenge, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IAcceptTermsOfChallenge>> & import("mongoose").FlatRecord<IAcceptTermsOfChallenge> & {
|
|
42
40
|
_id: Types.ObjectId;
|
|
43
|
-
} & {
|
|
44
|
-
__v: number;
|
|
45
41
|
}>;
|
|
46
|
-
export declare const TicketOrderSchema: Schema<ITicketOrder, import("mongoose").Model<ITicketOrder, any, any, any, import("mongoose").Document<unknown, any, ITicketOrder
|
|
42
|
+
export declare const TicketOrderSchema: Schema<ITicketOrder, import("mongoose").Model<ITicketOrder, any, any, any, import("mongoose").Document<unknown, any, ITicketOrder> & ITicketOrder & Required<{
|
|
47
43
|
_id: Types.ObjectId;
|
|
48
|
-
}> & {
|
|
49
|
-
__v: number;
|
|
50
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicketOrder, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicketOrder>, {}> & import("mongoose").FlatRecord<ITicketOrder> & Required<{
|
|
44
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ITicketOrder, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ITicketOrder>> & import("mongoose").FlatRecord<ITicketOrder> & Required<{
|
|
51
45
|
_id: Types.ObjectId;
|
|
52
|
-
}
|
|
53
|
-
__v: number;
|
|
54
|
-
}>;
|
|
46
|
+
}>>;
|
|
@@ -17,21 +17,47 @@ export interface IWalletMoviment {
|
|
|
17
17
|
account: Types.ObjectId | IAccount;
|
|
18
18
|
description: string;
|
|
19
19
|
valueMovemented: number;
|
|
20
|
+
fee: number;
|
|
20
21
|
typeMovement: WalletMovimentType;
|
|
21
22
|
balanceBefore: number;
|
|
22
23
|
balanceAfter: number;
|
|
23
24
|
status: WalletMovimentStatus;
|
|
24
25
|
confirmDateTime: Date;
|
|
26
|
+
manual: boolean;
|
|
25
27
|
files: IFile[];
|
|
28
|
+
pagarmeOrder: {
|
|
29
|
+
id: string;
|
|
30
|
+
code: string;
|
|
31
|
+
status: string;
|
|
32
|
+
amount: number;
|
|
33
|
+
gatewayId: string;
|
|
34
|
+
paymentMethod: string;
|
|
35
|
+
};
|
|
36
|
+
pagarmeCharges: {
|
|
37
|
+
id: string;
|
|
38
|
+
code: string;
|
|
39
|
+
status: string;
|
|
40
|
+
amount: number;
|
|
41
|
+
gatewayId: string;
|
|
42
|
+
paymentMethod: string;
|
|
43
|
+
lastTransaction: {
|
|
44
|
+
id: string;
|
|
45
|
+
status: string;
|
|
46
|
+
success: boolean;
|
|
47
|
+
gatewayId: string;
|
|
48
|
+
amount: number;
|
|
49
|
+
qrCode: string;
|
|
50
|
+
qrCodeUrl: string;
|
|
51
|
+
providerTId: string;
|
|
52
|
+
expireDateTime: Date;
|
|
53
|
+
transactionType: string;
|
|
54
|
+
};
|
|
55
|
+
}[];
|
|
26
56
|
createdAtDateTime: Date;
|
|
27
57
|
updatedAtDateTime: Date;
|
|
28
58
|
}
|
|
29
|
-
export declare const WalletMovimentSchema: Schema<IWalletMoviment, import("mongoose").Model<IWalletMoviment, any, any, any, import("mongoose").Document<unknown, any, IWalletMoviment
|
|
59
|
+
export declare const WalletMovimentSchema: Schema<IWalletMoviment, import("mongoose").Model<IWalletMoviment, any, any, any, import("mongoose").Document<unknown, any, IWalletMoviment> & IWalletMoviment & Required<{
|
|
30
60
|
_id: Types.ObjectId;
|
|
31
|
-
}> & {
|
|
32
|
-
__v: number;
|
|
33
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IWalletMoviment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IWalletMoviment>, {}> & import("mongoose").FlatRecord<IWalletMoviment> & Required<{
|
|
61
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, IWalletMoviment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<IWalletMoviment>> & import("mongoose").FlatRecord<IWalletMoviment> & Required<{
|
|
34
62
|
_id: Types.ObjectId;
|
|
35
|
-
}
|
|
36
|
-
__v: number;
|
|
37
|
-
}>;
|
|
63
|
+
}>>;
|
|
@@ -20,12 +20,47 @@ exports.WalletMovimentSchema = new mongoose_1.Schema({
|
|
|
20
20
|
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account", required: true },
|
|
21
21
|
description: { type: String, required: true },
|
|
22
22
|
valueMovemented: { type: Number, required: true },
|
|
23
|
+
fee: { type: Number, required: false },
|
|
23
24
|
typeMovement: { type: String, required: true, enum: WalletMovimentType },
|
|
24
25
|
balanceBefore: { type: Number, required: true },
|
|
25
26
|
balanceAfter: { type: Number, required: true },
|
|
26
27
|
confirmDateTime: { type: Date, required: false },
|
|
27
28
|
status: { type: String, required: true, enum: WalletMovimentStatus },
|
|
28
29
|
files: { type: [File_1.FileSchema], required: false },
|
|
30
|
+
manual: { type: Boolean, required: false },
|
|
31
|
+
pagarmeOrder: {
|
|
32
|
+
type: {
|
|
33
|
+
id: { type: String, required: false },
|
|
34
|
+
code: { type: String, required: false },
|
|
35
|
+
status: { type: String, required: false },
|
|
36
|
+
amount: { type: Number, required: false },
|
|
37
|
+
gatewayId: { type: String, required: false },
|
|
38
|
+
paymentMethod: { type: String, required: false },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
pagarmeCharges: {
|
|
42
|
+
type: [{
|
|
43
|
+
id: { type: String, required: false },
|
|
44
|
+
code: { type: String, required: false },
|
|
45
|
+
status: { type: String, required: false },
|
|
46
|
+
amount: { type: Number, required: false },
|
|
47
|
+
gatewayId: { type: String, required: false },
|
|
48
|
+
paymentMethod: { type: String, required: false },
|
|
49
|
+
lastTransaction: {
|
|
50
|
+
id: { type: String, required: false },
|
|
51
|
+
status: { type: String, required: false },
|
|
52
|
+
success: { type: Boolean, required: false },
|
|
53
|
+
gatewayId: { type: String, required: false },
|
|
54
|
+
amount: { type: Number, required: false },
|
|
55
|
+
qrCode: { type: String, required: false },
|
|
56
|
+
qrCodeUrl: { type: String, required: false },
|
|
57
|
+
providerTId: { type: String, required: false },
|
|
58
|
+
expireDateTime: { type: Date, required: false },
|
|
59
|
+
transactionType: { type: String, required: false },
|
|
60
|
+
}
|
|
61
|
+
}],
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
29
64
|
}, {
|
|
30
65
|
timestamps: {
|
|
31
66
|
createdAt: "createdAtDateTime",
|
package/package.json
CHANGED
package/dist/models/Match.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Model, Types } from "mongoose";
|
|
2
|
-
import { MatchStatus } from "../types/MatchStatus";
|
|
3
|
-
import { IChampionshipRound } from "./ChampionshipRound";
|
|
4
|
-
import { ITeam } from "./Team";
|
|
5
|
-
export interface IMatch {
|
|
6
|
-
_id: Types.ObjectId;
|
|
7
|
-
round: Types.ObjectId | IChampionshipRound;
|
|
8
|
-
homeTeam: Types.ObjectId | ITeam;
|
|
9
|
-
awayTeam: Types.ObjectId | ITeam;
|
|
10
|
-
scheduledAt?: Date;
|
|
11
|
-
homeScore?: number;
|
|
12
|
-
awayScore?: number;
|
|
13
|
-
status: MatchStatus;
|
|
14
|
-
createdAtDateTime: Date;
|
|
15
|
-
updatedAtDateTime: Date;
|
|
16
|
-
}
|
|
17
|
-
export declare const MatchModel: Model<IMatch>;
|
package/dist/models/Match.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MatchModel = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const MatchStatus_1 = require("../types/MatchStatus");
|
|
6
|
-
const MatchSchema = new mongoose_1.Schema({
|
|
7
|
-
round: { type: mongoose_1.Schema.Types.ObjectId, ref: "championship-round", required: true },
|
|
8
|
-
homeTeam: { type: mongoose_1.Schema.Types.ObjectId, ref: "team", required: true },
|
|
9
|
-
awayTeam: { type: mongoose_1.Schema.Types.ObjectId, ref: "team", required: true },
|
|
10
|
-
scheduledAt: { type: Date, required: false },
|
|
11
|
-
homeScore: { type: Number, required: false },
|
|
12
|
-
awayScore: { type: Number, required: false },
|
|
13
|
-
status: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
enum: MatchStatus_1.MatchStatus
|
|
17
|
-
}
|
|
18
|
-
}, {
|
|
19
|
-
timestamps: {
|
|
20
|
-
createdAt: "createdAtDateTime",
|
|
21
|
-
updatedAt: "updatedAtDateTime"
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
MatchSchema.index({ round: 1 });
|
|
25
|
-
MatchSchema.index({ round: 1, homeTeam: 1, awayTeam: 1 }, { unique: true });
|
|
26
|
-
exports.MatchModel = (0, mongoose_1.model)("match", MatchSchema);
|
package/dist/models/Phase.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Model, Types } from "mongoose";
|
|
2
|
-
import { PhaseType } from "../types/PhaseType";
|
|
3
|
-
export interface IPhase {
|
|
4
|
-
_id: Types.ObjectId;
|
|
5
|
-
championship: Types.ObjectId;
|
|
6
|
-
order: number;
|
|
7
|
-
type: PhaseType;
|
|
8
|
-
qualifiedForNextPhase: number;
|
|
9
|
-
teams: Types.ObjectId[];
|
|
10
|
-
createdAtDateTime: Date;
|
|
11
|
-
updatedAtDateTime: Date;
|
|
12
|
-
}
|
|
13
|
-
export declare const PhaseModel: Model<IPhase>;
|
package/dist/models/Phase.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhaseModel = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const PhaseSchema = new mongoose_1.Schema({
|
|
6
|
-
championship: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
ref: "championship",
|
|
9
|
-
required: true
|
|
10
|
-
},
|
|
11
|
-
order: { type: Number, required: true },
|
|
12
|
-
type: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true,
|
|
15
|
-
enum: ["PONTO_CORRIDO", "MATA_MATA"]
|
|
16
|
-
},
|
|
17
|
-
qualifiedForNextPhase: { type: Number, required: true },
|
|
18
|
-
teams: [{ type: mongoose_1.Schema.Types.ObjectId, ref: "team", required: true }]
|
|
19
|
-
}, {
|
|
20
|
-
timestamps: {
|
|
21
|
-
createdAt: "createdAtDateTime",
|
|
22
|
-
updatedAt: "updatedAtDateTime"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
PhaseSchema.index({ championship: 1 });
|
|
26
|
-
PhaseSchema.index({ championship: 1, order: 1 }, { unique: true });
|
|
27
|
-
exports.PhaseModel = (0, mongoose_1.model)("phase", PhaseSchema);
|
package/dist/models/Round.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Model, Types } from "mongoose";
|
|
2
|
-
import { RoundStatus } from "../types/RoundStatus";
|
|
3
|
-
export interface IRound {
|
|
4
|
-
_id: Types.ObjectId;
|
|
5
|
-
phase: Types.ObjectId;
|
|
6
|
-
championship: Types.ObjectId;
|
|
7
|
-
roundIndexInPhase: number;
|
|
8
|
-
globalRoundIndex: number;
|
|
9
|
-
label?: string;
|
|
10
|
-
startDate?: Date;
|
|
11
|
-
endDate?: Date;
|
|
12
|
-
status: RoundStatus;
|
|
13
|
-
createdAtDateTime: Date;
|
|
14
|
-
updatedAtDateTime: Date;
|
|
15
|
-
}
|
|
16
|
-
export declare const RoundModel: Model<IRound>;
|
package/dist/models/Round.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RoundModel = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const RoundSchema = new mongoose_1.Schema({
|
|
6
|
-
phase: { type: mongoose_1.Schema.Types.ObjectId, ref: "phase", required: true },
|
|
7
|
-
championship: {
|
|
8
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
-
ref: "championship",
|
|
10
|
-
required: true
|
|
11
|
-
},
|
|
12
|
-
roundIndexInPhase: { type: Number, required: true },
|
|
13
|
-
globalRoundIndex: { type: Number, required: true },
|
|
14
|
-
label: { type: String, required: false },
|
|
15
|
-
startDate: { type: Date, required: false },
|
|
16
|
-
endDate: { type: Date, required: false },
|
|
17
|
-
status: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: true,
|
|
20
|
-
enum: ["PENDING", "OPEN", "CLOSED"]
|
|
21
|
-
}
|
|
22
|
-
}, {
|
|
23
|
-
timestamps: {
|
|
24
|
-
createdAt: "createdAtDateTime",
|
|
25
|
-
updatedAt: "updatedAtDateTime"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
RoundSchema.index({ phase: 1 });
|
|
29
|
-
RoundSchema.index({ championship: 1 });
|
|
30
|
-
RoundSchema.index({ championship: 1, globalRoundIndex: 1 }, { unique: true });
|
|
31
|
-
exports.RoundModel = (0, mongoose_1.model)("round", RoundSchema);
|