@r2wa-org/eden 0.0.54 → 0.0.57

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 (145) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
  2. package/dist/src/admin/admin/router.d.ts +19 -24
  3. package/dist/src/admin/admin/service.d.ts +0 -2
  4. package/dist/src/admin/index.d.ts +1329 -343
  5. package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
  6. package/dist/src/asset/admin/router.d.ts +132 -32
  7. package/dist/src/asset/admin/service.d.ts +52 -4
  8. package/dist/src/asset/user/dto.schemas.d.ts +7 -15
  9. package/dist/src/asset/user/router.d.ts +15 -15
  10. package/dist/src/asset/user/service.d.ts +1 -1
  11. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
  12. package/dist/src/asset-convert-product/admin/router.d.ts +581 -42
  13. package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
  14. package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
  16. package/dist/src/asset-convert-product/permissions.d.ts +2 -2
  17. package/dist/src/asset-convert-product/user/router.d.ts +20 -20
  18. package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
  19. package/dist/src/asset-price/admin/router.d.ts +132 -20
  20. package/dist/src/asset-price/admin/service.d.ts +157 -0
  21. package/dist/src/asset-price/errors/index.d.ts +2 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
  23. package/dist/src/asset-price/internal/service.d.ts +1 -0
  24. package/dist/src/asset-price/user/router.d.ts +13 -13
  25. package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
  26. package/dist/src/asset-type/admin/router.d.ts +67 -28
  27. package/dist/src/asset-type/admin/service.d.ts +16 -6
  28. package/dist/src/asset-type/db.schemas.d.ts +6 -6
  29. package/dist/src/asset-type/errors/index.d.ts +6 -0
  30. package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
  31. package/dist/src/asset-type/internal/service.d.ts +4 -4
  32. package/dist/src/asset-type/permissions.d.ts +1 -1
  33. package/dist/src/asset-type/schema.d.ts +3 -5
  34. package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
  35. package/dist/src/asset-type/user/router.d.ts +12 -12
  36. package/dist/src/asset-type/user/service.d.ts +1 -1
  37. package/dist/src/auth/better-auth.d.ts +706 -451
  38. package/dist/src/auth/db.schemas.d.ts +27 -407
  39. package/dist/src/auth/permissions.d.ts +20 -20
  40. package/dist/src/auth/roles.d.ts +60 -60
  41. package/dist/src/auth/router.d.ts +6 -6
  42. package/dist/src/auth/schema.d.ts +8 -206
  43. package/dist/src/bank-account/admin/router.d.ts +10 -13
  44. package/dist/src/bank-account/user/router.d.ts +8 -8
  45. package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
  46. package/dist/src/check-in/admin/router.d.ts +12 -16
  47. package/dist/src/check-in/admin/service.d.ts +0 -1
  48. package/dist/src/check-in/internal/service.d.ts +0 -1
  49. package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
  50. package/dist/src/check-in/user/router.d.ts +18 -19
  51. package/dist/src/check-in/user/service.d.ts +0 -1
  52. package/dist/src/cron/index.d.ts +8 -74
  53. package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
  54. package/dist/src/deposit/admin/router.d.ts +16 -20
  55. package/dist/src/deposit/admin/service.d.ts +0 -2
  56. package/dist/src/deposit/errors/index.d.ts +4 -0
  57. package/dist/src/deposit/errors/locales/zh.d.ts +2 -0
  58. package/dist/src/deposit/user/dto.schemas.d.ts +16 -42
  59. package/dist/src/deposit/user/router.d.ts +68 -19
  60. package/dist/src/deposit/user/service.d.ts +22 -3
  61. package/dist/src/dynamic-env/admin.router.d.ts +27 -30
  62. package/dist/src/env/server.d.ts +1 -1
  63. package/dist/src/file-storage/admin/router.d.ts +17 -20
  64. package/dist/src/file-storage/share/router.d.ts +16 -16
  65. package/dist/src/file-storage/user/router.d.ts +16 -16
  66. package/dist/src/index.d.ts +1688 -660
  67. package/dist/src/ledger/admin/router.d.ts +12 -15
  68. package/dist/src/ledger/user/router.d.ts +10 -10
  69. package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
  70. package/dist/src/ledger-account/admin/router.d.ts +22 -25
  71. package/dist/src/ledger-account/user/router.d.ts +10 -10
  72. package/dist/src/ledger-account-import/admin/router.d.ts +22 -25
  73. package/dist/src/ledger-account-transfer/user/router.d.ts +10 -10
  74. package/dist/src/ledger-account-type/admin/router.d.ts +19 -22
  75. package/dist/src/ledger-account-type/user/router.d.ts +10 -10
  76. package/dist/src/market-data/admin/router.d.ts +17 -20
  77. package/dist/src/market-data/cron.d.ts +3 -54
  78. package/dist/src/market-data/user/router.d.ts +12 -12
  79. package/dist/src/market-pricing/admin/router.d.ts +31 -34
  80. package/dist/src/market-pricing/cron.d.ts +2 -53
  81. package/dist/src/news/admin/dto.schemas.d.ts +6 -6
  82. package/dist/src/news/admin/router.d.ts +29 -32
  83. package/dist/src/news/user/dto.schemas.d.ts +12 -12
  84. package/dist/src/news/user/router.d.ts +19 -19
  85. package/dist/src/news-category/user/router.d.ts +12 -12
  86. package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
  87. package/dist/src/notification/admin/router.d.ts +17 -20
  88. package/dist/src/notification/user/dto.schemas.d.ts +2 -2
  89. package/dist/src/notification/user/router.d.ts +21 -21
  90. package/dist/src/receipt-method/admin/router.d.ts +10 -13
  91. package/dist/src/receipt-method/user/router.d.ts +6 -6
  92. package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
  93. package/dist/src/referral/admin/router.d.ts +14 -18
  94. package/dist/src/referral/user/dto.schemas.d.ts +2 -36
  95. package/dist/src/referral/user/router.d.ts +17 -18
  96. package/dist/src/referral-depth-config/admin/router.d.ts +22 -25
  97. package/dist/src/server-test/index.d.ts +15 -15
  98. package/dist/src/shipping-address/admin/router.d.ts +10 -13
  99. package/dist/src/shipping-address/user/router.d.ts +6 -6
  100. package/dist/src/team/admin/dto.schemas.d.ts +2 -36
  101. package/dist/src/team/admin/router.d.ts +14 -18
  102. package/dist/src/team/user/dto.schemas.d.ts +5 -90
  103. package/dist/src/team/user/router.d.ts +21 -24
  104. package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
  105. package/dist/src/trade-market/admin/router.d.ts +27 -30
  106. package/dist/src/trade-market/user/router.d.ts +22 -22
  107. package/dist/src/transfer/admin/router.d.ts +12 -15
  108. package/dist/src/transfer/admin/service.d.ts +0 -2
  109. package/dist/src/transfer/user/router.d.ts +12 -12
  110. package/dist/src/transfer/user/service.d.ts +0 -2
  111. package/dist/src/user/admin/dto.schemas.d.ts +1 -21
  112. package/dist/src/user/admin/router.d.ts +24 -32
  113. package/dist/src/user/admin/service.d.ts +0 -4
  114. package/dist/src/user/user/router.d.ts +6 -8
  115. package/dist/src/user/user/service.d.ts +0 -2
  116. package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
  117. package/dist/src/user-kyc/admin/router.d.ts +19 -22
  118. package/dist/src/user-kyc/user/router.d.ts +18 -18
  119. package/dist/src/user-security/admin/router.d.ts +13 -16
  120. package/dist/src/user-security/user/router.d.ts +17 -17
  121. package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
  122. package/dist/src/wallet/admin/router.d.ts +77 -15
  123. package/dist/src/wallet/admin/service.d.ts +46 -8
  124. package/dist/src/wallet/internal/service.d.ts +118 -14
  125. package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
  126. package/dist/src/wallet/user/router.d.ts +16 -15
  127. package/dist/src/wallet/user/service.d.ts +18 -8
  128. package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
  129. package/dist/src/wallet-type/admin/router.d.ts +149 -19
  130. package/dist/src/wallet-type/admin/service.d.ts +51 -0
  131. package/dist/src/wallet-type/errors/index.d.ts +4 -0
  132. package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
  133. package/dist/src/wallet-type/internal/service.d.ts +37 -0
  134. package/dist/src/wallet-type/user/router.d.ts +10 -10
  135. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
  136. package/dist/src/welfare-cycle/admin/router.d.ts +35 -38
  137. package/dist/src/welfare-cycle/cron.d.ts +2 -53
  138. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
  139. package/dist/src/welfare-cycle/user/router.d.ts +66 -71
  140. package/dist/src/welfare-cycle/user/service.d.ts +1 -1
  141. package/dist/src/withdraw/admin/router.d.ts +19 -22
  142. package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
  143. package/dist/src/withdraw/user/router.d.ts +59 -12
  144. package/dist/src/withdraw/user/service.d.ts +20 -1
  145. package/package.json +1 -1
