@r2wa-org/eden 0.0.99 → 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 (34) hide show
  1. package/dist/admin/index.d.ts +807 -12
  2. package/dist/auth/better-auth.d.ts +13 -1
  3. package/dist/auth/permissions.d.ts +11 -1
  4. package/dist/auth/roles.d.ts +30 -0
  5. package/dist/bank-account/admin/router.d.ts +1 -13
  6. package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
  7. package/dist/check-in/admin/reward.router.d.ts +1192 -0
  8. package/dist/check-in/admin/reward.service.d.ts +479 -0
  9. package/dist/check-in/admin/router.d.ts +745 -0
  10. package/dist/check-in/errors/index.d.ts +9 -0
  11. package/dist/check-in/errors/locales/zh.d.ts +9 -0
  12. package/dist/check-in/index.d.ts +5 -0
  13. package/dist/check-in/internal/reward-config.service.d.ts +66 -0
  14. package/dist/check-in/permissions.d.ts +2 -0
  15. package/dist/check-in/reward.db.schemas.d.ts +896 -0
  16. package/dist/check-in/reward.schema.d.ts +477 -0
  17. package/dist/content-video/admin/dto.schemas.d.ts +14 -14
  18. package/dist/content-video/admin/router.d.ts +12 -12
  19. package/dist/content-video/admin/service.d.ts +1 -0
  20. package/dist/content-video/user/router.d.ts +13 -1
  21. package/dist/db/schemas.d.ts +1 -0
  22. package/dist/index.d.ts +823 -12
  23. package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
  24. package/dist/lock-activity/admin/router.d.ts +56 -0
  25. package/dist/lock-activity/admin/service.d.ts +134 -8
  26. package/dist/lock-activity/db.schemas.d.ts +34 -0
  27. package/dist/lock-activity/internal/service.d.ts +41 -0
  28. package/dist/lock-activity/schema.d.ts +18 -0
  29. package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
  30. package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
  31. package/dist/lock-activity/user/router.d.ts +17 -13
  32. package/dist/lock-activity/user/service.d.ts +39 -3
  33. package/dist/referral/admin/router.d.ts +13 -1
  34. package/package.json +1 -1
