@r2wa-org/eden 0.0.97 → 0.0.100

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.
Files changed (89) hide show
  1. package/dist/admin/index.d.ts +1460 -86
  2. package/dist/asset/admin/router.d.ts +1 -13
  3. package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
  4. package/dist/asset-convert-product/admin/router.d.ts +25 -13
  5. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  6. package/dist/auth/better-auth.d.ts +19 -1
  7. package/dist/auth/i18n/zh.d.ts +100 -0
  8. package/dist/auth/permissions.d.ts +16 -1
  9. package/dist/auth/roles.d.ts +45 -0
  10. package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
  11. package/dist/check-in/admin/reward.router.d.ts +1192 -0
  12. package/dist/check-in/admin/reward.service.d.ts +479 -0
  13. package/dist/check-in/admin/router.d.ts +745 -0
  14. package/dist/check-in/errors/index.d.ts +9 -0
  15. package/dist/check-in/errors/locales/zh.d.ts +9 -0
  16. package/dist/check-in/index.d.ts +5 -0
  17. package/dist/check-in/internal/reward-config.service.d.ts +66 -0
  18. package/dist/check-in/permissions.d.ts +2 -0
  19. package/dist/check-in/reward.db.schemas.d.ts +896 -0
  20. package/dist/check-in/reward.schema.d.ts +477 -0
  21. package/dist/content-video/admin/dto.schemas.d.ts +128 -0
  22. package/dist/content-video/admin/router.d.ts +861 -0
  23. package/dist/content-video/admin/service.d.ts +211 -0
  24. package/dist/content-video/db.schemas.d.ts +486 -0
  25. package/dist/content-video/errors/index.d.ts +17 -0
  26. package/dist/content-video/errors/locales/zh.d.ts +16 -0
  27. package/dist/content-video/index.d.ts +8 -0
  28. package/dist/content-video/internal/service.d.ts +106 -0
  29. package/dist/content-video/permissions.d.ts +4 -0
  30. package/dist/content-video/schema.d.ts +257 -0
  31. package/dist/content-video/user/dto.schemas.d.ts +52 -0
  32. package/dist/content-video/user/router.d.ts +494 -0
  33. package/dist/content-video/user/service.d.ts +36 -0
  34. package/dist/db/schemas.d.ts +2 -0
  35. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  36. package/dist/file-storage/admin/router.d.ts +2 -2
  37. package/dist/file-storage/admin/service.d.ts +2 -2
  38. package/dist/file-storage/db.schemas.d.ts +4 -4
  39. package/dist/file-storage/internal/service.d.ts +1 -1
  40. package/dist/file-storage/s3.client.d.ts +22 -0
  41. package/dist/file-storage/schema.d.ts +3 -3
  42. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  43. package/dist/file-storage/share/router.d.ts +1 -1
  44. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  45. package/dist/file-storage/user/router.d.ts +3 -3
  46. package/dist/file-storage/user/service.d.ts +2 -2
  47. package/dist/index.d.ts +1875 -215
  48. package/dist/ledger/admin/dto.schemas.d.ts +8 -0
  49. package/dist/ledger/admin/router.d.ts +4 -4
  50. package/dist/ledger/db.schemas.d.ts +8 -8
  51. package/dist/ledger/schema.d.ts +6 -6
  52. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  53. package/dist/ledger/user/router.d.ts +2 -2
  54. package/dist/ledger/user/service.d.ts +2 -2
  55. package/dist/ledger-account-type/admin/router.d.ts +1 -13
  56. package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
  57. package/dist/lock-activity/admin/participation.dto.schemas.d.ts +52 -0
  58. package/dist/lock-activity/admin/reward.service.d.ts +48 -0
  59. package/dist/lock-activity/admin/router.d.ts +127 -0
  60. package/dist/lock-activity/admin/service.d.ts +134 -8
  61. package/dist/lock-activity/constants.d.ts +2 -0
  62. package/dist/lock-activity/cron.d.ts +6 -0
  63. package/dist/lock-activity/db.schemas.d.ts +34 -0
  64. package/dist/lock-activity/errors/index.d.ts +3 -0
  65. package/dist/lock-activity/errors/locales/zh.d.ts +3 -0
  66. package/dist/lock-activity/internal/reward.service.d.ts +15 -0
  67. package/dist/lock-activity/internal/service.d.ts +41 -0
  68. package/dist/lock-activity/schema.d.ts +18 -0
  69. package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
  70. package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
  71. package/dist/lock-activity/user/router.d.ts +16 -0
  72. package/dist/lock-activity/user/service.d.ts +39 -3
  73. package/dist/news/admin/dto.schemas.d.ts +26 -26
  74. package/dist/news/admin/router.d.ts +25 -25
  75. package/dist/news/admin/service.d.ts +4 -1
  76. package/dist/news/user/service.d.ts +2 -2
  77. package/dist/referral/admin/dto.schemas.d.ts +597 -0
  78. package/dist/referral/admin/router.d.ts +565 -0
  79. package/dist/referral/admin/service.d.ts +6 -0
  80. package/dist/referral/errors/index.d.ts +15 -0
  81. package/dist/referral/errors/locales/zh.d.ts +14 -0
  82. package/dist/referral/index.d.ts +10 -0
  83. package/dist/referral/internal/service.d.ts +23 -0
  84. package/dist/referral/user/dto.schemas.d.ts +602 -0
  85. package/dist/referral/user/router.d.ts +606 -0
  86. package/dist/referral/user/service.d.ts +21 -0
  87. package/dist/user/internal/avatar.service.d.ts +42 -0
  88. package/dist/withdraw/user/router.d.ts +1 -13
  89. package/package.json +1 -1
