@euler-edu/nest 0.0.0-stage → 7.0.1-beta1
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/lib/.tsbuildinfo +1 -0
- package/lib/connection/mongo/hq-status/index.d.ts +2 -0
- package/lib/connection/mongo/hq-status/index.d.ts.map +1 -0
- package/lib/connection/mongo/hq-status/index.js +6 -0
- package/lib/connection/mongo/hq-status/index.js.map +1 -0
- package/lib/connection/mongo/hq-status/serviceUptime.d.ts +39 -0
- package/lib/connection/mongo/hq-status/serviceUptime.d.ts.map +1 -0
- package/lib/connection/mongo/hq-status/serviceUptime.js +12 -0
- package/lib/connection/mongo/hq-status/serviceUptime.js.map +1 -0
- package/lib/connection/mongo/index.d.ts +3 -0
- package/lib/connection/mongo/index.d.ts.map +1 -0
- package/lib/connection/mongo/index.js +19 -0
- package/lib/connection/mongo/index.js.map +1 -0
- package/lib/connection/mongo/mongo.module.d.ts +7 -0
- package/lib/connection/mongo/mongo.module.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.module.js +39 -0
- package/lib/connection/mongo/mongo.module.js.map +1 -0
- package/lib/connection/mongo/mongo.service.d.ts +27 -0
- package/lib/connection/mongo/mongo.service.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.service.js +72 -0
- package/lib/connection/mongo/mongo.service.js.map +1 -0
- package/lib/connection/mongo/oj-main/contest.d.ts +399 -0
- package/lib/connection/mongo/oj-main/contest.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/contest.js +55 -0
- package/lib/connection/mongo/oj-main/contest.js.map +1 -0
- package/lib/connection/mongo/oj-main/index.d.ts +8 -0
- package/lib/connection/mongo/oj-main/index.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/index.js +18 -0
- package/lib/connection/mongo/oj-main/index.js.map +1 -0
- package/lib/connection/mongo/oj-main/mail.d.ts +55 -0
- package/lib/connection/mongo/oj-main/mail.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/mail.js +44 -0
- package/lib/connection/mongo/oj-main/mail.js.map +1 -0
- package/lib/connection/mongo/oj-main/problem.d.ts +103 -0
- package/lib/connection/mongo/oj-main/problem.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/problem.js +29 -0
- package/lib/connection/mongo/oj-main/problem.js.map +1 -0
- package/lib/connection/mongo/oj-main/record.d.ts +47 -0
- package/lib/connection/mongo/oj-main/record.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/record.js +26 -0
- package/lib/connection/mongo/oj-main/record.js.map +1 -0
- package/lib/connection/mongo/oj-main/sourceconsole.d.ts +67 -0
- package/lib/connection/mongo/oj-main/sourceconsole.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/sourceconsole.js +19 -0
- package/lib/connection/mongo/oj-main/sourceconsole.js.map +1 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.d.ts +175 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.js +47 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.js.map +1 -0
- package/lib/connection/mongo/oj-main/user.d.ts +131 -0
- package/lib/connection/mongo/oj-main/user.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/user.js +35 -0
- package/lib/connection/mongo/oj-main/user.js.map +1 -0
- package/lib/connection/mongo/oj-sq/index.d.ts +3 -0
- package/lib/connection/mongo/oj-sq/index.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/index.js +8 -0
- package/lib/connection/mongo/oj-sq/index.js.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.d.ts +291 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.js +58 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.js.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringServer.d.ts +39 -0
- package/lib/connection/mongo/oj-sq/scoringServer.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringServer.js +12 -0
- package/lib/connection/mongo/oj-sq/scoringServer.js.map +1 -0
- package/lib/connection/redis/index.d.ts +3 -0
- package/lib/connection/redis/index.d.ts.map +1 -0
- package/lib/connection/redis/index.js +19 -0
- package/lib/connection/redis/index.js.map +1 -0
- package/lib/connection/redis/redis.module.d.ts +5 -0
- package/lib/connection/redis/redis.module.d.ts.map +1 -0
- package/lib/connection/redis/redis.module.js +30 -0
- package/lib/connection/redis/redis.module.js.map +1 -0
- package/lib/connection/redis/redis.service.d.ts +35 -0
- package/lib/connection/redis/redis.service.d.ts.map +1 -0
- package/lib/connection/redis/redis.service.js +85 -0
- package/lib/connection/redis/redis.service.js.map +1 -0
- package/lib/connection/s3/index.d.ts +3 -0
- package/lib/connection/s3/index.d.ts.map +1 -0
- package/lib/connection/s3/index.js +19 -0
- package/lib/connection/s3/index.js.map +1 -0
- package/lib/connection/s3/s3.module.d.ts +11 -0
- package/lib/connection/s3/s3.module.d.ts.map +1 -0
- package/lib/connection/s3/s3.module.js +57 -0
- package/lib/connection/s3/s3.module.js.map +1 -0
- package/lib/connection/s3/s3.service.d.ts +54 -0
- package/lib/connection/s3/s3.service.d.ts.map +1 -0
- package/lib/connection/s3/s3.service.js +253 -0
- package/lib/connection/s3/s3.service.js.map +1 -0
- package/lib/connection/social/index.d.ts +3 -0
- package/lib/connection/social/index.d.ts.map +1 -0
- package/lib/connection/social/index.js +19 -0
- package/lib/connection/social/index.js.map +1 -0
- package/lib/connection/social/social.module.d.ts +3 -0
- package/lib/connection/social/social.module.d.ts.map +1 -0
- package/lib/connection/social/social.module.js +21 -0
- package/lib/connection/social/social.module.js.map +1 -0
- package/lib/connection/social/social.service.d.ts +16 -0
- package/lib/connection/social/social.service.d.ts.map +1 -0
- package/lib/connection/social/social.service.js +230 -0
- package/lib/connection/social/social.service.js.map +1 -0
- package/lib/connection/sqs/index.d.ts +3 -0
- package/lib/connection/sqs/index.d.ts.map +1 -0
- package/lib/connection/sqs/index.js +19 -0
- package/lib/connection/sqs/index.js.map +1 -0
- package/lib/connection/sqs/sqs.module.d.ts +5 -0
- package/lib/connection/sqs/sqs.module.d.ts.map +1 -0
- package/lib/connection/sqs/sqs.module.js +31 -0
- package/lib/connection/sqs/sqs.module.js.map +1 -0
- package/lib/connection/sqs/sqs.service.d.ts +28 -0
- package/lib/connection/sqs/sqs.service.d.ts.map +1 -0
- package/lib/connection/sqs/sqs.service.js +122 -0
- package/lib/connection/sqs/sqs.service.js.map +1 -0
- package/lib/constants/metadata.d.ts +5 -0
- package/lib/constants/metadata.d.ts.map +1 -0
- package/lib/constants/metadata.js +8 -0
- package/lib/constants/metadata.js.map +1 -0
- package/lib/decorators/auth.decorator.d.ts +15 -0
- package/lib/decorators/auth.decorator.d.ts.map +1 -0
- package/lib/decorators/auth.decorator.js +65 -0
- package/lib/decorators/auth.decorator.js.map +1 -0
- package/lib/decorators/client.decorator.d.ts +9 -0
- package/lib/decorators/client.decorator.d.ts.map +1 -0
- package/lib/decorators/client.decorator.js +49 -0
- package/lib/decorators/client.decorator.js.map +1 -0
- package/lib/decorators/endpoint.decorator.d.ts +3 -0
- package/lib/decorators/endpoint.decorator.d.ts.map +1 -0
- package/lib/decorators/endpoint.decorator.js +96 -0
- package/lib/decorators/endpoint.decorator.js.map +1 -0
- package/lib/decorators/index.d.ts +8 -0
- package/lib/decorators/index.d.ts.map +1 -0
- package/lib/decorators/index.js +24 -0
- package/lib/decorators/index.js.map +1 -0
- package/lib/decorators/mongo.decorator.d.ts +8 -0
- package/lib/decorators/mongo.decorator.d.ts.map +1 -0
- package/lib/decorators/mongo.decorator.js +115 -0
- package/lib/decorators/mongo.decorator.js.map +1 -0
- package/lib/decorators/socket.decorator.d.ts +5 -0
- package/lib/decorators/socket.decorator.d.ts.map +1 -0
- package/lib/decorators/socket.decorator.js +28 -0
- package/lib/decorators/socket.decorator.js.map +1 -0
- package/lib/decorators/sqs.decorator.d.ts +4 -0
- package/lib/decorators/sqs.decorator.d.ts.map +1 -0
- package/lib/decorators/sqs.decorator.js +8 -0
- package/lib/decorators/sqs.decorator.js.map +1 -0
- package/lib/decorators/swagger.decorator.d.ts +2 -0
- package/lib/decorators/swagger.decorator.d.ts.map +1 -0
- package/lib/decorators/swagger.decorator.js +8 -0
- package/lib/decorators/swagger.decorator.js.map +1 -0
- package/lib/filters/global.filters.d.ts +16 -0
- package/lib/filters/global.filters.d.ts.map +1 -0
- package/lib/filters/global.filters.js +75 -0
- package/lib/filters/global.filters.js.map +1 -0
- package/lib/filters/index.d.ts +2 -0
- package/lib/filters/index.d.ts.map +1 -0
- package/lib/filters/index.js +18 -0
- package/lib/filters/index.js.map +1 -0
- package/lib/guards/auth.guard.d.ts +13 -0
- package/lib/guards/auth.guard.d.ts.map +1 -0
- package/lib/guards/auth.guard.js +61 -0
- package/lib/guards/auth.guard.js.map +1 -0
- package/lib/guards/endpoint.guard.d.ts +4 -0
- package/lib/guards/endpoint.guard.d.ts.map +1 -0
- package/lib/guards/endpoint.guard.js +39 -0
- package/lib/guards/endpoint.guard.js.map +1 -0
- package/lib/guards/global.guard.d.ts +10 -0
- package/lib/guards/global.guard.d.ts.map +1 -0
- package/lib/guards/global.guard.js +139 -0
- package/lib/guards/global.guard.js.map +1 -0
- package/lib/guards/index.d.ts +5 -0
- package/lib/guards/index.d.ts.map +1 -0
- package/lib/guards/index.js +21 -0
- package/lib/guards/index.js.map +1 -0
- package/lib/guards/socket.guard.d.ts +4 -0
- package/lib/guards/socket.guard.d.ts.map +1 -0
- package/lib/guards/socket.guard.js +35 -0
- package/lib/guards/socket.guard.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/logger/index.d.ts +3 -0
- package/lib/logger/index.d.ts.map +1 -0
- package/lib/logger/index.js +21 -0
- package/lib/logger/index.js.map +1 -0
- package/lib/logger/logger.module.d.ts +3 -0
- package/lib/logger/logger.module.d.ts.map +1 -0
- package/lib/logger/logger.module.js +46 -0
- package/lib/logger/logger.module.js.map +1 -0
- package/lib/recaptcha/index.d.ts +3 -0
- package/lib/recaptcha/index.d.ts.map +1 -0
- package/lib/recaptcha/index.js +19 -0
- package/lib/recaptcha/index.js.map +1 -0
- package/lib/recaptcha/recaptcha.module.d.ts +3 -0
- package/lib/recaptcha/recaptcha.module.d.ts.map +1 -0
- package/lib/recaptcha/recaptcha.module.js +21 -0
- package/lib/recaptcha/recaptcha.module.js.map +1 -0
- package/lib/recaptcha/recaptcha.service.d.ts +5 -0
- package/lib/recaptcha/recaptcha.service.d.ts.map +1 -0
- package/lib/recaptcha/recaptcha.service.js +46 -0
- package/lib/recaptcha/recaptcha.service.js.map +1 -0
- package/lib/utils/image/index.d.ts +4 -0
- package/lib/utils/image/index.d.ts.map +1 -0
- package/lib/utils/image/index.js +16 -0
- package/lib/utils/image/index.js.map +1 -0
- package/lib/utils/jwt/index.d.ts +2 -0
- package/lib/utils/jwt/index.d.ts.map +1 -0
- package/lib/utils/jwt/index.js +38 -0
- package/lib/utils/jwt/index.js.map +1 -0
- package/lib/utils/logger/index.d.ts +45 -0
- package/lib/utils/logger/index.d.ts.map +1 -0
- package/lib/utils/logger/index.js +59 -0
- package/lib/utils/logger/index.js.map +1 -0
- package/lib/utils/mongo/index.d.ts +2 -0
- package/lib/utils/mongo/index.d.ts.map +1 -0
- package/lib/utils/mongo/index.js +6 -0
- package/lib/utils/mongo/index.js.map +1 -0
- package/lib/utils/swagger/index.d.ts +7 -0
- package/lib/utils/swagger/index.d.ts.map +1 -0
- package/lib/utils/swagger/index.js +29 -0
- package/lib/utils/swagger/index.js.map +1 -0
- package/package.json +61 -3
- package/README.md +0 -3
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const contestSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
created_at: NativeDate;
|
|
4
|
+
updated_at: NativeDate;
|
|
5
|
+
join_type: "public";
|
|
6
|
+
rank_type: "acm-icpc";
|
|
7
|
+
compile_types: string[];
|
|
8
|
+
manager_user_ids: string[];
|
|
9
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
10
|
+
id: string;
|
|
11
|
+
joined_at: NativeDate;
|
|
12
|
+
panalty_total: number;
|
|
13
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
14
|
+
problem_id: string;
|
|
15
|
+
tries: number;
|
|
16
|
+
status: "accept" | "wrong" | "pending";
|
|
17
|
+
panalty: number;
|
|
18
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
19
|
+
problem_id: string;
|
|
20
|
+
tries: number;
|
|
21
|
+
status: "accept" | "wrong" | "pending";
|
|
22
|
+
panalty: number;
|
|
23
|
+
}, {}, {}> & {
|
|
24
|
+
problem_id: string;
|
|
25
|
+
tries: number;
|
|
26
|
+
status: "accept" | "wrong" | "pending";
|
|
27
|
+
panalty: number;
|
|
28
|
+
}>;
|
|
29
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
30
|
+
id: string;
|
|
31
|
+
joined_at: NativeDate;
|
|
32
|
+
panalty_total: number;
|
|
33
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
34
|
+
problem_id: string;
|
|
35
|
+
tries: number;
|
|
36
|
+
status: "accept" | "wrong" | "pending";
|
|
37
|
+
panalty: number;
|
|
38
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
39
|
+
problem_id: string;
|
|
40
|
+
tries: number;
|
|
41
|
+
status: "accept" | "wrong" | "pending";
|
|
42
|
+
panalty: number;
|
|
43
|
+
}, {}, {}> & {
|
|
44
|
+
problem_id: string;
|
|
45
|
+
tries: number;
|
|
46
|
+
status: "accept" | "wrong" | "pending";
|
|
47
|
+
panalty: number;
|
|
48
|
+
}>;
|
|
49
|
+
}, {}, {}> & {
|
|
50
|
+
id: string;
|
|
51
|
+
joined_at: NativeDate;
|
|
52
|
+
panalty_total: number;
|
|
53
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
54
|
+
problem_id: string;
|
|
55
|
+
tries: number;
|
|
56
|
+
status: "accept" | "wrong" | "pending";
|
|
57
|
+
panalty: number;
|
|
58
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
59
|
+
problem_id: string;
|
|
60
|
+
tries: number;
|
|
61
|
+
status: "accept" | "wrong" | "pending";
|
|
62
|
+
panalty: number;
|
|
63
|
+
}, {}, {}> & {
|
|
64
|
+
problem_id: string;
|
|
65
|
+
tries: number;
|
|
66
|
+
status: "accept" | "wrong" | "pending";
|
|
67
|
+
panalty: number;
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
71
|
+
id: string;
|
|
72
|
+
problem_id: string;
|
|
73
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
74
|
+
id: string;
|
|
75
|
+
problem_id: string;
|
|
76
|
+
}, {}, {}> & {
|
|
77
|
+
id: string;
|
|
78
|
+
problem_id: string;
|
|
79
|
+
}>;
|
|
80
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
81
|
+
created_at: NativeDate;
|
|
82
|
+
updated_at: NativeDate;
|
|
83
|
+
content: string;
|
|
84
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
85
|
+
created_at: NativeDate;
|
|
86
|
+
updated_at: NativeDate;
|
|
87
|
+
content: string;
|
|
88
|
+
}, {}, {}> & {
|
|
89
|
+
created_at: NativeDate;
|
|
90
|
+
updated_at: NativeDate;
|
|
91
|
+
content: string;
|
|
92
|
+
}>;
|
|
93
|
+
time_start: NativeDate;
|
|
94
|
+
time_end: NativeDate;
|
|
95
|
+
title?: {
|
|
96
|
+
kr: string;
|
|
97
|
+
} | null | undefined;
|
|
98
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
99
|
+
created_at: NativeDate;
|
|
100
|
+
updated_at: NativeDate;
|
|
101
|
+
join_type: "public";
|
|
102
|
+
rank_type: "acm-icpc";
|
|
103
|
+
compile_types: string[];
|
|
104
|
+
manager_user_ids: string[];
|
|
105
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
106
|
+
id: string;
|
|
107
|
+
joined_at: NativeDate;
|
|
108
|
+
panalty_total: number;
|
|
109
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
110
|
+
problem_id: string;
|
|
111
|
+
tries: number;
|
|
112
|
+
status: "accept" | "wrong" | "pending";
|
|
113
|
+
panalty: number;
|
|
114
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
115
|
+
problem_id: string;
|
|
116
|
+
tries: number;
|
|
117
|
+
status: "accept" | "wrong" | "pending";
|
|
118
|
+
panalty: number;
|
|
119
|
+
}, {}, {}> & {
|
|
120
|
+
problem_id: string;
|
|
121
|
+
tries: number;
|
|
122
|
+
status: "accept" | "wrong" | "pending";
|
|
123
|
+
panalty: number;
|
|
124
|
+
}>;
|
|
125
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
126
|
+
id: string;
|
|
127
|
+
joined_at: NativeDate;
|
|
128
|
+
panalty_total: number;
|
|
129
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
130
|
+
problem_id: string;
|
|
131
|
+
tries: number;
|
|
132
|
+
status: "accept" | "wrong" | "pending";
|
|
133
|
+
panalty: number;
|
|
134
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
135
|
+
problem_id: string;
|
|
136
|
+
tries: number;
|
|
137
|
+
status: "accept" | "wrong" | "pending";
|
|
138
|
+
panalty: number;
|
|
139
|
+
}, {}, {}> & {
|
|
140
|
+
problem_id: string;
|
|
141
|
+
tries: number;
|
|
142
|
+
status: "accept" | "wrong" | "pending";
|
|
143
|
+
panalty: number;
|
|
144
|
+
}>;
|
|
145
|
+
}, {}, {}> & {
|
|
146
|
+
id: string;
|
|
147
|
+
joined_at: NativeDate;
|
|
148
|
+
panalty_total: number;
|
|
149
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
150
|
+
problem_id: string;
|
|
151
|
+
tries: number;
|
|
152
|
+
status: "accept" | "wrong" | "pending";
|
|
153
|
+
panalty: number;
|
|
154
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
155
|
+
problem_id: string;
|
|
156
|
+
tries: number;
|
|
157
|
+
status: "accept" | "wrong" | "pending";
|
|
158
|
+
panalty: number;
|
|
159
|
+
}, {}, {}> & {
|
|
160
|
+
problem_id: string;
|
|
161
|
+
tries: number;
|
|
162
|
+
status: "accept" | "wrong" | "pending";
|
|
163
|
+
panalty: number;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
167
|
+
id: string;
|
|
168
|
+
problem_id: string;
|
|
169
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
170
|
+
id: string;
|
|
171
|
+
problem_id: string;
|
|
172
|
+
}, {}, {}> & {
|
|
173
|
+
id: string;
|
|
174
|
+
problem_id: string;
|
|
175
|
+
}>;
|
|
176
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
177
|
+
created_at: NativeDate;
|
|
178
|
+
updated_at: NativeDate;
|
|
179
|
+
content: string;
|
|
180
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
181
|
+
created_at: NativeDate;
|
|
182
|
+
updated_at: NativeDate;
|
|
183
|
+
content: string;
|
|
184
|
+
}, {}, {}> & {
|
|
185
|
+
created_at: NativeDate;
|
|
186
|
+
updated_at: NativeDate;
|
|
187
|
+
content: string;
|
|
188
|
+
}>;
|
|
189
|
+
time_start: NativeDate;
|
|
190
|
+
time_end: NativeDate;
|
|
191
|
+
title?: {
|
|
192
|
+
kr: string;
|
|
193
|
+
} | null | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
id: string;
|
|
196
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
197
|
+
created_at: NativeDate;
|
|
198
|
+
updated_at: NativeDate;
|
|
199
|
+
join_type: "public";
|
|
200
|
+
rank_type: "acm-icpc";
|
|
201
|
+
compile_types: string[];
|
|
202
|
+
manager_user_ids: string[];
|
|
203
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
204
|
+
id: string;
|
|
205
|
+
joined_at: NativeDate;
|
|
206
|
+
panalty_total: number;
|
|
207
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
208
|
+
problem_id: string;
|
|
209
|
+
tries: number;
|
|
210
|
+
status: "accept" | "wrong" | "pending";
|
|
211
|
+
panalty: number;
|
|
212
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
213
|
+
problem_id: string;
|
|
214
|
+
tries: number;
|
|
215
|
+
status: "accept" | "wrong" | "pending";
|
|
216
|
+
panalty: number;
|
|
217
|
+
}, {}, {}> & {
|
|
218
|
+
problem_id: string;
|
|
219
|
+
tries: number;
|
|
220
|
+
status: "accept" | "wrong" | "pending";
|
|
221
|
+
panalty: number;
|
|
222
|
+
}>;
|
|
223
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
224
|
+
id: string;
|
|
225
|
+
joined_at: NativeDate;
|
|
226
|
+
panalty_total: number;
|
|
227
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
228
|
+
problem_id: string;
|
|
229
|
+
tries: number;
|
|
230
|
+
status: "accept" | "wrong" | "pending";
|
|
231
|
+
panalty: number;
|
|
232
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
233
|
+
problem_id: string;
|
|
234
|
+
tries: number;
|
|
235
|
+
status: "accept" | "wrong" | "pending";
|
|
236
|
+
panalty: number;
|
|
237
|
+
}, {}, {}> & {
|
|
238
|
+
problem_id: string;
|
|
239
|
+
tries: number;
|
|
240
|
+
status: "accept" | "wrong" | "pending";
|
|
241
|
+
panalty: number;
|
|
242
|
+
}>;
|
|
243
|
+
}, {}, {}> & {
|
|
244
|
+
id: string;
|
|
245
|
+
joined_at: NativeDate;
|
|
246
|
+
panalty_total: number;
|
|
247
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
248
|
+
problem_id: string;
|
|
249
|
+
tries: number;
|
|
250
|
+
status: "accept" | "wrong" | "pending";
|
|
251
|
+
panalty: number;
|
|
252
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
253
|
+
problem_id: string;
|
|
254
|
+
tries: number;
|
|
255
|
+
status: "accept" | "wrong" | "pending";
|
|
256
|
+
panalty: number;
|
|
257
|
+
}, {}, {}> & {
|
|
258
|
+
problem_id: string;
|
|
259
|
+
tries: number;
|
|
260
|
+
status: "accept" | "wrong" | "pending";
|
|
261
|
+
panalty: number;
|
|
262
|
+
}>;
|
|
263
|
+
}>;
|
|
264
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
265
|
+
id: string;
|
|
266
|
+
problem_id: string;
|
|
267
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
268
|
+
id: string;
|
|
269
|
+
problem_id: string;
|
|
270
|
+
}, {}, {}> & {
|
|
271
|
+
id: string;
|
|
272
|
+
problem_id: string;
|
|
273
|
+
}>;
|
|
274
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
275
|
+
created_at: NativeDate;
|
|
276
|
+
updated_at: NativeDate;
|
|
277
|
+
content: string;
|
|
278
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
279
|
+
created_at: NativeDate;
|
|
280
|
+
updated_at: NativeDate;
|
|
281
|
+
content: string;
|
|
282
|
+
}, {}, {}> & {
|
|
283
|
+
created_at: NativeDate;
|
|
284
|
+
updated_at: NativeDate;
|
|
285
|
+
content: string;
|
|
286
|
+
}>;
|
|
287
|
+
time_start: NativeDate;
|
|
288
|
+
time_end: NativeDate;
|
|
289
|
+
title?: {
|
|
290
|
+
kr: string;
|
|
291
|
+
} | null | undefined;
|
|
292
|
+
} & {
|
|
293
|
+
_id: import("mongoose").Types.ObjectId;
|
|
294
|
+
} & {
|
|
295
|
+
__v: number;
|
|
296
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
297
|
+
id: string;
|
|
298
|
+
}>, unknown, {
|
|
299
|
+
created_at: NativeDate;
|
|
300
|
+
updated_at: NativeDate;
|
|
301
|
+
join_type: "public";
|
|
302
|
+
rank_type: "acm-icpc";
|
|
303
|
+
compile_types: string[];
|
|
304
|
+
manager_user_ids: string[];
|
|
305
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
306
|
+
id: string;
|
|
307
|
+
joined_at: NativeDate;
|
|
308
|
+
panalty_total: number;
|
|
309
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
310
|
+
problem_id: string;
|
|
311
|
+
tries: number;
|
|
312
|
+
status: "accept" | "wrong" | "pending";
|
|
313
|
+
panalty: number;
|
|
314
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
315
|
+
problem_id: string;
|
|
316
|
+
tries: number;
|
|
317
|
+
status: "accept" | "wrong" | "pending";
|
|
318
|
+
panalty: number;
|
|
319
|
+
}, {}, {}> & {
|
|
320
|
+
problem_id: string;
|
|
321
|
+
tries: number;
|
|
322
|
+
status: "accept" | "wrong" | "pending";
|
|
323
|
+
panalty: number;
|
|
324
|
+
}>;
|
|
325
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
326
|
+
id: string;
|
|
327
|
+
joined_at: NativeDate;
|
|
328
|
+
panalty_total: number;
|
|
329
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
330
|
+
problem_id: string;
|
|
331
|
+
tries: number;
|
|
332
|
+
status: "accept" | "wrong" | "pending";
|
|
333
|
+
panalty: number;
|
|
334
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
335
|
+
problem_id: string;
|
|
336
|
+
tries: number;
|
|
337
|
+
status: "accept" | "wrong" | "pending";
|
|
338
|
+
panalty: number;
|
|
339
|
+
}, {}, {}> & {
|
|
340
|
+
problem_id: string;
|
|
341
|
+
tries: number;
|
|
342
|
+
status: "accept" | "wrong" | "pending";
|
|
343
|
+
panalty: number;
|
|
344
|
+
}>;
|
|
345
|
+
}, {}, {}> & {
|
|
346
|
+
id: string;
|
|
347
|
+
joined_at: NativeDate;
|
|
348
|
+
panalty_total: number;
|
|
349
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
350
|
+
problem_id: string;
|
|
351
|
+
tries: number;
|
|
352
|
+
status: "accept" | "wrong" | "pending";
|
|
353
|
+
panalty: number;
|
|
354
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
355
|
+
problem_id: string;
|
|
356
|
+
tries: number;
|
|
357
|
+
status: "accept" | "wrong" | "pending";
|
|
358
|
+
panalty: number;
|
|
359
|
+
}, {}, {}> & {
|
|
360
|
+
problem_id: string;
|
|
361
|
+
tries: number;
|
|
362
|
+
status: "accept" | "wrong" | "pending";
|
|
363
|
+
panalty: number;
|
|
364
|
+
}>;
|
|
365
|
+
}>;
|
|
366
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
367
|
+
id: string;
|
|
368
|
+
problem_id: string;
|
|
369
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
370
|
+
id: string;
|
|
371
|
+
problem_id: string;
|
|
372
|
+
}, {}, {}> & {
|
|
373
|
+
id: string;
|
|
374
|
+
problem_id: string;
|
|
375
|
+
}>;
|
|
376
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
377
|
+
created_at: NativeDate;
|
|
378
|
+
updated_at: NativeDate;
|
|
379
|
+
content: string;
|
|
380
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
381
|
+
created_at: NativeDate;
|
|
382
|
+
updated_at: NativeDate;
|
|
383
|
+
content: string;
|
|
384
|
+
}, {}, {}> & {
|
|
385
|
+
created_at: NativeDate;
|
|
386
|
+
updated_at: NativeDate;
|
|
387
|
+
content: string;
|
|
388
|
+
}>;
|
|
389
|
+
time_start: NativeDate;
|
|
390
|
+
time_end: NativeDate;
|
|
391
|
+
title?: {
|
|
392
|
+
kr: string;
|
|
393
|
+
} | null | undefined;
|
|
394
|
+
} & {
|
|
395
|
+
_id: import("mongoose").Types.ObjectId;
|
|
396
|
+
} & {
|
|
397
|
+
__v: number;
|
|
398
|
+
}>;
|
|
399
|
+
//# sourceMappingURL=contest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contest.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/contest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAiClC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contestSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const oj_contest_1 = require("@euler-edu/constant/oj-contest");
|
|
6
|
+
const userPanaltySchema = new mongoose_1.Schema({
|
|
7
|
+
problem_id: { type: String, required: true },
|
|
8
|
+
tries: { type: Number, required: true, default: 0 },
|
|
9
|
+
status: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
enum: oj_contest_1.ojContest.userPanaltyStatuses,
|
|
13
|
+
},
|
|
14
|
+
panalty: { type: Number, required: true, default: 0 },
|
|
15
|
+
});
|
|
16
|
+
const userSchema = new mongoose_1.Schema({
|
|
17
|
+
id: { type: String, required: true },
|
|
18
|
+
joined_at: { type: Date, required: true },
|
|
19
|
+
panalty_total: { type: Number, required: true, default: 0 },
|
|
20
|
+
panalties: { type: [userPanaltySchema], required: true, default: [] },
|
|
21
|
+
});
|
|
22
|
+
const problemSchema = new mongoose_1.Schema({
|
|
23
|
+
id: { type: String, required: true },
|
|
24
|
+
problem_id: { type: String, required: true },
|
|
25
|
+
});
|
|
26
|
+
const noticeSchema = new mongoose_1.Schema({
|
|
27
|
+
content: { type: String, required: true, default: '' },
|
|
28
|
+
created_at: { type: Date, required: true },
|
|
29
|
+
updated_at: { type: Date, required: true },
|
|
30
|
+
});
|
|
31
|
+
exports.contestSchema = new mongoose_1.Schema({
|
|
32
|
+
title: new mongoose_1.Schema({
|
|
33
|
+
kr: { type: String, required: true, default: '' },
|
|
34
|
+
}),
|
|
35
|
+
join_type: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
enum: oj_contest_1.ojContest.joinTypes,
|
|
39
|
+
},
|
|
40
|
+
rank_type: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true,
|
|
43
|
+
enum: oj_contest_1.ojContest.rankTypes,
|
|
44
|
+
},
|
|
45
|
+
compile_types: { type: [String], required: true, default: [] },
|
|
46
|
+
manager_user_ids: { type: [String], required: true, default: [] },
|
|
47
|
+
users: { type: [userSchema], required: true, default: [] },
|
|
48
|
+
problems: { type: [problemSchema], required: true, default: [] },
|
|
49
|
+
notices: { type: [noticeSchema], default: [] },
|
|
50
|
+
time_start: { type: Date, required: true },
|
|
51
|
+
time_end: { type: Date, required: true },
|
|
52
|
+
created_at: { type: Date, required: true },
|
|
53
|
+
updated_at: { type: Date, required: true },
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=contest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contest.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/contest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { userSchema } from './user';
|
|
2
|
+
export { problemSchema } from './problem';
|
|
3
|
+
export { recordSchema } from './record';
|
|
4
|
+
export { contestSchema } from './contest';
|
|
5
|
+
export { sourcesubmitSchema } from './sourcesubmit';
|
|
6
|
+
export { sourceconsoleSchema } from './sourceconsole';
|
|
7
|
+
export { mailSchema } from './mail';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mailSchema = exports.sourceconsoleSchema = exports.sourcesubmitSchema = exports.contestSchema = exports.recordSchema = exports.problemSchema = exports.userSchema = void 0;
|
|
4
|
+
var user_1 = require("./user");
|
|
5
|
+
Object.defineProperty(exports, "userSchema", { enumerable: true, get: function () { return user_1.userSchema; } });
|
|
6
|
+
var problem_1 = require("./problem");
|
|
7
|
+
Object.defineProperty(exports, "problemSchema", { enumerable: true, get: function () { return problem_1.problemSchema; } });
|
|
8
|
+
var record_1 = require("./record");
|
|
9
|
+
Object.defineProperty(exports, "recordSchema", { enumerable: true, get: function () { return record_1.recordSchema; } });
|
|
10
|
+
var contest_1 = require("./contest");
|
|
11
|
+
Object.defineProperty(exports, "contestSchema", { enumerable: true, get: function () { return contest_1.contestSchema; } });
|
|
12
|
+
var sourcesubmit_1 = require("./sourcesubmit");
|
|
13
|
+
Object.defineProperty(exports, "sourcesubmitSchema", { enumerable: true, get: function () { return sourcesubmit_1.sourcesubmitSchema; } });
|
|
14
|
+
var sourceconsole_1 = require("./sourceconsole");
|
|
15
|
+
Object.defineProperty(exports, "sourceconsoleSchema", { enumerable: true, get: function () { return sourceconsole_1.sourceconsoleSchema; } });
|
|
16
|
+
var mail_1 = require("./mail");
|
|
17
|
+
Object.defineProperty(exports, "mailSchema", { enumerable: true, get: function () { return mail_1.mailSchema; } });
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/index.ts"],"names":[],"mappings":";;;AAAA,+BAAoC;AAA3B,kGAAA,UAAU,OAAA;AACnB,qCAA0C;AAAjC,wGAAA,aAAa,OAAA;AACtB,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,qCAA0C;AAAjC,wGAAA,aAAa,OAAA;AACtB,+CAAoD;AAA3C,kHAAA,kBAAkB,OAAA;AAC3B,iDAAsD;AAA7C,oHAAA,mBAAmB,OAAA;AAC5B,+BAAoC;AAA3B,kGAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const mailSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
type: "email-verification" | "reset-password";
|
|
4
|
+
created_at: NativeDate;
|
|
5
|
+
to: string[];
|
|
6
|
+
expired_at: NativeDate;
|
|
7
|
+
login_id?: string | null | undefined;
|
|
8
|
+
error?: any;
|
|
9
|
+
verification_token?: string | null | undefined;
|
|
10
|
+
response?: any;
|
|
11
|
+
is_valid?: boolean | null | undefined;
|
|
12
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
13
|
+
type: "email-verification" | "reset-password";
|
|
14
|
+
created_at: NativeDate;
|
|
15
|
+
to: string[];
|
|
16
|
+
expired_at: NativeDate;
|
|
17
|
+
login_id?: string | null | undefined;
|
|
18
|
+
error?: any;
|
|
19
|
+
verification_token?: string | null | undefined;
|
|
20
|
+
response?: any;
|
|
21
|
+
is_valid?: boolean | null | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
25
|
+
type: "email-verification" | "reset-password";
|
|
26
|
+
created_at: NativeDate;
|
|
27
|
+
to: string[];
|
|
28
|
+
expired_at: NativeDate;
|
|
29
|
+
login_id?: string | null | undefined;
|
|
30
|
+
error?: any;
|
|
31
|
+
verification_token?: string | null | undefined;
|
|
32
|
+
response?: any;
|
|
33
|
+
is_valid?: boolean | null | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
} & {
|
|
37
|
+
__v: number;
|
|
38
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
39
|
+
id: string;
|
|
40
|
+
}>, unknown, {
|
|
41
|
+
type: "email-verification" | "reset-password";
|
|
42
|
+
created_at: NativeDate;
|
|
43
|
+
to: string[];
|
|
44
|
+
expired_at: NativeDate;
|
|
45
|
+
login_id?: string | null | undefined;
|
|
46
|
+
error?: any;
|
|
47
|
+
verification_token?: string | null | undefined;
|
|
48
|
+
response?: any;
|
|
49
|
+
is_valid?: boolean | null | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
} & {
|
|
53
|
+
__v: number;
|
|
54
|
+
}>;
|
|
55
|
+
//# sourceMappingURL=mail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/mail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCrB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mailSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const oj_mail_1 = require("@euler-edu/constant/oj-mail");
|
|
6
|
+
exports.mailSchema = new mongoose_1.Schema({
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: true,
|
|
10
|
+
enum: oj_mail_1.ojMail.types,
|
|
11
|
+
},
|
|
12
|
+
to: {
|
|
13
|
+
type: [String],
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
login_id: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: false,
|
|
19
|
+
},
|
|
20
|
+
verification_token: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: false,
|
|
23
|
+
},
|
|
24
|
+
response: {
|
|
25
|
+
type: Object,
|
|
26
|
+
required: false,
|
|
27
|
+
},
|
|
28
|
+
error: {
|
|
29
|
+
type: Object,
|
|
30
|
+
required: false,
|
|
31
|
+
},
|
|
32
|
+
is_valid: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
},
|
|
35
|
+
created_at: {
|
|
36
|
+
type: Date,
|
|
37
|
+
required: true,
|
|
38
|
+
},
|
|
39
|
+
expired_at: {
|
|
40
|
+
type: Date,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=mail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/mail.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC,yDAAqD;AAExC,QAAA,UAAU,GAAG,IAAI,iBAAM,CAAC;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,gBAAM,CAAC,KAAK;KACnB;IACD,EAAE,EAAE;QACF,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,OAAO;KACd;IACD,UAAU,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC"}
|