@@ -0,0 +1,477 @@
1
+ /** 签到里程碑规则类型 */
2
+ export declare const checkInRewardRuleTypeEnum: import("drizzle-orm/pg-core").PgEnum<["consecutive", "cumulative"]>;
3
+ /**
4
+ * 签到奖励方案(每日奖励 + 关联里程碑规则)
5
+ */
6
+ export declare const checkInRewardPlan: import("drizzle-orm/pg-core").PgTableWithColumns<{
7
+ name: "check_in_reward_plan";
8
+ schema: undefined;
9
+ columns: {
10
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
11
+ name: "created_at";
12
+ tableName: "check_in_reward_plan";
13
+ dataType: "date";
14
+ columnType: "PgTimestamp";
15
+ data: Date;
16
+ driverParam: string;
17
+ notNull: true;
18
+ hasDefault: true;
19
+ isPrimaryKey: false;
20
+ isAutoincrement: false;
21
+ hasRuntimeDefault: false;
22
+ enumValues: undefined;
23
+ baseColumn: never;
24
+ identity: undefined;
25
+ generated: undefined;
26
+ }, {}, {}>;
27
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
28
+ name: "updated_at";
29
+ tableName: "check_in_reward_plan";
30
+ dataType: "date";
31
+ columnType: "PgTimestamp";
32
+ data: Date;
33
+ driverParam: string;
34
+ notNull: true;
35
+ hasDefault: true;
36
+ isPrimaryKey: false;
37
+ isAutoincrement: false;
38
+ hasRuntimeDefault: false;
39
+ enumValues: undefined;
40
+ baseColumn: never;
41
+ identity: undefined;
42
+ generated: undefined;
43
+ }, {}, {}>;
44
+ id: import("drizzle-orm/pg-core").PgColumn<{
45
+ name: "id";
46
+ tableName: "check_in_reward_plan";
47
+ dataType: "string";
48
+ columnType: "PgUUID";
49
+ data: string;
50
+ driverParam: string;
51
+ notNull: true;
52
+ hasDefault: true;
53
+ isPrimaryKey: true;
54
+ isAutoincrement: false;
55
+ hasRuntimeDefault: false;
56
+ enumValues: undefined;
57
+ baseColumn: never;
58
+ identity: undefined;
59
+ generated: undefined;
60
+ }, {}, {}>;
61
+ name: import("drizzle-orm/pg-core").PgColumn<{
62
+ name: "name";
63
+ tableName: "check_in_reward_plan";
64
+ dataType: "string";
65
+ columnType: "PgText";
66
+ data: string;
67
+ driverParam: string;
68
+ notNull: true;
69
+ hasDefault: false;
70
+ isPrimaryKey: false;
71
+ isAutoincrement: false;
72
+ hasRuntimeDefault: false;
73
+ enumValues: [string, ...string[]];
74
+ baseColumn: never;
75
+ identity: undefined;
76
+ generated: undefined;
77
+ }, {}, {}>;
78
+ rewardAssetId: import("drizzle-orm/pg-core").PgColumn<{
79
+ name: "reward_asset_id";
80
+ tableName: "check_in_reward_plan";
81
+ dataType: "string";
82
+ columnType: "PgUUID";
83
+ data: string;
84
+ driverParam: string;
85
+ notNull: true;
86
+ hasDefault: false;
87
+ isPrimaryKey: false;
88
+ isAutoincrement: false;
89
+ hasRuntimeDefault: false;
90
+ enumValues: undefined;
91
+ baseColumn: never;
92
+ identity: undefined;
93
+ generated: undefined;
94
+ }, {}, {}>;
95
+ dailyRewardAmount: import("drizzle-orm/pg-core").PgColumn<{
96
+ name: "daily_reward_amount";
97
+ tableName: "check_in_reward_plan";
98
+ dataType: "string";
99
+ columnType: "PgNumeric";
100
+ data: string;
101
+ driverParam: string;
102
+ notNull: true;
103
+ hasDefault: false;
104
+ isPrimaryKey: false;
105
+ isAutoincrement: false;
106
+ hasRuntimeDefault: false;
107
+ enumValues: undefined;
108
+ baseColumn: never;
109
+ identity: undefined;
110
+ generated: undefined;
111
+ }, {}, {}>;
112
+ dailyRewardCategory: import("drizzle-orm/pg-core").PgColumn<{
113
+ name: "daily_reward_category";
114
+ tableName: "check_in_reward_plan";
115
+ dataType: "string";
116
+ columnType: "PgText";
117
+ data: string;
118
+ driverParam: string;
119
+ notNull: true;
120
+ hasDefault: true;
121
+ isPrimaryKey: false;
122
+ isAutoincrement: false;
123
+ hasRuntimeDefault: false;
124
+ enumValues: [string, ...string[]];
125
+ baseColumn: never;
126
+ identity: undefined;
127
+ generated: undefined;
128
+ }, {}, {}>;
129
+ dailyPayoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
130
+ name: "daily_payout_account_type_id";
131
+ tableName: "check_in_reward_plan";
132
+ dataType: "string";
133
+ columnType: "PgUUID";
134
+ data: string;
135
+ driverParam: string;
136
+ notNull: true;
137
+ hasDefault: false;
138
+ isPrimaryKey: false;
139
+ isAutoincrement: false;
140
+ hasRuntimeDefault: false;
141
+ enumValues: undefined;
142
+ baseColumn: never;
143
+ identity: undefined;
144
+ generated: undefined;
145
+ }, {}, {}>;
146
+ checkInType: import("drizzle-orm/pg-core").PgColumn<{
147
+ name: "check_in_type";
148
+ tableName: "check_in_reward_plan";
149
+ dataType: "string";
150
+ columnType: "PgEnumColumn";
151
+ data: "app" | "meeting";
152
+ driverParam: string;
153
+ notNull: true;
154
+ hasDefault: true;
155
+ isPrimaryKey: false;
156
+ isAutoincrement: false;
157
+ hasRuntimeDefault: false;
158
+ enumValues: ["app", "meeting"];
159
+ baseColumn: never;
160
+ identity: undefined;
161
+ generated: undefined;
162
+ }, {}, {}>;
163
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
164
+ name: "is_enabled";
165
+ tableName: "check_in_reward_plan";
166
+ dataType: "boolean";
167
+ columnType: "PgBoolean";
168
+ data: boolean;
169
+ driverParam: boolean;
170
+ notNull: true;
171
+ hasDefault: true;
172
+ isPrimaryKey: false;
173
+ isAutoincrement: false;
174
+ hasRuntimeDefault: false;
175
+ enumValues: undefined;
176
+ baseColumn: never;
177
+ identity: undefined;
178
+ generated: undefined;
179
+ }, {}, {}>;
180
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
181
+ name: "sort_order";
182
+ tableName: "check_in_reward_plan";
183
+ dataType: "number";
184
+ columnType: "PgInteger";
185
+ data: number;
186
+ driverParam: string | number;
187
+ notNull: true;
188
+ hasDefault: true;
189
+ isPrimaryKey: false;
190
+ isAutoincrement: false;
191
+ hasRuntimeDefault: false;
192
+ enumValues: undefined;
193
+ baseColumn: never;
194
+ identity: undefined;
195
+ generated: undefined;
196
+ }, {}, {}>;
197
+ createdBy: import("drizzle-orm/pg-core").PgColumn<{
198
+ name: "created_by";
199
+ tableName: "check_in_reward_plan";
200
+ dataType: "string";
201
+ columnType: "PgText";
202
+ data: string;
203
+ driverParam: string;
204
+ notNull: true;
205
+ hasDefault: false;
206
+ isPrimaryKey: false;
207
+ isAutoincrement: false;
208
+ hasRuntimeDefault: false;
209
+ enumValues: [string, ...string[]];
210
+ baseColumn: never;
211
+ identity: undefined;
212
+ generated: undefined;
213
+ }, {}, {}>;
214
+ updatedBy: import("drizzle-orm/pg-core").PgColumn<{
215
+ name: "updated_by";
216
+ tableName: "check_in_reward_plan";
217
+ dataType: "string";
218
+ columnType: "PgText";
219
+ data: string;
220
+ driverParam: string;
221
+ notNull: false;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: [string, ...string[]];
227
+ baseColumn: never;
228
+ identity: undefined;
229
+ generated: undefined;
230
+ }, {}, {}>;
231
+ };
232
+ dialect: 'pg';
233
+ }>;
234
+ /**
235
+ * 签到里程碑奖励规则(连续 / 累计,可动态增删)
236
+ */
237
+ export declare const checkInRewardRule: import("drizzle-orm/pg-core").PgTableWithColumns<{
238
+ name: "check_in_reward_rule";
239
+ schema: undefined;
240
+ columns: {
241
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
242
+ name: "created_at";
243
+ tableName: "check_in_reward_rule";
244
+ dataType: "date";
245
+ columnType: "PgTimestamp";
246
+ data: Date;
247
+ driverParam: string;
248
+ notNull: true;
249
+ hasDefault: true;
250
+ isPrimaryKey: false;
251
+ isAutoincrement: false;
252
+ hasRuntimeDefault: false;
253
+ enumValues: undefined;
254
+ baseColumn: never;
255
+ identity: undefined;
256
+ generated: undefined;
257
+ }, {}, {}>;
258
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
259
+ name: "updated_at";
260
+ tableName: "check_in_reward_rule";
261
+ dataType: "date";
262
+ columnType: "PgTimestamp";
263
+ data: Date;
264
+ driverParam: string;
265
+ notNull: true;
266
+ hasDefault: true;
267
+ isPrimaryKey: false;
268
+ isAutoincrement: false;
269
+ hasRuntimeDefault: false;
270
+ enumValues: undefined;
271
+ baseColumn: never;
272
+ identity: undefined;
273
+ generated: undefined;
274
+ }, {}, {}>;
275
+ id: import("drizzle-orm/pg-core").PgColumn<{
276
+ name: "id";
277
+ tableName: "check_in_reward_rule";
278
+ dataType: "string";
279
+ columnType: "PgUUID";
280
+ data: string;
281
+ driverParam: string;
282
+ notNull: true;
283
+ hasDefault: true;
284
+ isPrimaryKey: true;
285
+ isAutoincrement: false;
286
+ hasRuntimeDefault: false;
287
+ enumValues: undefined;
288
+ baseColumn: never;
289
+ identity: undefined;
290
+ generated: undefined;
291
+ }, {}, {}>;
292
+ planId: import("drizzle-orm/pg-core").PgColumn<{
293
+ name: "plan_id";
294
+ tableName: "check_in_reward_rule";
295
+ dataType: "string";
296
+ columnType: "PgUUID";
297
+ data: string;
298
+ driverParam: string;
299
+ notNull: true;
300
+ hasDefault: false;
301
+ isPrimaryKey: false;
302
+ isAutoincrement: false;
303
+ hasRuntimeDefault: false;
304
+ enumValues: undefined;
305
+ baseColumn: never;
306
+ identity: undefined;
307
+ generated: undefined;
308
+ }, {}, {}>;
309
+ ruleType: import("drizzle-orm/pg-core").PgColumn<{
310
+ name: "rule_type";
311
+ tableName: "check_in_reward_rule";
312
+ dataType: "string";
313
+ columnType: "PgEnumColumn";
314
+ data: "consecutive" | "cumulative";
315
+ driverParam: string;
316
+ notNull: true;
317
+ hasDefault: false;
318
+ isPrimaryKey: false;
319
+ isAutoincrement: false;
320
+ hasRuntimeDefault: false;
321
+ enumValues: ["consecutive", "cumulative"];
322
+ baseColumn: never;
323
+ identity: undefined;
324
+ generated: undefined;
325
+ }, {}, {}>;
326
+ thresholdDays: import("drizzle-orm/pg-core").PgColumn<{
327
+ name: "threshold_days";
328
+ tableName: "check_in_reward_rule";
329
+ dataType: "number";
330
+ columnType: "PgInteger";
331
+ data: number;
332
+ driverParam: string | number;
333
+ notNull: true;
334
+ hasDefault: false;
335
+ isPrimaryKey: false;
336
+ isAutoincrement: false;
337
+ hasRuntimeDefault: false;
338
+ enumValues: undefined;
339
+ baseColumn: never;
340
+ identity: undefined;
341
+ generated: undefined;
342
+ }, {}, {}>;
343
+ rewardAmount: import("drizzle-orm/pg-core").PgColumn<{
344
+ name: "reward_amount";
345
+ tableName: "check_in_reward_rule";
346
+ dataType: "string";
347
+ columnType: "PgNumeric";
348
+ data: string;
349
+ driverParam: string;
350
+ notNull: true;
351
+ hasDefault: false;
352
+ isPrimaryKey: false;
353
+ isAutoincrement: false;
354
+ hasRuntimeDefault: false;
355
+ enumValues: undefined;
356
+ baseColumn: never;
357
+ identity: undefined;
358
+ generated: undefined;
359
+ }, {}, {}>;
360
+ rewardCategory: import("drizzle-orm/pg-core").PgColumn<{
361
+ name: "reward_category";
362
+ tableName: "check_in_reward_rule";
363
+ dataType: "string";
364
+ columnType: "PgText";
365
+ data: string;
366
+ driverParam: string;
367
+ notNull: true;
368
+ hasDefault: true;
369
+ isPrimaryKey: false;
370
+ isAutoincrement: false;
371
+ hasRuntimeDefault: false;
372
+ enumValues: [string, ...string[]];
373
+ baseColumn: never;
374
+ identity: undefined;
375
+ generated: undefined;
376
+ }, {}, {}>;
377
+ payoutAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
378
+ name: "payout_account_type_id";
379
+ tableName: "check_in_reward_rule";
380
+ dataType: "string";
381
+ columnType: "PgUUID";
382
+ data: string;
383
+ driverParam: string;
384
+ notNull: true;
385
+ hasDefault: false;
386
+ isPrimaryKey: false;
387
+ isAutoincrement: false;
388
+ hasRuntimeDefault: false;
389
+ enumValues: undefined;
390
+ baseColumn: never;
391
+ identity: undefined;
392
+ generated: undefined;
393
+ }, {}, {}>;
394
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
395
+ name: "is_enabled";
396
+ tableName: "check_in_reward_rule";
397
+ dataType: "boolean";
398
+ columnType: "PgBoolean";
399
+ data: boolean;
400
+ driverParam: boolean;
401
+ notNull: true;
402
+ hasDefault: true;
403
+ isPrimaryKey: false;
404
+ isAutoincrement: false;
405
+ hasRuntimeDefault: false;
406
+ enumValues: undefined;
407
+ baseColumn: never;
408
+ identity: undefined;
409
+ generated: undefined;
410
+ }, {}, {}>;
411
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
412
+ name: "sort_order";
413
+ tableName: "check_in_reward_rule";
414
+ dataType: "number";
415
+ columnType: "PgInteger";
416
+ data: number;
417
+ driverParam: string | number;
418
+ notNull: true;
419
+ hasDefault: true;
420
+ isPrimaryKey: false;
421
+ isAutoincrement: false;
422
+ hasRuntimeDefault: false;
423
+ enumValues: undefined;
424
+ baseColumn: never;
425
+ identity: undefined;
426
+ generated: undefined;
427
+ }, {}, {}>;
428
+ createdBy: import("drizzle-orm/pg-core").PgColumn<{
429
+ name: "created_by";
430
+ tableName: "check_in_reward_rule";
431
+ dataType: "string";
432
+ columnType: "PgText";
433
+ data: string;
434
+ driverParam: string;
435
+ notNull: true;
436
+ hasDefault: false;
437
+ isPrimaryKey: false;
438
+ isAutoincrement: false;
439
+ hasRuntimeDefault: false;
440
+ enumValues: [string, ...string[]];
441
+ baseColumn: never;
442
+ identity: undefined;
443
+ generated: undefined;
444
+ }, {}, {}>;
445
+ updatedBy: import("drizzle-orm/pg-core").PgColumn<{
446
+ name: "updated_by";
447
+ tableName: "check_in_reward_rule";
448
+ dataType: "string";
449
+ columnType: "PgText";
450
+ data: string;
451
+ driverParam: string;
452
+ notNull: false;
453
+ hasDefault: false;
454
+ isPrimaryKey: false;
455
+ isAutoincrement: false;
456
+ hasRuntimeDefault: false;
457
+ enumValues: [string, ...string[]];
458
+ baseColumn: never;
459
+ identity: undefined;
460
+ generated: undefined;
461
+ }, {}, {}>;
462
+ };
463
+ dialect: 'pg';
464
+ }>;
465
+ export declare const checkInRewardPlanRelations: import("drizzle-orm").Relations<"check_in_reward_plan", {
466
+ rewardAsset: import("drizzle-orm").One<"asset", true>;
467
+ dailyPayoutAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
468
+ rules: import("drizzle-orm").Many<"check_in_reward_rule">;
469
+ creator: import("drizzle-orm").One<"user", true>;
470
+ updater: import("drizzle-orm").One<"user", false>;
471
+ }>;
472
+ export declare const checkInRewardRuleRelations: import("drizzle-orm").Relations<"check_in_reward_rule", {
473
+ plan: import("drizzle-orm").One<"check_in_reward_plan", true>;
474
+ payoutAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
475
+ creator: import("drizzle-orm").One<"user", true>;
476
+ updater: import("drizzle-orm").One<"user", false>;
477
+ }>;
@@ -94,34 +94,34 @@ export declare const contentVideoAdminListResponseSchema: import("@sinclair/type
94
94
  }>;
