@r2wa-org/eden 0.0.97 → 0.0.99

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 (71) hide show
  1. package/dist/admin/index.d.ts +731 -152
  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 +7 -1
  7. package/dist/auth/i18n/zh.d.ts +100 -0
  8. package/dist/auth/permissions.d.ts +6 -1
  9. package/dist/auth/roles.d.ts +15 -0
  10. package/dist/bank-account/admin/router.d.ts +13 -1
  11. package/dist/content-video/admin/dto.schemas.d.ts +128 -0
  12. package/dist/content-video/admin/router.d.ts +861 -0
  13. package/dist/content-video/admin/service.d.ts +210 -0
  14. package/dist/content-video/db.schemas.d.ts +486 -0
  15. package/dist/content-video/errors/index.d.ts +17 -0
  16. package/dist/content-video/errors/locales/zh.d.ts +16 -0
  17. package/dist/content-video/index.d.ts +8 -0
  18. package/dist/content-video/internal/service.d.ts +106 -0
  19. package/dist/content-video/permissions.d.ts +4 -0
  20. package/dist/content-video/schema.d.ts +257 -0
  21. package/dist/content-video/user/dto.schemas.d.ts +52 -0
  22. package/dist/content-video/user/router.d.ts +482 -0
  23. package/dist/content-video/user/service.d.ts +36 -0
  24. package/dist/db/schemas.d.ts +1 -0
  25. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  26. package/dist/file-storage/admin/router.d.ts +2 -2
  27. package/dist/file-storage/admin/service.d.ts +2 -2
  28. package/dist/file-storage/db.schemas.d.ts +4 -4
  29. package/dist/file-storage/internal/service.d.ts +1 -1
  30. package/dist/file-storage/s3.client.d.ts +22 -0
  31. package/dist/file-storage/schema.d.ts +3 -3
  32. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  33. package/dist/file-storage/share/router.d.ts +1 -1
  34. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  35. package/dist/file-storage/user/router.d.ts +3 -3
  36. package/dist/file-storage/user/service.d.ts +2 -2
  37. package/dist/index.d.ts +1019 -170
  38. package/dist/ledger/admin/dto.schemas.d.ts +8 -0
  39. package/dist/ledger/admin/router.d.ts +4 -4
  40. package/dist/ledger/db.schemas.d.ts +8 -8
  41. package/dist/ledger/schema.d.ts +6 -6
  42. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  43. package/dist/ledger/user/router.d.ts +2 -2
  44. package/dist/ledger/user/service.d.ts +2 -2
  45. package/dist/ledger-account-type/admin/router.d.ts +1 -13
  46. package/dist/lock-activity/admin/participation.dto.schemas.d.ts +52 -0
  47. package/dist/lock-activity/admin/reward.service.d.ts +48 -0
  48. package/dist/lock-activity/admin/router.d.ts +71 -0
  49. package/dist/lock-activity/constants.d.ts +2 -0
  50. package/dist/lock-activity/cron.d.ts +6 -0
  51. package/dist/lock-activity/errors/index.d.ts +3 -0
  52. package/dist/lock-activity/errors/locales/zh.d.ts +3 -0
  53. package/dist/lock-activity/internal/reward.service.d.ts +15 -0
  54. package/dist/lock-activity/user/router.d.ts +13 -1
  55. package/dist/news/admin/dto.schemas.d.ts +26 -26
  56. package/dist/news/admin/router.d.ts +25 -25
  57. package/dist/news/admin/service.d.ts +4 -1
  58. package/dist/news/user/service.d.ts +2 -2
  59. package/dist/referral/admin/dto.schemas.d.ts +597 -0
  60. package/dist/referral/admin/router.d.ts +553 -0
  61. package/dist/referral/admin/service.d.ts +6 -0
  62. package/dist/referral/errors/index.d.ts +15 -0
  63. package/dist/referral/errors/locales/zh.d.ts +14 -0
  64. package/dist/referral/index.d.ts +10 -0
  65. package/dist/referral/internal/service.d.ts +23 -0
  66. package/dist/referral/user/dto.schemas.d.ts +602 -0
  67. package/dist/referral/user/router.d.ts +606 -0
  68. package/dist/referral/user/service.d.ts +21 -0
  69. package/dist/user/internal/avatar.service.d.ts +42 -0
  70. package/dist/withdraw/user/router.d.ts +1 -13
  71. package/package.json +1 -1
@@ -185,6 +185,17 @@ export declare const BUSINESS_TYPE_CONFIG: {
185
185
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
186
186
  readonly description: '\u65B0\u95FB\u9644\u4EF6';
187
187
  };