@@ -41,7 +41,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -383,7 +383,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
383
383
  welfare_cycle: {
384
384
  plans: {
385
385
  get: {
386
- body: unknown;
386
+ body: {};
387
387
  params: {};
388
388
  query: {
389
389
  status?: "active" | "draft" | "paused" | "ended" | undefined;
@@ -392,7 +392,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
392
392
  pageSize?: number | undefined;
393
393
  pageIndex?: number | undefined;
394
394
  };
395
- headers: unknown;
395
+ headers: {};
396
396
  response: {
397
397
  200: {
398
398
  data: {
@@ -441,12 +441,12 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
441
441
  plans: {
442
442
  ":id": {
443
443
  get: {
444
- body: unknown;
444
+ body: {};
445
445
  params: {
446
446
  id: string;
447
447
  };
448
- query: unknown;
449
- headers: unknown;
448
+ query: {};
449
+ headers: {};
450
450
  response: {
451
451
  200: {
452
452
  id: string;
@@ -494,8 +494,8 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
494
494
  shares: number;
495
495
  };
496
496
  params: {};
497
- query: unknown;
498
- headers: unknown;
497
+ query: {};
498
+ headers: {};
499
499
  response: {
500
500
  200: {
501
501
  id: string;
@@ -541,7 +541,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
541
541
  welfare_cycle: {
542
542
  subscriptions: {
543
543
  get: {
544
- body: unknown;
544
+ body: {};
545
545
  params: {};
546
546
  query: {
547
547
  status?: "active" | "pending" | "cancelled" | "matured" | "settled" | undefined;
@@ -551,7 +551,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
551
551
  pageSize?: number | undefined;
552
552
  pageIndex?: number | undefined;
553
553
  };
554
- headers: unknown;
554
+ headers: {};
555
555
  response: {
556
556
  200: {
557
557
  data: {
@@ -607,12 +607,12 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
607
607
  subscriptions: {
608
608
  ":id": {
609
609
  get: {
610
- body: unknown;
610
+ body: {};
611
611
  params: {
612
612
  id: string;
613
613
  };
614
- query: unknown;
615
- headers: unknown;
614
+ query: {};
615
+ headers: {};
616
616
  response: {
617
617
  200: {
618
618
  id: string;
@@ -657,57 +657,52 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
657
657
  };
658
658
  } & {
659
659
  welfare_cycle: {
660
- subscriptions: {
661
- ":id": {
662
- "daily-payouts": {
663
- get: {
664
- body: unknown;
665
- params: {
660
+ "daily-payouts": {
661
+ get: {
662
+ body: {};
663
+ params: {};
664
+ query: {
665
+ status?: "pending" | "completed" | "failed" | undefined;
666
+ subscriptionId?: string | undefined;
667
+ limit?: number | undefined;
668
+ offset?: number | undefined;
669
+ pageSize?: number | undefined;
670
+ pageIndex?: number | undefined;
671
+ };
672
+ headers: {};
673
+ response: {
674
+ 200: {
675
+ data: {
666
676
  id: string;
677
+ createdAt: Date;
678
+ updatedAt: Date;
679
+ userId: string;
680
+ status: "pending" | "completed" | "failed";
681
+ amount: string;
682
+ idempotencyKey: string;
683
+ ledgerEntryId: string | null;
684
+ planId: string;
685
+ subscriptionId: string;
686
+ payoutDate: string;
687
+ }[];
688
+ pagination: {
689
+ total: number;
690
+ pageSize: number;
691
+ pageIndex: number;
692
+ totalPages: number;
693
+ hasNextPage: boolean;
667
694
  };
668
- query: {
669
- status?: "pending" | "completed" | "failed" | undefined;
670
- limit?: number | undefined;
671
- offset?: number | undefined;
672
- pageSize?: number | undefined;
673
- pageIndex?: number | undefined;
674
- };
675
- headers: unknown;
676
- response: {
677
- 200: {
678
- data: {
679
- id: string;
680
- createdAt: Date;
681
- updatedAt: Date;
682
- userId: string;
683
- status: "pending" | "completed" | "failed";
684
- amount: string;
685
- idempotencyKey: string;
686
- ledgerEntryId: string | null;
687
- planId: string;
688
- subscriptionId: string;
689
- payoutDate: string;
690
- }[];
691
- pagination: {
692
- total: number;
693
- pageSize: number;
694
- pageIndex: number;
695
- totalPages: number;
696
- hasNextPage: boolean;
697
- };
698
- };
699
- 422: {
700
- type: "validation";
701
- on: string;
702
- summary?: string;
703
- message?: string;
704
- found?: unknown;
705
- property?: string;
706
- expected?: string;
707
- };
708
- 401: "Unauthorized";
709
- };
710
695
  };
696
+ 422: {
697
+ type: "validation";
698
+ on: string;
699
+ summary?: string;
700
+ message?: string;
701
+ found?: unknown;
702
+ property?: string;
703
+ expected?: string;
704
+ };
705
+ 401: "Unauthorized";
711
706
  };
712
707
  };
713
708
  };
@@ -718,12 +713,12 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
718
713
  ":id": {
719
714
  "maturity-settlement": {
720
715
  get: {
721
- body: unknown;
716
+ body: {};
722
717
  params: {
723
718
  id: string;
724
719
  };
725
- query: unknown;
726
- headers: unknown;
720
+ query: {};
721
+ headers: {};
727
722
  response: {
728
723
  200: {
729
724
  id: string;
@@ -773,11 +768,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
773
768
  emailVerified: boolean;
774
769
  name: string;
775
770
  image?: string | null | undefined | undefined;
776
- phoneNumber?: string | null | undefined;
777
- phoneNumberVerified?: boolean | null | undefined;
778
771
  twoFactorEnabled: boolean | null | undefined;
779
772
  username?: string | null | undefined;
780
773
  displayUsername?: string | null | undefined;
774
+ phoneNumber?: string | null | undefined;
775
+ phoneNumberVerified?: boolean | null | undefined;
781
776
  banned: boolean | null | undefined;
782
777
  role?: string | null | undefined;
783
778
  banReason?: string | null | undefined;
@@ -135,7 +135,7 @@ export declare abstract class UserWelfareCycleService extends BaseWelfareCycleSe
135
135
  nextPayoutDate: Date | null;
136
136
  lastPayoutDate: Date | null;
137
137
  }>;
138
- static listDailyPayouts(userId: string, subscriptionId: string, filters?: WelfareCycleDailyPayoutListQueryType): Promise<{
138
+ static listDailyPayouts(userId: string, filters?: WelfareCycleDailyPayoutListQueryType): Promise<{
139
139
  data: {
140
140
  id: string;
141
141
  createdAt: Date;
@@ -41,7 +41,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -382,7 +382,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
382
382
  } & {
383
383
  withdraw: {
384
384
  get: {
385
- body: unknown;
385
+ body: {};
386
386
  params: {};
387
387
  query: {
388
388
  userId?: string | undefined;
@@ -392,7 +392,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
392
392
  pageSize?: number | undefined;
393
393
  pageIndex?: number | undefined;
394
394
  };
395
- headers: unknown;
395
+ headers: {};
396
396
  response: {
397
397
  200: {
398
398
  data: {
@@ -447,8 +447,8 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
447
447
  params: {
448
448
  orderId: string;
449
449
  };
450
- query: unknown;
451
- headers: unknown;
450
+ query: {};
451
+ headers: {};
452
452
  response: {
453
453
  200: {
454
454
  id: string;
@@ -496,8 +496,8 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
496
496
  params: {
497
497
  orderId: string;
498
498
  };
499
- query: unknown;
500
- headers: unknown;
499
+ query: {};
500
+ headers: {};
501
501
  response: {
502
502
  200: {
503
503
  id: string;
@@ -539,12 +539,12 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
539
539
  ":orderId": {
540
540
  paid: {
541
541
  post: {
542
- body: unknown;
542
+ body: {};
543
543
  params: {
544
544
  orderId: string;
545
545
  };
546
- query: unknown;
547
- headers: unknown;
546
+ query: {};
547
+ headers: {};
548
548
  response: {
549
549
  200: {
550
550
  id: string;
@@ -598,11 +598,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
598
598
  emailVerified: boolean;
599
599
  name: string;
600
600
  image?: string | null | undefined | undefined;
601
- phoneNumber?: string | null | undefined;
602
- phoneNumberVerified?: boolean | null | undefined;
603
601
  twoFactorEnabled: boolean | null | undefined;
604
602
  username?: string | null | undefined;
605
603
  displayUsername?: string | null | undefined;
604
+ phoneNumber?: string | null | undefined;
605
+ phoneNumberVerified?: boolean | null | undefined;
606
606
  banned: boolean | null | undefined;
607
607
  role?: string | null | undefined;
608
608
  banReason?: string | null | undefined;
@@ -628,11 +628,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
628
628
  emailVerified: boolean;
629
629
  name: string;
630
630
  image?: string | null | undefined | undefined;
631
- phoneNumber?: string | null | undefined;
632
- phoneNumberVerified?: boolean | null | undefined;
633
631
  twoFactorEnabled: boolean | null | undefined;
634
632
  username?: string | null | undefined;
635
633
  displayUsername?: string | null | undefined;
634
+ phoneNumber?: string | null | undefined;
635
+ phoneNumberVerified?: boolean | null | undefined;
636
636
  banned: boolean | null | undefined;
637
637
  role?: string | null | undefined;
638
638
  banReason?: string | null | undefined;
@@ -654,9 +654,6 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
654
654
  standaloneSchema: {};
655
655
  response: {
656
656
  401: "Unauthorized";
657
- } & {
658
- 401: "Unauthorized";
659
- } & {
660
657
  403: "Forbidden: Admins only";
661
658
  };
662
659
  }>;
@@ -600,6 +600,13 @@ export declare const ledgerAccountWithdrawCreateInputSchema: import("@sinclair/t
600
600
  transactionPassword: import("@sinclair/typebox").TString;
601
601
  }>;
602
602
  export type LedgerAccountWithdrawCreateInputType = typeof ledgerAccountWithdrawCreateInputSchema.static;
603
+ export declare const directCnyWithdrawCreateInputSchema: import("@sinclair/typebox").TObject<{
604
+ receiptMethodId: import("@sinclair/typebox").TString;
605
+ amount: import("@sinclair/typebox").TString;
606
+ idempotencyKey: import("@sinclair/typebox").TString;
607
+ transactionPassword: import("@sinclair/typebox").TString;
608
+ }>;
609
+ export type DirectCnyWithdrawCreateInputType = typeof directCnyWithdrawCreateInputSchema.static;
603
610
  export declare const withdrawUserListQuerySchema: import("@sinclair/typebox").TObject<{
604
611
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
605
612
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -41,7 +41,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -391,8 +391,55 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
391
391
  transactionPassword: string;
392
392
  };
393
393
  params: {};
394
- query: unknown;
395
- headers: unknown;
394
+ query: {};
395
+ headers: {};
396
+ response: {
397
+ 200: {
398
+ id: string;
399
+ createdAt: Date;
400
+ updatedAt: Date;
401
+ userId: string;
402
+ status: "rejected" | "completed" | "pending_review" | "pending_payout";
403
+ reviewedAt: Date | null;
404
+ reviewedBy: string | null;
405
+ assetId: string | null;
406
+ amount: string;
407
+ idempotencyKey: string;
408
+ orderNo: string;
409
+ reviewNote: string | null;
410
+ sourceAccountId: string | null;
411
+ receiptMethodId: string;
412
+ rejectReason: string | null;
413
+ paidBy: string | null;
414
+ paidAt: Date | null;
415
+ };
416
+ 422: {
417
+ type: "validation";
418
+ on: string;
419
+ summary?: string;
420
+ message?: string;
421
+ found?: unknown;
422
+ property?: string;
423
+ expected?: string;
424
+ };
425
+ 401: "Unauthorized";
426
+ };
427
+ };
428
+ };
429
+ };
430
+ } & {
431
+ withdraw: {
432
+ direct_cny_balance: {
433
+ post: {
434
+ body: {
435
+ amount: string;
436
+ idempotencyKey: string;
437
+ receiptMethodId: string;
438
+ transactionPassword: string;
439
+ };
440
+ params: {};
441
+ query: {};
442
+ headers: {};
396
443
  response: {
397
444
  200: {
398
445
  id: string;
@@ -430,7 +477,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
430
477
  } & {
431
478
  withdraw: {
432
479
  get: {
433
- body: unknown;
480
+ body: {};
434
481
  params: {};
435
482
  query: {
436
483
  status?: "rejected" | "completed" | "pending_review" | "pending_payout" | undefined;
@@ -439,7 +486,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
439
486
  pageSize?: number | undefined;
440
487
  pageIndex?: number | undefined;
441
488
  };
442
- headers: unknown;
489
+ headers: {};
443
490
  response: {
444
491
  200: {
445
492
  data: {
@@ -499,11 +546,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
499
546
  emailVerified: boolean;
500
547
  name: string;
501
548
  image?: string | null | undefined | undefined;
502
- phoneNumber?: string | null | undefined;
503
- phoneNumberVerified?: boolean | null | undefined;
504
549
  twoFactorEnabled: boolean | null | undefined;
505
550
  username?: string | null | undefined;
506
551
  displayUsername?: string | null | undefined;
552
+ phoneNumber?: string | null | undefined;
553
+ phoneNumberVerified?: boolean | null | undefined;
507
554
  banned: boolean | null | undefined;
508
555
  role?: string | null | undefined;
509
556
  banReason?: string | null | undefined;
@@ -1,6 +1,25 @@
1
1
  import { InternalWithdrawService } from "../internal/service";
2
- import type { LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
2
+ import type { DirectCnyWithdrawCreateInputType, LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
3
3
  export declare abstract class UserWithdrawService extends InternalWithdrawService {
4
+ static createDirectCnyWithdrawOrder(userId: string, input: DirectCnyWithdrawCreateInputType): Promise<{
5
+ id: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ userId: string;
9
+ status: "rejected" | "completed" | "pending_review" | "pending_payout";
10
+ reviewedAt: Date | null;
11
+ reviewedBy: string | null;
12
+ assetId: string | null;
13
+ amount: string;
14
+ idempotencyKey: string;
15
+ orderNo: string;
16
+ reviewNote: string | null;
17
+ sourceAccountId: string | null;
18
+ receiptMethodId: string;
19
+ rejectReason: string | null;
20
+ paidBy: string | null;
21
+ paidAt: Date | null;
22
+ }>;
4
23
  static createLedgerAccountWithdrawOrder(userId: string, input: LedgerAccountWithdrawCreateInputType): Promise<{
5
24
  id: string;
6
25
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2wa-org/eden",
3
- "version": "0.0.54",
3
+ "version": "0.0.57",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "files": [