95
95
  }>;
96
96
  export declare const contentVideoAdminCreateSchema: import("@sinclair/typebox").TObject<{
97
- title: import("@sinclair/typebox").TString;
98
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
99
- videoFileId: import("@sinclair/typebox").TString;
100
97
  coverFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
98
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
99
+ durationSeconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
100
+ isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
101
+ publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
102
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
101
103
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
102
104
  archived: "archived";
103
105
  draft: "draft";
104
106
  published: "published";
105
107
  }>>;
106
- isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
107
- sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
108
- durationSeconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
109
- publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
108
+ title: import("@sinclair/typebox").TString;
109
+ videoFileId: import("@sinclair/typebox").TString;
110
110
  }>;
111
111
  export declare const contentVideoAdminUpdateSchema: import("@sinclair/typebox").TObject<{
112
- title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
113
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
114
- videoFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
115
112
  coverFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
113
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
114
+ durationSeconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
115
+ isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
116
+ publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
117
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
116
118
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
117
119
  archived: "archived";
118
120
  draft: "draft";
119
121
  published: "published";
120
122
  }>>;
121
- isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
122
- sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
123
- durationSeconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
124
- publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
123
+ title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
124
+ videoFileId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
125
125
  }>;
126
126
  export type ContentVideoAdminCreateInputType = typeof contentVideoAdminCreateSchema.static;