188
+ readonly app_video: {
189
+ readonly defaultAccessControl: 'public';
190
+ readonly maxSize: number;
191
+ readonly allowedMimeTypes: readonly ["video/mp4", "video/webm", "video/quicktime"];
192
+ readonly mimeTypeLimits: {
193
+ readonly 'video/mp4': number;
194
+ readonly 'video/webm': number;
195
+ readonly 'video/quicktime': number;
196
+ };
197
+ readonly description: 'App \u5C55\u793A\u89C6\u9891';
198
+ };
188
199
  readonly other: {
189
200
  readonly defaultAccessControl: 'private';
190
201
  readonly maxSize: number;
@@ -274,6 +285,17 @@ export declare function getBusinessTypeConfig<T extends BusinessType>(businessTy
274
285
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
275
286
  readonly description: '\u65B0\u95FB\u9644\u4EF6';
276
287
  };
288
+ readonly app_video: {
289
+ readonly defaultAccessControl: 'public';
290
+ readonly maxSize: number;
291
+ readonly allowedMimeTypes: readonly ["video/mp4", "video/webm", "video/quicktime"];
292
+ readonly mimeTypeLimits: {
293
+ readonly 'video/mp4': number;
294
+ readonly 'video/webm': number;
295
+ readonly 'video/quicktime': number;
296
+ };
297
+ readonly description: 'App \u5C55\u793A\u89C6\u9891';
298
+ };
277
299
  readonly other: {
278
300
  readonly defaultAccessControl: 'private';
279
301
  readonly maxSize: number;
@@ -2,7 +2,7 @@
2
2
  * 文件业务类型枚举
3
3
  * 按业务场景分类,便于权限控制和生命周期管理
4
4
  */
5
- export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"]>;
5
+ export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"]>;
6
6
  /**
7
7
  * 文件访问控制枚举
8
8
  */
@@ -245,14 +245,14 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
245
245
  tableName: "file_storage";
246
246
  dataType: "string";
247
247
  columnType: "PgEnumColumn";
248
- data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
248
+ 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";
249
249
  driverParam: string;
250
250
  notNull: true;
251
251
  hasDefault: false;
252
252
  isPrimaryKey: false;
253
253
  isAutoincrement: false;
254
254
  hasRuntimeDefault: false;
255
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
255
+ 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"];
256
256
  baseColumn: never;
257
257
  identity: undefined;
258
258
  generated: undefined;
@@ -2,6 +2,7 @@ export declare const generateUploadUrlSchema: import("@sinclair/typebox").TObjec
2
2
  fileName: import("@sinclair/typebox").TString;
3
3
  fileSize: import("@sinclair/typebox").TInteger;
4
4
  businessType: import("@sinclair/typebox").TEnum<{
5
+ app_video: "app_video";
5
6
  avatar: "avatar";
6
7
  bank_verification: "bank_verification";
7
8
  contract: "contract";
@@ -386,7 +386,7 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
386
386
  body: {
387
387
  fileName: string;
388
388
  fileSize: number;
389
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
389
+ 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";
390
390
  fileExtension?: string | undefined;
391
391
  mimeType?: string | undefined;
392
392
  businessId?: string | undefined;
@@ -1,5 +1,6 @@
1
1
  export declare const listUserFilesFilterSchema: 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 listUserFilesQuerySchema: import("@sinclair/typebox").TObje
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";
@@ -290,14 +292,14 @@ export declare const listUserFilesResponseSchema: import("@sinclair/typebox").TO
290
292
  tableName: "file_storage";
291
293
  dataType: "string";
292
294
  columnType: "PgEnumColumn";
293
- data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
295
+ 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";
294
296
  driverParam: string;
295
297
  notNull: true;
296
298
  hasDefault: false;
297
299
  isPrimaryKey: false;
298
300
  isAutoincrement: false;
299
301
  hasRuntimeDefault: false;
300
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
302
+ 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"];
301
303
  baseColumn: never;
302
304
  identity: undefined;
303
305
  generated: undefined;
@@ -813,14 +815,14 @@ export declare const getFileByIdResponseSchema: import("drizzle-typebox").BuildS
813
815
  tableName: "file_storage";
814
816
  dataType: "string";
815
817
  columnType: "PgEnumColumn";
816
- data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
818
+ 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";
817
819
  driverParam: string;
818
820
  notNull: true;
819
821
  hasDefault: false;
820
822
  isPrimaryKey: false;
821
823
  isAutoincrement: false;
822
824
  hasRuntimeDefault: false;
823
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
825
+ 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"];
824
826
  baseColumn: never;
825
827
  identity: undefined;
826
828
  generated: undefined;
@@ -390,7 +390,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
390
390
  offset?: number | undefined;
391
391
  pageSize?: number | undefined;
392
392
  pageIndex?: number | undefined;
393
- businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
393
+ 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;
394
394
  businessId?: string | undefined;
395
395
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
396
396
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -413,7 +413,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
413
413
  s3Key: string;
414
414
  s3Region: string;
415
415
  s3ETag: string | null;
416
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
416
+ 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";
417
417
  businessId: string | null;
418
418
  businessMetadata: string | null;
419
419
  ownerId: string;
@@ -478,7 +478,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
478
478
  s3Key: string;
479
479
  s3Region: string;
480
480
  s3ETag: string | null;
481
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
481
+ 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";
482
482
  businessId: string | null;
483
483
  businessMetadata: string | null;
484
484
  ownerId: string;
@@ -7,7 +7,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
7
7
  archivedAt: Date | null;
8
8
  businessId: string | null;
9
9
  businessMetadata: string | null;
10
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
10
+ 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";
11
11
  createdAt: Date;
12
12
  deletedAt: Date | null;
13
13
  downloadCount: number | null;
@@ -47,7 +47,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
47
47
  archivedAt: Date | null;
48
48
  businessId: string | null;
49
49
  businessMetadata: string | null;
50
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
50
+ 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";
51
51
  createdAt: Date;
52
52
  deletedAt: Date | null;
53
53
  downloadCount: number | null;