@@ -0,0 +1,494 @@
1
+ import Elysia from 'elysia';
2
+ export declare const contentVideoRouter: Elysia<"/content_videos", {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ typebox: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ standaloneSchema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ parser: {};
16
+ response: {};
17
+ } & {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: Partial<{
21
+ readonly auth: boolean;
22
+ readonly admin: boolean;
23
+ }>;
24
+ macroFn: {
25
+ readonly auth: {
26
+ readonly resolve: ({ status, request: { headers } }: {
27
+ body: unknown;
28
+ query: Record<string, string>;
29
+ params: {};
30
+ headers: Record<string, string | undefined>;
31
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
32
+ server: import("elysia/universal/server").Server | null;
33
+ redirect: import("elysia").redirect;
34
+ set: {
35
+ headers: import("elysia").HTTPHeaders;
36
+ status?: number | keyof import("elysia").StatusMap;
37
+ redirect?: string;
38
+ cookie?: Record<string, {
39
+ domain?: string | undefined;
40
+ expires?: Date | undefined;
41
+ httpOnly?: boolean | undefined;
42
+ maxAge?: number | undefined;
43
+ path?: string | undefined;
44
+ priority?: 'low' | 'medium' | 'high' | undefined;
45
+ partitioned?: boolean | undefined;
46
+ sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
+ secure?: boolean | undefined;
48
+ secrets?: string | null | (string | null)[];
49
+ value?: unknown;
50
+ }>;
51
+ };
52
+ path: string;
53
+ route: string;
54
+ request: Request;
55
+ store: {};
56
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
57
+ readonly 100: "Continue";
58
+ readonly 101: "Switching Protocols";
59
+ readonly 102: "Processing";
60
+ readonly 103: "Early Hints";
61
+ readonly 200: "OK";
62
+ readonly 201: "Created";
63
+ readonly 202: "Accepted";
64
+ readonly 203: "Non-Authoritative Information";
65
+ readonly 204: "No Content";
66
+ readonly 205: "Reset Content";
67
+ readonly 206: "Partial Content";
68
+ readonly 207: "Multi-Status";
69
+ readonly 208: "Already Reported";
70
+ readonly 300: "Multiple Choices";
71
+ readonly 301: "Moved Permanently";
72
+ readonly 302: "Found";
73
+ readonly 303: "See Other";
74
+ readonly 304: "Not Modified";
75
+ readonly 307: "Temporary Redirect";
76
+ readonly 308: "Permanent Redirect";
77
+ readonly 400: "Bad Request";
78
+ readonly 401: "Unauthorized";
79
+ readonly 402: "Payment Required";
80
+ readonly 403: "Forbidden";
81
+ readonly 404: "Not Found";
82
+ readonly 405: "Method Not Allowed";
83
+ readonly 406: "Not Acceptable";
84
+ readonly 407: "Proxy Authentication Required";
85
+ readonly 408: "Request Timeout";
86
+ readonly 409: "Conflict";
87
+ readonly 410: "Gone";
88
+ readonly 411: "Length Required";
89
+ readonly 412: "Precondition Failed";
90
+ readonly 413: "Payload Too Large";
91
+ readonly 414: "URI Too Long";
92
+ readonly 415: "Unsupported Media Type";
93
+ readonly 416: "Range Not Satisfiable";
94
+ readonly 417: "Expectation Failed";
95
+ readonly 418: "I'm a teapot";
96
+ readonly 420: "Enhance Your Calm";
97
+ readonly 421: "Misdirected Request";
98
+ readonly 422: "Unprocessable Content";
99
+ readonly 423: "Locked";
100
+ readonly 424: "Failed Dependency";
101
+ readonly 425: "Too Early";
102
+ readonly 426: "Upgrade Required";
103
+ readonly 428: "Precondition Required";
104
+ readonly 429: "Too Many Requests";
105
+ readonly 431: "Request Header Fields Too Large";
106
+ readonly 451: "Unavailable For Legal Reasons";
107
+ readonly 500: "Internal Server Error";
108
+ readonly 501: "Not Implemented";
109
+ readonly 502: "Bad Gateway";
110
+ readonly 503: "Service Unavailable";
111
+ readonly 504: "Gateway Timeout";
112
+ readonly 505: "HTTP Version Not Supported";
113
+ readonly 506: "Variant Also Negotiates";
114
+ readonly 507: "Insufficient Storage";
115
+ readonly 508: "Loop Detected";
116
+ readonly 510: "Not Extended";
117
+ readonly 511: "Network Authentication Required";
118
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
119
+ readonly Continue: 100;
120
+ readonly 'Switching Protocols': 101;
121
+ readonly Processing: 102;
122
+ readonly 'Early Hints': 103;
123
+ readonly OK: 200;
124
+ readonly Created: 201;
125
+ readonly Accepted: 202;
126
+ readonly 'Non-Authoritative Information': 203;
127
+ readonly 'No Content': 204;
128
+ readonly 'Reset Content': 205;
129
+ readonly 'Partial Content': 206;
130
+ readonly 'Multi-Status': 207;
131
+ readonly 'Already Reported': 208;
132
+ readonly 'Multiple Choices': 300;
133
+ readonly 'Moved Permanently': 301;
134
+ readonly Found: 302;
135
+ readonly 'See Other': 303;
136
+ readonly 'Not Modified': 304;
137
+ readonly 'Temporary Redirect': 307;
138
+ readonly 'Permanent Redirect': 308;
139
+ readonly 'Bad Request': 400;
140
+ readonly Unauthorized: 401;
141
+ readonly 'Payment Required': 402;
142
+ readonly Forbidden: 403;
143
+ readonly 'Not Found': 404;
144
+ readonly 'Method Not Allowed': 405;
145
+ readonly 'Not Acceptable': 406;
146
+ readonly 'Proxy Authentication Required': 407;
147
+ readonly 'Request Timeout': 408;
148
+ readonly Conflict: 409;
149
+ readonly Gone: 410;
150
+ readonly 'Length Required': 411;
151
+ readonly 'Precondition Failed': 412;
152
+ readonly 'Payload Too Large': 413;
153
+ readonly 'URI Too Long': 414;
154
+ readonly 'Unsupported Media Type': 415;
155
+ readonly 'Range Not Satisfiable': 416;
156
+ readonly 'Expectation Failed': 417;
157
+ readonly "I'm a teapot": 418;
158
+ readonly 'Enhance Your Calm': 420;
159
+ readonly 'Misdirected Request': 421;
160
+ readonly 'Unprocessable Content': 422;
161
+ readonly Locked: 423;
162
+ readonly 'Failed Dependency': 424;
163
+ readonly 'Too Early': 425;
164
+ readonly 'Upgrade Required': 426;
165
+ readonly 'Precondition Required': 428;
166
+ readonly 'Too Many Requests': 429;
167
+ readonly 'Request Header Fields Too Large': 431;
168
+ readonly 'Unavailable For Legal Reasons': 451;
169
+ readonly 'Internal Server Error': 500;
170
+ readonly 'Not Implemented': 501;
171
+ readonly 'Bad Gateway': 502;
172
+ readonly 'Service Unavailable': 503;
173
+ readonly 'Gateway Timeout': 504;
174
+ readonly 'HTTP Version Not Supported': 505;
175
+ readonly 'Variant Also Negotiates': 506;
176
+ readonly 'Insufficient Storage': 507;
177
+ readonly 'Loop Detected': 508;
178
+ readonly 'Not Extended': 510;
179
+ readonly 'Network Authentication Required': 511;
180
+ }[Code] : Code>;
181
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
182
+ user: {
183
+ id: string;
184
+ createdAt: Date;
185
+ updatedAt: Date;
186
+ email: string;
187
+ emailVerified: boolean;
188
+ name: string;
189
+ image?: string | null | undefined;
190
+ banExpires?: Date | null | undefined;
191
+ banReason?: string | null | undefined;
192
+ banned: boolean | null | undefined;
193
+ displayUsername?: string | null | undefined;
194
+ phoneNumber?: string | null | undefined;
195
+ phoneNumberVerified?: boolean | null | undefined;
196
+ role?: string | null | undefined;
197
+ twoFactorEnabled: boolean | null | undefined;
198
+ username?: string | null | undefined;
199
+ };
200
+ session: {
201
+ id: string;
202
+ createdAt: Date;
203
+ updatedAt: Date;
204
+ userId: string;
205
+ expiresAt: Date;
206
+ token: string;
207
+ ipAddress?: string | null | undefined;
208
+ userAgent?: string | null | undefined;
209
+ impersonatedBy?: string | null | undefined;
210
+ };
211
+ }>;
212
+ };
213
+ readonly admin: {
214
+ readonly resolve: ({ status, request: { headers } }: {
215
+ body: unknown;
216
+ query: Record<string, string>;
217
+ params: {};
218
+ headers: Record<string, string | undefined>;
219
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
220
+ server: import("elysia/universal/server").Server | null;
221
+ redirect: import("elysia").redirect;
222
+ set: {
223
+ headers: import("elysia").HTTPHeaders;
224
+ status?: number | keyof import("elysia").StatusMap;
225
+ redirect?: string;
226
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
227
+ };
228
+ path: string;
229
+ route: string;
230
+ request: Request;
231
+ store: {};
232
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
233
+ readonly 100: "Continue";
234
+ readonly 101: "Switching Protocols";
235
+ readonly 102: "Processing";
236
+ readonly 103: "Early Hints";
237
+ readonly 200: "OK";
238
+ readonly 201: "Created";
239
+ readonly 202: "Accepted";
240
+ readonly 203: "Non-Authoritative Information";
241
+ readonly 204: "No Content";
242
+ readonly 205: "Reset Content";
243
+ readonly 206: "Partial Content";
244
+ readonly 207: "Multi-Status";
245
+ readonly 208: "Already Reported";
246
+ readonly 300: "Multiple Choices";
247
+ readonly 301: "Moved Permanently";
248
+ readonly 302: "Found";
249
+ readonly 303: "See Other";
250
+ readonly 304: "Not Modified";
251
+ readonly 307: "Temporary Redirect";
252
+ readonly 308: "Permanent Redirect";
253
+ readonly 400: "Bad Request";
254
+ readonly 401: "Unauthorized";
255
+ readonly 402: "Payment Required";
256
+ readonly 403: "Forbidden";
257
+ readonly 404: "Not Found";
258
+ readonly 405: "Method Not Allowed";
259
+ readonly 406: "Not Acceptable";
260
+ readonly 407: "Proxy Authentication Required";
261
+ readonly 408: "Request Timeout";
262
+ readonly 409: "Conflict";
263
+ readonly 410: "Gone";
264
+ readonly 411: "Length Required";
265
+ readonly 412: "Precondition Failed";
266
+ readonly 413: "Payload Too Large";
267
+ readonly 414: "URI Too Long";
268
+ readonly 415: "Unsupported Media Type";
269
+ readonly 416: "Range Not Satisfiable";
270
+ readonly 417: "Expectation Failed";
271
+ readonly 418: "I'm a teapot";
272
+ readonly 420: "Enhance Your Calm";
273
+ readonly 421: "Misdirected Request";
274
+ readonly 422: "Unprocessable Content";
275
+ readonly 423: "Locked";
276
+ readonly 424: "Failed Dependency";
277
+ readonly 425: "Too Early";
278
+ readonly 426: "Upgrade Required";
279
+ readonly 428: "Precondition Required";
280
+ readonly 429: "Too Many Requests";
281
+ readonly 431: "Request Header Fields Too Large";
282
+ readonly 451: "Unavailable For Legal Reasons";
283
+ readonly 500: "Internal Server Error";
284
+ readonly 501: "Not Implemented";
285
+ readonly 502: "Bad Gateway";
286
+ readonly 503: "Service Unavailable";
287
+ readonly 504: "Gateway Timeout";
288
+ readonly 505: "HTTP Version Not Supported";
289
+ readonly 506: "Variant Also Negotiates";
290
+ readonly 507: "Insufficient Storage";
291
+ readonly 508: "Loop Detected";
292
+ readonly 510: "Not Extended";
293
+ readonly 511: "Network Authentication Required";
294
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
295
+ readonly Continue: 100;
296
+ readonly 'Switching Protocols': 101;
297
+ readonly Processing: 102;
298
+ readonly 'Early Hints': 103;
299
+ readonly OK: 200;
300
+ readonly Created: 201;
301
+ readonly Accepted: 202;
302
+ readonly 'Non-Authoritative Information': 203;
303
+ readonly 'No Content': 204;
304
+ readonly 'Reset Content': 205;
305
+ readonly 'Partial Content': 206;
306
+ readonly 'Multi-Status': 207;
307
+ readonly 'Already Reported': 208;
308
+ readonly 'Multiple Choices': 300;
309
+ readonly 'Moved Permanently': 301;
310
+ readonly Found: 302;
311
+ readonly 'See Other': 303;
312
+ readonly 'Not Modified': 304;
313
+ readonly 'Temporary Redirect': 307;
314
+ readonly 'Permanent Redirect': 308;
315
+ readonly 'Bad Request': 400;
316
+ readonly Unauthorized: 401;
317
+ readonly 'Payment Required': 402;
318
+ readonly Forbidden: 403;
319
+ readonly 'Not Found': 404;
320
+ readonly 'Method Not Allowed': 405;
321
+ readonly 'Not Acceptable': 406;
322
+ readonly 'Proxy Authentication Required': 407;
323
+ readonly 'Request Timeout': 408;
324
+ readonly Conflict: 409;
325
+ readonly Gone: 410;
326
+ readonly 'Length Required': 411;
327
+ readonly 'Precondition Failed': 412;
328
+ readonly 'Payload Too Large': 413;
329
+ readonly 'URI Too Long': 414;
330
+ readonly 'Unsupported Media Type': 415;
331
+ readonly 'Range Not Satisfiable': 416;
332
+ readonly 'Expectation Failed': 417;
333
+ readonly "I'm a teapot": 418;
334
+ readonly 'Enhance Your Calm': 420;
335
+ readonly 'Misdirected Request': 421;
336
+ readonly 'Unprocessable Content': 422;
337
+ readonly Locked: 423;
338
+ readonly 'Failed Dependency': 424;
339
+ readonly 'Too Early': 425;
340
+ readonly 'Upgrade Required': 426;
341
+ readonly 'Precondition Required': 428;
342
+ readonly 'Too Many Requests': 429;
343
+ readonly 'Request Header Fields Too Large': 431;
344
+ readonly 'Unavailable For Legal Reasons': 451;
345
+ readonly 'Internal Server Error': 500;
346
+ readonly 'Not Implemented': 501;
347
+ readonly 'Bad Gateway': 502;
348
+ readonly 'Service Unavailable': 503;
349
+ readonly 'Gateway Timeout': 504;
350
+ readonly 'HTTP Version Not Supported': 505;
351
+ readonly 'Variant Also Negotiates': 506;
352
+ readonly 'Insufficient Storage': 507;
353
+ readonly 'Loop Detected': 508;
354
+ readonly 'Not Extended': 510;
355
+ readonly 'Network Authentication Required': 511;
356
+ }[Code] : Code>;
357
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
358
+ user: {
359
+ id: string;
360
+ createdAt: Date;
361
+ updatedAt: Date;
362
+ email: string;
363
+ emailVerified: boolean;
364
+ name: string;
365
+ image?: string | null | undefined;
366
+ banExpires?: Date | null | undefined;
367
+ banReason?: string | null | undefined;
368
+ banned: boolean | null | undefined;
369
+ displayUsername?: string | null | undefined;
370
+ phoneNumber?: string | null | undefined;
371
+ phoneNumberVerified?: boolean | null | undefined;
372
+ role?: string | null | undefined;
373
+ twoFactorEnabled: boolean | null | undefined;
374
+ username?: string | null | undefined;
375
+ };
376
+ session: {
377
+ id: string;
378
+ createdAt: Date;
379
+ updatedAt: Date;
380
+ userId: string;
381
+ expiresAt: Date;
382
+ token: string;
383
+ ipAddress?: string | null | undefined;
384
+ userAgent?: string | null | undefined;
385
+ impersonatedBy?: string | null | undefined;
386
+ };
387
+ }>;
388
+ };
389
+ };
390
+ parser: {};
391
+ response: {};
392
+ }, {
393
+ content_videos: {};
394
+ } & {
395
+ content_videos: {
396
+ get: {
397
+ body: {};
398
+ params: {};
399
+ query: {
400
+ limit?: number | undefined;
401
+ offset?: number | undefined;
402
+ pageSize?: number | undefined;
403
+ pageIndex?: number | undefined;
404
+ };
405
+ headers: {};
406
+ response: {
407
+ 200: {
408
+ data: {
409
+ id: string;
410
+ title: string;
411
+ description?: string | undefined;
412
+ videoUrl: string;
413
+ coverUrl?: string | undefined;
414
+ mimeType?: string | undefined;
415
+ fileSize?: number | undefined;
416
+ durationSeconds?: number | undefined;
417
+ sortOrder: number;
418
+ publishedAt?: Date | undefined;
419
+ }[];
420
+ pagination: {
421
+ pageSize: number;
422
+ pageIndex: number;
423
+ total: number;
424
+ totalPages: number;
425
+ hasNextPage: boolean;
426
+ };
427
+ };
428
+ 422: {
429
+ type: 'validation';
430
+ on: string;
431
+ summary?: string;
432
+ message?: string;
433
+ found?: unknown;
434
+ property?: string;
435
+ expected?: string;
436
+ };
437
+ };
438
+ };
439
+ };
440
+ } & {
441
+ content_videos: {
442
+ ":id": {
443
+ get: {
444
+ body: {};
445
+ params: {
446
+ id: string;
447
+ };
448
+ query: {};
449
+ headers: {};
450
+ response: {
451
+ 200: {
452
+ id: string;
453
+ title: string;
454
+ description?: string | undefined;
455
+ videoUrl: string;
456
+ coverUrl?: string | undefined;
457
+ mimeType?: string | undefined;
458
+ fileSize?: number | undefined;
459
+ durationSeconds?: number | undefined;
460
+ sortOrder: number;
461
+ publishedAt?: Date | undefined;
462
+ };
463
+ 422: {
464
+ type: 'validation';
465
+ on: string;
466
+ summary?: string;
467
+ message?: string;
468
+ found?: unknown;
469
+ property?: string;
470
+ expected?: string;
471
+ };
472
+ };
473
+ };
474
+ };
475
+ };
476
+ }, {
477
+ derive: {};
478
+ resolve: {};
479
+ schema: {};
480
+ standaloneSchema: {};
481
+ response: {};
482
+ }, {
483
+ derive: {};
484
+ resolve: {};
485
+ schema: {};
486
+ standaloneSchema: {};
487
+ response: {};
488
+ } & {
489
+ derive: {};
490
+ resolve: {};
491
+ schema: {};
492
+ standaloneSchema: {};
493
+ response: {};
494
+ }>;
@@ -0,0 +1,36 @@
1
+ import type { ContentVideoPublicListQueryType } from './dto.schemas';
2
+ export declare abstract class UserContentVideoService {
3
+ static listPublishedVideos(query?: ContentVideoPublicListQueryType): Promise<{
4
+ data: {
5
+ id: string;
6
+ title: string;
7
+ description: string | undefined;
8
+ videoUrl: string;
9
+ coverUrl: string | undefined;
10
+ mimeType: string | undefined;
11
+ fileSize: number | undefined;
12
+ durationSeconds: number | undefined;
13
+ sortOrder: number;
14
+ publishedAt: Date | undefined;
15
+ }[];
16
+ pagination: {
17
+ pageSize: number;
18
+ pageIndex: number;
19
+ total: number;
20
+ totalPages: number;
21
+ hasNextPage: boolean;
22
+ };
23
+ }>;
24
+ static getPublishedVideo(id: string): Promise<{
25
+ id: string;
26
+ title: string;
27
+ description: string | undefined;
28
+ videoUrl: string;
29
+ coverUrl: string | undefined;
30
+ mimeType: string | undefined;
31
+ fileSize: number | undefined;
32
+ durationSeconds: number | undefined;
33
+ sortOrder: number;
34
+ publishedAt: Date | undefined;
35
+ }>;
36
+ }
@@ -18,6 +18,7 @@ export * from '../bank-account/schema';
18
18
  export * from '../receipt-method/schema';