127
127
  export type ContentVideoAdminUpdateInputType = typeof contentVideoAdminUpdateSchema.static;
@@ -383,15 +383,15 @@ export declare const contentVideoAdminRouter: Elysia<"/content_videos", {
383
383
  content_videos: {
384
384
  post: {
385
385
  body: {
386
- title: string;
387
- description?: string | null | undefined;
388
- videoFileId: string;
389
386
  coverFileId?: string | undefined;
390
- status?: "archived" | "draft" | "published" | undefined;
387
+ description?: string | null | undefined;
388
+ durationSeconds?: number | null | undefined;
391
389
  isEnabled?: boolean | undefined;
390
+ publishedAt?: string | Date | null | undefined;
392
391
  sortOrder?: number | undefined;
393
- durationSeconds?: number | null | undefined;
394
- publishedAt?: Date | null | undefined;
392
+ status?: "archived" | "draft" | "published" | undefined;
393
+ title: string;
394
+ videoFileId: string;
395
395
  };
396
396
  params: {};
397
397
  query: {};
@@ -574,15 +574,15 @@ export declare const contentVideoAdminRouter: Elysia<"/content_videos", {
574
574
  ":id": {
575
575
  patch: {
576
576
  body: {
577
- title?: string | undefined;
578
- description?: string | null | undefined;
579
- videoFileId?: string | undefined;
580
577
  coverFileId?: string | undefined;
581
- status?: "archived" | "draft" | "published" | undefined;
578
+ description?: string | null | undefined;
579
+ durationSeconds?: number | null | undefined;
582
580
  isEnabled?: boolean | undefined;
581
+ publishedAt?: string | Date | null | undefined;
583
582
  sortOrder?: number | undefined;
584
- durationSeconds?: number | null | undefined;
585
- publishedAt?: Date | null | undefined;
583
+ status?: "archived" | "draft" | "published" | undefined;
584
+ title?: string | undefined;
585
+ videoFileId?: string | undefined;
586
586
  };
587
587
  params: {
588
588
  id: string;
@@ -2,6 +2,7 @@ import type { ContentVideoAdminCreateInputType, ContentVideoAdminListQueryType,
2
2
  export declare abstract class AdminContentVideoService {
3
3
  private static formatAdminRow;
4
4
  private static loadDetail;
5
+ private static normalizePublishedAt;
5
6
  private static resolvePublishedAt;
6
7
  static create(createdBy: string, input: ContentVideoAdminCreateInputType): Promise<{
7
8
  videoUrl: string | undefined;
@@ -35,7 +35,19 @@ export declare const contentVideoRouter: Elysia<"/content_videos", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
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
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;
@@ -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';