19
19
  export * from '../shipping-address/schema';
20
20
  export * from '../check-in/schema';
21
+ export * from '../check-in/reward.schema';
21
22
  export * from '../withdraw/schema';
22
23
  export * from '../transfer/schema';
23
24
  export * from '../file-storage/schema';
@@ -34,3 +35,4 @@ export * from '../trade-market/schema';
34
35
  export * from '../welfare-cycle/schema';
35
36
  export * from '../lock-activity/schema';
36
37
  export * from '../lock-activity/participation.schema';
38
+ export * from '../content-video/schema';
@@ -1,5 +1,6 @@
1
1
  export declare const listAdminFilesFilterSchema: import("@sinclair/typebox").TObject<{
2
2
  businessType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
3
+ app_video: "app_video";
3
4
  avatar: "avatar";
4
5
  bank_verification: "bank_verification";
5
6
  contract: "contract";
@@ -34,6 +35,7 @@ export declare const listAdminFilesQuerySchema: import("@sinclair/typebox").TObj
34
35
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
35
36
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
36
37
  businessType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
38
+ app_video: "app_video";
37
39
  avatar: "avatar";
38
40
  bank_verification: "bank_verification";
39
41
  contract: "contract";
@@ -72,6 +74,7 @@ export declare const fileStorageWithRelationsSchema: import("@sinclair/typebox")
72
74
  businessId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
73
75
  businessMetadata: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
74
76
  businessType: import("@sinclair/typebox").TEnum<{
77
+ app_video: "app_video";
75
78
  avatar: "avatar";
76
79
  bank_verification: "bank_verification";
77
80
  contract: "contract";
@@ -137,6 +140,7 @@ export declare const listAdminFilesResponseSchema: import("@sinclair/typebox").T
137
140
  businessId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
138
141
  businessMetadata: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
139
142
  businessType: import("@sinclair/typebox").TEnum<{
143
+ app_video: "app_video";
140
144
  avatar: "avatar";
141
145
  bank_verification: "bank_verification";
142
146
  contract: "contract";
@@ -417,7 +417,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
417
417
  offset?: number | undefined;
418
418
  pageSize?: number | undefined;
419
419
  pageIndex?: number | undefined;
420
- businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
420
+ businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
421
421
  businessId?: string | undefined;
422
422
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
423
423
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -431,7 +431,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
431
431
  archivedAt: Date | null;
432
432
  businessId: string | null;
433
433
  businessMetadata: string | null;
434
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
434
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
435
435
  createdAt: Date;
436
436
  deletedAt: Date | null;
437
437
  downloadCount: number | null;
@@ -15,7 +15,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
15
15
  s3Key: string;
16
16
  s3Region: string;
17
17
  s3ETag: string | null;
18
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
18
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
19
19
  businessId: string | null;
20
20
  businessMetadata: string | null;
21
21
  ownerId: string;
@@ -39,7 +39,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
39
39
  archivedAt: Date | null;
40
40
  businessId: string | null;
41
41
  businessMetadata: string | null;
42
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
42
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
43
43
  createdAt: Date;
44
44
  deletedAt: Date | null;
45
45
  downloadCount: number | null;
@@ -225,14 +225,14 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
225
225
  tableName: "file_storage";
226
226
  dataType: "string";
227
227
  columnType: "PgEnumColumn";
228
- data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
228
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
229
229
  driverParam: string;
230
230
  notNull: true;
231
231
  hasDefault: false;
232
232
  isPrimaryKey: false;
233
233
  isAutoincrement: false;
234
234
  hasRuntimeDefault: false;
235
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
235
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
236
236
  baseColumn: never;
237
237
  identity: undefined;
238
238
  generated: undefined;
@@ -738,14 +738,14 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
738
738
  tableName: "file_storage";
739
739
  dataType: "string";
740
740
  columnType: "PgEnumColumn";
741
- data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
741
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
742
742
  driverParam: string;
743
743
  notNull: true;
744
744
  hasDefault: false;
745
745
  isPrimaryKey: false;
746
746
  isAutoincrement: false;
747
747
  hasRuntimeDefault: false;
748
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
748
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
749
749
  baseColumn: never;
750
750
  identity: undefined;
751
751
  generated: undefined;