@r2wa-org/eden 0.0.93 → 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.
- package/dist/admin/index.d.ts +1623 -772
- package/dist/asset/admin/router.d.ts +1 -13
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
- package/dist/asset-convert-product/admin/router.d.ts +25 -13
- package/dist/asset-convert-product/admin/service.d.ts +12 -12
- package/dist/auth/better-auth.d.ts +7 -1
- package/dist/auth/i18n/zh.d.ts +100 -0
- package/dist/auth/permissions.d.ts +6 -1
- package/dist/auth/roles.d.ts +15 -0
- package/dist/bank-account/admin/router.d.ts +13 -1
- package/dist/check-in/admin/router.d.ts +1 -13
- package/dist/content-video/admin/dto.schemas.d.ts +128 -0
- package/dist/{src/news → content-video}/admin/router.d.ts +363 -320
- package/dist/content-video/admin/service.d.ts +210 -0
- package/dist/{src/app-version → content-video}/db.schemas.d.ts +152 -114
- package/dist/content-video/errors/index.d.ts +17 -0
- package/dist/content-video/errors/locales/zh.d.ts +16 -0
- package/dist/{market-data → content-video}/index.d.ts +5 -5
- package/dist/content-video/internal/service.d.ts +106 -0
- package/dist/content-video/permissions.d.ts +4 -0
- package/dist/{src/app-version → content-video}/schema.d.ts +83 -62
- package/dist/content-video/user/dto.schemas.d.ts +52 -0
- package/dist/{src/asset-type → content-video}/user/router.d.ts +175 -164
- package/dist/content-video/user/service.d.ts +36 -0
- package/dist/db/schemas.d.ts +2 -0
- package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
- package/dist/file-storage/admin/router.d.ts +2 -2
- package/dist/file-storage/admin/service.d.ts +2 -2
- package/dist/file-storage/db.schemas.d.ts +4 -4
- package/dist/file-storage/internal/service.d.ts +1 -1
- package/dist/file-storage/s3.client.d.ts +22 -0
- package/dist/file-storage/schema.d.ts +3 -3
- package/dist/file-storage/share/dto.schemas.d.ts +1 -0
- package/dist/file-storage/share/router.d.ts +1 -1
- package/dist/file-storage/user/dto.schemas.d.ts +6 -4
- package/dist/file-storage/user/router.d.ts +3 -3
- package/dist/file-storage/user/service.d.ts +2 -2
- package/dist/index.d.ts +1693 -648
- package/dist/ledger/admin/dto.schemas.d.ts +8 -0
- package/dist/ledger/admin/router.d.ts +4 -4
- package/dist/ledger/db.schemas.d.ts +8 -8
- package/dist/ledger/schema.d.ts +6 -6
- package/dist/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/ledger/user/router.d.ts +2 -2
- package/dist/ledger/user/service.d.ts +2 -2
- package/dist/lock-activity/admin/participation.dto.schemas.d.ts +200 -0
- package/dist/lock-activity/admin/participation.service.d.ts +144 -0
- package/dist/lock-activity/admin/reward.service.d.ts +48 -0
- package/dist/lock-activity/admin/router.d.ts +443 -0
- package/dist/lock-activity/constants.d.ts +2 -0
- package/dist/lock-activity/cron.d.ts +6 -0
- package/dist/lock-activity/errors/index.d.ts +11 -0
- package/dist/lock-activity/errors/locales/zh.d.ts +11 -0
- package/dist/lock-activity/internal/participation.service.d.ts +42 -0
- package/dist/lock-activity/internal/reward.service.d.ts +15 -0
- package/dist/{src/referral/db.schemas.d.ts → lock-activity/participation.db.schemas.d.ts} +157 -129
- package/dist/{src/referral/schema.d.ts → lock-activity/participation.schema.d.ts} +89 -85
- package/dist/lock-activity/permissions.d.ts +1 -0
- package/dist/lock-activity/user/participation.dto.schemas.d.ts +25 -0
- package/dist/lock-activity/user/participation.service.d.ts +24 -0
- package/dist/lock-activity/user/router.d.ts +93 -1
- package/dist/news/admin/dto.schemas.d.ts +26 -26
- package/dist/news/admin/router.d.ts +25 -25
- package/dist/news/admin/service.d.ts +4 -1
- package/dist/news/user/service.d.ts +2 -2
- package/dist/referral/index.d.ts +1 -0
- package/dist/referral/user/router.d.ts +29 -1
- package/dist/user/internal/avatar.service.d.ts +42 -0
- package/dist/user-security/admin/router.d.ts +1 -13
- package/package.json +1 -1
- package/dist/market-data/user/dto.schemas.d.ts +0 -370
- package/dist/market-data/user/router.d.ts +0 -693
- package/dist/market-data/user/service.d.ts +0 -41
- package/dist/src/admin/index.d.ts +0 -10428
- package/dist/src/admin-user/admin/dto.schemas.d.ts +0 -878
- package/dist/src/admin-user/admin/errors/index.d.ts +0 -20
- package/dist/src/admin-user/admin/errors/locales/zh.d.ts +0 -16
- package/dist/src/admin-user/admin/router.d.ts +0 -655
- package/dist/src/admin-user/admin/service.d.ts +0 -60
- package/dist/src/app-version/admin/dto.schemas.d.ts +0 -99
- package/dist/src/app-version/admin/router.d.ts +0 -756
- package/dist/src/app-version/admin/service.d.ts +0 -105
- package/dist/src/asset/admin/dto.schemas.d.ts +0 -164
- package/dist/src/asset/admin/router.d.ts +0 -762
- package/dist/src/asset/admin/service.d.ts +0 -144
- package/dist/src/asset/db.schemas.d.ts +0 -380
- package/dist/src/asset/errors/index.d.ts +0 -33
- package/dist/src/asset/errors/locales/zh.d.ts +0 -20
- package/dist/src/asset/index.d.ts +0 -11
- package/dist/src/asset/internal/service.d.ts +0 -16
- package/dist/src/asset/permissions.d.ts +0 -4
- package/dist/src/asset/schema.d.ts +0 -209
- package/dist/src/asset/seed.d.ts +0 -1
- package/dist/src/asset/user/dto.schemas.d.ts +0 -78
- package/dist/src/asset/user/router.d.ts +0 -567
- package/dist/src/asset/user/service.d.ts +0 -75
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +0 -823
- package/dist/src/asset-convert-product/admin/router.d.ts +0 -1586
- package/dist/src/asset-convert-product/admin/service.d.ts +0 -814
- package/dist/src/asset-convert-product/db.schemas.d.ts +0 -1270
- package/dist/src/asset-convert-product/errors/index.d.ts +0 -32
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +0 -31
- package/dist/src/asset-convert-product/index.d.ts +0 -8
- package/dist/src/asset-convert-product/internal/service.d.ts +0 -2
- package/dist/src/asset-convert-product/permissions.d.ts +0 -5
- package/dist/src/asset-convert-product/schema.d.ts +0 -688
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +0 -1089
- package/dist/src/asset-convert-product/user/router.d.ts +0 -797
- package/dist/src/asset-convert-product/user/service.d.ts +0 -413
- package/dist/src/asset-price/admin/dto.schemas.d.ts +0 -102
- package/dist/src/asset-price/admin/router.d.ts +0 -658
- package/dist/src/asset-price/admin/service.d.ts +0 -82
- package/dist/src/asset-price/constants.d.ts +0 -2
- package/dist/src/asset-price/db.schemas.d.ts +0 -358
- package/dist/src/asset-price/errors/index.d.ts +0 -20
- package/dist/src/asset-price/errors/locales/zh.d.ts +0 -19
- package/dist/src/asset-price/index.d.ts +0 -12
- package/dist/src/asset-price/internal/service.d.ts +0 -14
- package/dist/src/asset-price/permissions.d.ts +0 -6
- package/dist/src/asset-price/schema.d.ts +0 -191
- package/dist/src/asset-price/seed.d.ts +0 -1
- package/dist/src/asset-price/user/dto.schemas.d.ts +0 -45
- package/dist/src/asset-price/user/router.d.ts +0 -512
- package/dist/src/asset-price/user/service.d.ts +0 -26
- package/dist/src/asset-type/admin/dto.schemas.d.ts +0 -404
- package/dist/src/asset-type/admin/router.d.ts +0 -617
- package/dist/src/asset-type/admin/service.d.ts +0 -45
- package/dist/src/asset-type/db.schemas.d.ts +0 -244
- package/dist/src/asset-type/errors/index.d.ts +0 -27
- package/dist/src/asset-type/errors/locales/zh.d.ts +0 -17
- package/dist/src/asset-type/index.d.ts +0 -11
- package/dist/src/asset-type/internal/service.d.ts +0 -9
- package/dist/src/asset-type/permissions.d.ts +0 -4
- package/dist/src/asset-type/schema.d.ts +0 -133
- package/dist/src/asset-type/seed.d.ts +0 -19
- package/dist/src/asset-type/user/dto.schemas.d.ts +0 -35
- package/dist/src/asset-type/user/service.d.ts +0 -18
- package/dist/src/auth/better-auth.d.ts +0 -3312
- package/dist/src/auth/better-hooks.d.ts +0 -23
- package/dist/src/auth/db.schemas.d.ts +0 -1696
- package/dist/src/auth/permissions.d.ts +0 -235
- package/dist/src/auth/roles.d.ts +0 -725
- package/dist/src/auth/router.d.ts +0 -385
- package/dist/src/auth/schema.d.ts +0 -882
- package/dist/src/bank-account/admin/dto.schemas.d.ts +0 -524
- package/dist/src/bank-account/admin/router.d.ts +0 -909
- package/dist/src/bank-account/admin/service.d.ts +0 -221
- package/dist/src/bank-account/db.schemas.d.ts +0 -1032
- package/dist/src/bank-account/errors/index.d.ts +0 -13
- package/dist/src/bank-account/errors/locales/zh.d.ts +0 -12
- package/dist/src/bank-account/index.d.ts +0 -8
- package/dist/src/bank-account/internal/service.d.ts +0 -51
- package/dist/src/bank-account/permissions.d.ts +0 -10
- package/dist/src/bank-account/schema.d.ts +0 -535
- package/dist/src/bank-account/seed.d.ts +0 -4
- package/dist/src/bank-account/user/dto.schemas.d.ts +0 -458
- package/dist/src/bank-account/user/router.d.ts +0 -680
- package/dist/src/bank-account/user/service.d.ts +0 -133
- package/dist/src/check-in/admin/dto.schemas.d.ts +0 -312
- package/dist/src/check-in/admin/router.d.ts +0 -526
- package/dist/src/check-in/admin/service.d.ts +0 -38
- package/dist/src/check-in/db.schemas.d.ts +0 -312
- package/dist/src/check-in/errors/index.d.ts +0 -13
- package/dist/src/check-in/errors/locales/zh.d.ts +0 -10
- package/dist/src/check-in/index.d.ts +0 -7
- package/dist/src/check-in/internal/service.d.ts +0 -51
- package/dist/src/check-in/permissions.d.ts +0 -6
- package/dist/src/check-in/schema.d.ts +0 -168
- package/dist/src/check-in/user/dto.schemas.d.ts +0 -503
- package/dist/src/check-in/user/router.d.ts +0 -615
- package/dist/src/check-in/user/service.d.ts +0 -49
- package/dist/src/cors/index.d.ts +0 -30
- package/dist/src/cron/index.d.ts +0 -10
- package/dist/src/db/columns.helpers.d.ts +0 -13
- package/dist/src/db/enums.d.ts +0 -1
- package/dist/src/db/index.d.ts +0 -4
- package/dist/src/db/schemas.d.ts +0 -34
- package/dist/src/db/transaction.d.ts +0 -3
- package/dist/src/db/typebox.d.ts +0 -19
- package/dist/src/deposit/admin/dto.schemas.d.ts +0 -649
- package/dist/src/deposit/admin/router.d.ts +0 -638
- package/dist/src/deposit/admin/service.d.ts +0 -127
- package/dist/src/deposit/db.schemas.d.ts +0 -652
- package/dist/src/deposit/errors/index.d.ts +0 -45
- package/dist/src/deposit/errors/locales/zh.d.ts +0 -24
- package/dist/src/deposit/index.d.ts +0 -7
- package/dist/src/deposit/internal/service.d.ts +0 -8
- package/dist/src/deposit/permissions.d.ts +0 -9
- package/dist/src/deposit/schema.d.ts +0 -340
- package/dist/src/deposit/user/dto.schemas.d.ts +0 -655
- package/dist/src/deposit/user/router.d.ts +0 -681
- package/dist/src/deposit/user/service.d.ts +0 -148
- package/dist/src/dynamic-env/admin.router.d.ts +0 -620
- package/dist/src/dynamic-env/cache.d.ts +0 -35
- package/dist/src/dynamic-env/db.schemas.d.ts +0 -182
- package/dist/src/dynamic-env/dto.schema.d.ts +0 -17
- package/dist/src/dynamic-env/errors/index.d.ts +0 -11
- package/dist/src/dynamic-env/errors/locales/zh.d.ts +0 -10
- package/dist/src/dynamic-env/index.d.ts +0 -3
- package/dist/src/dynamic-env/schema.d.ts +0 -96
- package/dist/src/dynamic-env/service.d.ts +0 -93
- package/dist/src/email/index.d.ts +0 -2
- package/dist/src/env/client.d.ts +0 -2
- package/dist/src/env/index.d.ts +0 -2
- package/dist/src/env/server.d.ts +0 -50
- package/dist/src/env/typebox-env.d.ts +0 -7
- package/dist/src/error/errorcode.d.ts +0 -9
- package/dist/src/error/index.d.ts +0 -120
- package/dist/src/error/locales/zh.d.ts +0 -2
- package/dist/src/error/messages.d.ts +0 -10
- package/dist/src/external/dto.schemas.d.ts +0 -173
- package/dist/src/external/errors/index.d.ts +0 -13
- package/dist/src/external/errors/locales/zh.d.ts +0 -10
- package/dist/src/external/index.d.ts +0 -4
- package/dist/src/external/router.d.ts +0 -105
- package/dist/src/external/service.d.ts +0 -31
- package/dist/src/file-storage/admin/dto.schemas.d.ts +0 -209
- package/dist/src/file-storage/admin/router.d.ts +0 -598
- package/dist/src/file-storage/admin/service.d.ts +0 -89
- package/dist/src/file-storage/db.schemas.d.ts +0 -1026
- package/dist/src/file-storage/errors/index.d.ts +0 -19
- package/dist/src/file-storage/errors/locales/zh.d.ts +0 -18
- package/dist/src/file-storage/index.d.ts +0 -7
- package/dist/src/file-storage/internal/service.d.ts +0 -66
- package/dist/src/file-storage/permissions.d.ts +0 -5
- package/dist/src/file-storage/s3.client.d.ts +0 -284
- package/dist/src/file-storage/schema.d.ts +0 -538
- package/dist/src/file-storage/share/dto.schemas.d.ts +0 -68
- package/dist/src/file-storage/share/router.d.ts +0 -561
- package/dist/src/file-storage/user/dto.schemas.d.ts +0 -1100
- package/dist/src/file-storage/user/router.d.ts +0 -585
- package/dist/src/file-storage/user/service.d.ts +0 -80
- package/dist/src/http-access-log.d.ts +0 -30
- package/dist/src/index.d.ts +0 -16262
- package/dist/src/ledger/admin/dto.schemas.d.ts +0 -461
- package/dist/src/ledger/admin/router.d.ts +0 -608
- package/dist/src/ledger/admin/service.d.ts +0 -22
- package/dist/src/ledger/db.schemas.d.ts +0 -694
- package/dist/src/ledger/errors/index.d.ts +0 -38
- package/dist/src/ledger/errors/locales/zh.d.ts +0 -22
- package/dist/src/ledger/index.d.ts +0 -6
- package/dist/src/ledger/internal/service.d.ts +0 -36
- package/dist/src/ledger/permissions.d.ts +0 -8
- package/dist/src/ledger/schema.d.ts +0 -365
- package/dist/src/ledger/user/dto.schemas.d.ts +0 -712
- package/dist/src/ledger/user/router.d.ts +0 -487
- package/dist/src/ledger/user/service.d.ts +0 -146
- package/dist/src/ledger-account/admin/dto.schemas.d.ts +0 -258
- package/dist/src/ledger-account/admin/router.d.ts +0 -757
- package/dist/src/ledger-account/admin/service.d.ts +0 -238
- package/dist/src/ledger-account/db.schemas.d.ts +0 -346
- package/dist/src/ledger-account/errors/index.d.ts +0 -18
- package/dist/src/ledger-account/errors/locales/zh.d.ts +0 -17
- package/dist/src/ledger-account/index.d.ts +0 -8
- package/dist/src/ledger-account/internal/service.d.ts +0 -44
- package/dist/src/ledger-account/permissions.d.ts +0 -4
- package/dist/src/ledger-account/schema.d.ts +0 -190
- package/dist/src/ledger-account/user/dto.schemas.d.ts +0 -590
- package/dist/src/ledger-account/user/router.d.ts +0 -602
- package/dist/src/ledger-account/user/service.d.ts +0 -154
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +0 -1255
- package/dist/src/ledger-account-import/admin/router.d.ts +0 -691
- package/dist/src/ledger-account-import/admin/service.d.ts +0 -92
- package/dist/src/ledger-account-import/db.schemas.d.ts +0 -1206
- package/dist/src/ledger-account-import/errors/index.d.ts +0 -18
- package/dist/src/ledger-account-import/errors/locales/zh.d.ts +0 -17
- package/dist/src/ledger-account-import/index.d.ts +0 -8
- package/dist/src/ledger-account-import/internal/service.d.ts +0 -13
- package/dist/src/ledger-account-import/permissions.d.ts +0 -7
- package/dist/src/ledger-account-import/schema.d.ts +0 -636
- package/dist/src/ledger-account-import/user/service.d.ts +0 -3
- package/dist/src/ledger-account-import/worker.d.ts +0 -1
- package/dist/src/ledger-account-transfer/admin/service.d.ts +0 -3
- package/dist/src/ledger-account-transfer/errors/index.d.ts +0 -23
- package/dist/src/ledger-account-transfer/errors/locales/zh.d.ts +0 -15
- package/dist/src/ledger-account-transfer/index.d.ts +0 -6
- package/dist/src/ledger-account-transfer/internal/service.d.ts +0 -8
- package/dist/src/ledger-account-transfer/user/dto.schemas.d.ts +0 -20
- package/dist/src/ledger-account-transfer/user/router.d.ts +0 -466
- package/dist/src/ledger-account-transfer/user/service.d.ts +0 -16
- package/dist/src/ledger-account-type/admin/dto.schemas.d.ts +0 -509
- package/dist/src/ledger-account-type/admin/router.d.ts +0 -708
- package/dist/src/ledger-account-type/admin/service.d.ts +0 -109
- package/dist/src/ledger-account-type/db.schemas.d.ts +0 -788
- package/dist/src/ledger-account-type/errors/index.d.ts +0 -18
- package/dist/src/ledger-account-type/errors/locales/zh.d.ts +0 -17
- package/dist/src/ledger-account-type/index.d.ts +0 -9
- package/dist/src/ledger-account-type/internal/service.d.ts +0 -8
- package/dist/src/ledger-account-type/permissions.d.ts +0 -4
- package/dist/src/ledger-account-type/schema.d.ts +0 -405
- package/dist/src/ledger-account-type/seed.d.ts +0 -1
- package/dist/src/ledger-account-type/user/dto.schemas.d.ts +0 -509
- package/dist/src/ledger-account-type/user/router.d.ts +0 -534
- package/dist/src/ledger-account-type/user/service.d.ts +0 -59
- package/dist/src/market-data/admin/dto.schemas.d.ts +0 -824
- package/dist/src/market-data/admin/router.d.ts +0 -632
- package/dist/src/market-data/admin/service.d.ts +0 -78
- package/dist/src/market-data/cron.d.ts +0 -6
- package/dist/src/market-data/db.schemas.d.ts +0 -516
- package/dist/src/market-data/errors/index.d.ts +0 -13
- package/dist/src/market-data/errors/locales/zh.d.ts +0 -12
- package/dist/src/market-data/index.d.ts +0 -8
- package/dist/src/market-data/internal/service.d.ts +0 -77
- package/dist/src/market-data/permissions.d.ts +0 -6
- package/dist/src/market-data/schema.d.ts +0 -270
- package/dist/src/market-data/user/dto.schemas.d.ts +0 -370
- package/dist/src/market-data/user/router.d.ts +0 -693
- package/dist/src/market-data/user/service.d.ts +0 -41
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +0 -860
- package/dist/src/market-pricing/admin/router.d.ts +0 -988
- package/dist/src/market-pricing/admin/service.d.ts +0 -286
- package/dist/src/market-pricing/cron.d.ts +0 -6
- package/dist/src/market-pricing/db.schemas.d.ts +0 -828
- package/dist/src/market-pricing/errors/index.d.ts +0 -14
- package/dist/src/market-pricing/errors/locales/zh.d.ts +0 -13
- package/dist/src/market-pricing/internal/service.d.ts +0 -35
- package/dist/src/market-pricing/permissions.d.ts +0 -4
- package/dist/src/market-pricing/schema.d.ts +0 -434
- package/dist/src/nanoid/index.d.ts +0 -2
- package/dist/src/news/admin/dto.schemas.d.ts +0 -159
- package/dist/src/news/admin/service.d.ts +0 -221
- package/dist/src/news/db.schemas.d.ts +0 -1150
- package/dist/src/news/errors/index.d.ts +0 -20
- package/dist/src/news/errors/locales/zh.d.ts +0 -13
- package/dist/src/news/index.d.ts +0 -7
- package/dist/src/news/internal/service.d.ts +0 -7
- package/dist/src/news/permissions.d.ts +0 -4
- package/dist/src/news/schema.d.ts +0 -616
- package/dist/src/news/user/dto.schemas.d.ts +0 -178
- package/dist/src/news/user/router.d.ts +0 -617
- package/dist/src/news/user/service.d.ts +0 -228
- package/dist/src/news-category/admin/dto.schemas.d.ts +0 -52
- package/dist/src/news-category/admin/router.d.ts +0 -204
- package/dist/src/news-category/admin/service.d.ts +0 -55
- package/dist/src/news-category/constants.d.ts +0 -1
- package/dist/src/news-category/db.schemas.d.ts +0 -324
- package/dist/src/news-category/errors/index.d.ts +0 -21
- package/dist/src/news-category/errors/locales/zh.d.ts +0 -14
- package/dist/src/news-category/index.d.ts +0 -8
- package/dist/src/news-category/internal/service.d.ts +0 -5
- package/dist/src/news-category/permissions.d.ts +0 -4
- package/dist/src/news-category/schema.d.ts +0 -173
- package/dist/src/news-category/seed.d.ts +0 -12
- package/dist/src/news-category/user/dto.schemas.d.ts +0 -55
- package/dist/src/news-category/user/router.d.ts +0 -457
- package/dist/src/news-category/user/service.d.ts +0 -25
- package/dist/src/notification/admin/dto.schemas.d.ts +0 -432
- package/dist/src/notification/admin/router.d.ts +0 -576
- package/dist/src/notification/admin/service.d.ts +0 -43
- package/dist/src/notification/db.schemas.d.ts +0 -624
- package/dist/src/notification/errors/index.d.ts +0 -19
- package/dist/src/notification/errors/locales/zh.d.ts +0 -13
- package/dist/src/notification/index.d.ts +0 -7
- package/dist/src/notification/internal/service.d.ts +0 -28
- package/dist/src/notification/permissions.d.ts +0 -6
- package/dist/src/notification/schema.d.ts +0 -347
- package/dist/src/notification/user/dto.schemas.d.ts +0 -411
- package/dist/src/notification/user/router.d.ts +0 -632
- package/dist/src/notification/user/service.d.ts +0 -82
- package/dist/src/operations-overview/admin/dto.schemas.d.ts +0 -41
- package/dist/src/operations-overview/admin/router.d.ts +0 -517
- package/dist/src/operations-overview/admin/service.d.ts +0 -4
- package/dist/src/portfolio/index.d.ts +0 -2
- package/dist/src/portfolio/internal/index.d.ts +0 -1
- package/dist/src/portfolio/internal/service.d.ts +0 -5
- package/dist/src/portfolio/user/dto.schemas.d.ts +0 -352
- package/dist/src/portfolio/user/index.d.ts +0 -3
- package/dist/src/portfolio/user/router.d.ts +0 -659
- package/dist/src/portfolio/user/service.d.ts +0 -143
- package/dist/src/receipt-method/admin/dto.schemas.d.ts +0 -62
- package/dist/src/receipt-method/admin/router.d.ts +0 -592
- package/dist/src/receipt-method/admin/service.d.ts +0 -82
- package/dist/src/receipt-method/db.schemas.d.ts +0 -380
- package/dist/src/receipt-method/errors/index.d.ts +0 -17
- package/dist/src/receipt-method/errors/locales/zh.d.ts +0 -16
- package/dist/src/receipt-method/index.d.ts +0 -7
- package/dist/src/receipt-method/internal/service.d.ts +0 -33
- package/dist/src/receipt-method/permissions.d.ts +0 -4
- package/dist/src/receipt-method/schema.d.ts +0 -205
- package/dist/src/receipt-method/user/dto.schemas.d.ts +0 -417
- package/dist/src/receipt-method/user/router.d.ts +0 -602
- package/dist/src/receipt-method/user/service.d.ts +0 -73
- package/dist/src/referral/admin/dto.schemas.d.ts +0 -597
- package/dist/src/referral/admin/router.d.ts +0 -553
- package/dist/src/referral/admin/service.d.ts +0 -6
- package/dist/src/referral/errors/index.d.ts +0 -15
- package/dist/src/referral/errors/locales/zh.d.ts +0 -14
- package/dist/src/referral/index.d.ts +0 -9
- package/dist/src/referral/internal/service.d.ts +0 -23
- package/dist/src/referral/permissions.d.ts +0 -8
- package/dist/src/referral/user/dto.schemas.d.ts +0 -602
- package/dist/src/referral/user/router.d.ts +0 -578
- package/dist/src/referral/user/service.d.ts +0 -21
- package/dist/src/referral-depth-config/admin/dto.schemas.d.ts +0 -203
- package/dist/src/referral-depth-config/admin/router.d.ts +0 -643
- package/dist/src/referral-depth-config/admin/service.d.ts +0 -38
- package/dist/src/referral-depth-config/db.schemas.d.ts +0 -176
- package/dist/src/referral-depth-config/errors/index.d.ts +0 -11
- package/dist/src/referral-depth-config/errors/locales/zh.d.ts +0 -10
- package/dist/src/referral-depth-config/internal/service.d.ts +0 -4
- package/dist/src/referral-depth-config/permissions.d.ts +0 -8
- package/dist/src/referral-depth-config/schema.d.ts +0 -99
- package/dist/src/server-test/errors/index.d.ts +0 -10
- package/dist/src/server-test/errors/locales/zh.d.ts +0 -9
- package/dist/src/server-test/index.d.ts +0 -486
- package/dist/src/shipping-address/admin/dto.schemas.d.ts +0 -289
- package/dist/src/shipping-address/admin/router.d.ts +0 -504
- package/dist/src/shipping-address/admin/service.d.ts +0 -17
- package/dist/src/shipping-address/db.schemas.d.ts +0 -278
- package/dist/src/shipping-address/errors/index.d.ts +0 -12
- package/dist/src/shipping-address/errors/locales/zh.d.ts +0 -11
- package/dist/src/shipping-address/index.d.ts +0 -7
- package/dist/src/shipping-address/internal/service.d.ts +0 -15
- package/dist/src/shipping-address/permissions.d.ts +0 -4
- package/dist/src/shipping-address/schema.d.ts +0 -150
- package/dist/src/shipping-address/user/dto.schemas.d.ts +0 -303
- package/dist/src/shipping-address/user/router.d.ts +0 -621
- package/dist/src/shipping-address/user/service.d.ts +0 -68
- package/dist/src/sms/index.d.ts +0 -5
- package/dist/src/team/admin/dto.schemas.d.ts +0 -2198
- package/dist/src/team/admin/router.d.ts +0 -646
- package/dist/src/team/admin/service.d.ts +0 -6
- package/dist/src/team/errors/index.d.ts +0 -13
- package/dist/src/team/errors/locales/zh.d.ts +0 -12
- package/dist/src/team/index.d.ts +0 -8
- package/dist/src/team/internal/service.d.ts +0 -6
- package/dist/src/team/permissions.d.ts +0 -7
- package/dist/src/team/user/dto.schemas.d.ts +0 -1987
- package/dist/src/team/user/router.d.ts +0 -734
- package/dist/src/team/user/service.d.ts +0 -10
- package/dist/src/trade-market/admin/dto.schemas.d.ts +0 -4764
- package/dist/src/trade-market/admin/router.d.ts +0 -1334
- package/dist/src/trade-market/admin/service.d.ts +0 -646
- package/dist/src/trade-market/db.schemas.d.ts +0 -1338
- package/dist/src/trade-market/errors/index.d.ts +0 -23
- package/dist/src/trade-market/errors/locales/zh.d.ts +0 -22
- package/dist/src/trade-market/index.d.ts +0 -8
- package/dist/src/trade-market/internal/service.d.ts +0 -564
- package/dist/src/trade-market/permissions.d.ts +0 -5
- package/dist/src/trade-market/schema.d.ts +0 -708
- package/dist/src/trade-market/user/dto.schemas.d.ts +0 -1394
- package/dist/src/trade-market/user/router.d.ts +0 -754
- package/dist/src/trade-market/user/service.d.ts +0 -471
- package/dist/src/transfer/admin/dto.schemas.d.ts +0 -396
- package/dist/src/transfer/admin/router.d.ts +0 -506
- package/dist/src/transfer/admin/service.d.ts +0 -56
- package/dist/src/transfer/db.schemas.d.ts +0 -386
- package/dist/src/transfer/errors/index.d.ts +0 -32
- package/dist/src/transfer/errors/locales/zh.d.ts +0 -19
- package/dist/src/transfer/index.d.ts +0 -11
- package/dist/src/transfer/internal/service.d.ts +0 -8
- package/dist/src/transfer/permissions.d.ts +0 -8
- package/dist/src/transfer/schema.d.ts +0 -204
- package/dist/src/transfer/user/dto.schemas.d.ts +0 -416
- package/dist/src/transfer/user/router.d.ts +0 -514
- package/dist/src/transfer/user/service.d.ts +0 -67
- package/dist/src/user/admin/dto.schemas.d.ts +0 -1439
- package/dist/src/user/admin/router.d.ts +0 -853
- package/dist/src/user/admin/service.d.ts +0 -164
- package/dist/src/user/db.schemas.d.ts +0 -1038
- package/dist/src/user/errors/index.d.ts +0 -40
- package/dist/src/user/errors/locales/zh.d.ts +0 -23
- package/dist/src/user/index.d.ts +0 -9
- package/dist/src/user/internal/service.d.ts +0 -22
- package/dist/src/user/permissions.d.ts +0 -7
- package/dist/src/user/schema.d.ts +0 -541
- package/dist/src/user/user/dto.schemas.d.ts +0 -14
- package/dist/src/user/user/router.d.ts +0 -558
- package/dist/src/user/user/service.d.ts +0 -89
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +0 -625
- package/dist/src/user-kyc/admin/router.d.ts +0 -666
- package/dist/src/user-kyc/admin/service.d.ts +0 -89
- package/dist/src/user-kyc/db.schemas.d.ts +0 -896
- package/dist/src/user-kyc/errors/index.d.ts +0 -21
- package/dist/src/user-kyc/errors/locales/zh.d.ts +0 -14
- package/dist/src/user-kyc/index.d.ts +0 -10
- package/dist/src/user-kyc/internal/service.d.ts +0 -9
- package/dist/src/user-kyc/permissions.d.ts +0 -6
- package/dist/src/user-kyc/schema.d.ts +0 -474
- package/dist/src/user-kyc/user/dto.schemas.d.ts +0 -314
- package/dist/src/user-kyc/user/router.d.ts +0 -602
- package/dist/src/user-kyc/user/service.d.ts +0 -64
- package/dist/src/user-security/admin/dto.schemas.d.ts +0 -8
- package/dist/src/user-security/admin/router.d.ts +0 -490
- package/dist/src/user-security/admin/service.d.ts +0 -6
- package/dist/src/user-security/db.schemas.d.ts +0 -414
- package/dist/src/user-security/index.d.ts +0 -8
- package/dist/src/user-security/internal/service.d.ts +0 -15
- package/dist/src/user-security/schema.d.ts +0 -215
- package/dist/src/user-security/user/dto.schemas.d.ts +0 -21
- package/dist/src/user-security/user/router.d.ts +0 -547
- package/dist/src/user-security/user/service.d.ts +0 -15
- package/dist/src/utils/date.d.ts +0 -21
- package/dist/src/utils/index.d.ts +0 -4
- package/dist/src/utils/order.d.ts +0 -6
- package/dist/src/utils/pagination.d.ts +0 -113
- package/dist/src/utils/password.d.ts +0 -8
- package/dist/src/wallet/admin/dto.schemas.d.ts +0 -349
- package/dist/src/wallet/admin/router.d.ts +0 -581
- package/dist/src/wallet/admin/service.d.ts +0 -65
- package/dist/src/wallet/db.schemas.d.ts +0 -278
- package/dist/src/wallet/errors/index.d.ts +0 -10
- package/dist/src/wallet/errors/locales/zh.d.ts +0 -9
- package/dist/src/wallet/index.d.ts +0 -11
- package/dist/src/wallet/internal/service.d.ts +0 -177
- package/dist/src/wallet/permissions.d.ts +0 -8
- package/dist/src/wallet/schema.d.ts +0 -152
- package/dist/src/wallet/seed.d.ts +0 -1
- package/dist/src/wallet/user/dto.schemas.d.ts +0 -372
- package/dist/src/wallet/user/router.d.ts +0 -544
- package/dist/src/wallet/user/service.d.ts +0 -75
- package/dist/src/wallet-type/admin/dto.schemas.d.ts +0 -83
- package/dist/src/wallet-type/admin/router.d.ts +0 -741
- package/dist/src/wallet-type/admin/service.d.ts +0 -109
- package/dist/src/wallet-type/db.schemas.d.ts +0 -278
- package/dist/src/wallet-type/errors/index.d.ts +0 -15
- package/dist/src/wallet-type/errors/locales/zh.d.ts +0 -14
- package/dist/src/wallet-type/index.d.ts +0 -10
- package/dist/src/wallet-type/internal/service.d.ts +0 -256
- package/dist/src/wallet-type/permissions.d.ts +0 -4
- package/dist/src/wallet-type/schema.d.ts +0 -199
- package/dist/src/wallet-type/seed.d.ts +0 -1
- package/dist/src/wallet-type/user/dto.schemas.d.ts +0 -62
- package/dist/src/wallet-type/user/router.d.ts +0 -481
- package/dist/src/wallet-type/user/service.d.ts +0 -24
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +0 -1242
- package/dist/src/welfare-cycle/admin/router.d.ts +0 -1805
- package/dist/src/welfare-cycle/admin/service.d.ts +0 -1031
- package/dist/src/welfare-cycle/cron.d.ts +0 -7
- package/dist/src/welfare-cycle/db.schemas.d.ts +0 -2404
- package/dist/src/welfare-cycle/errors/index.d.ts +0 -27
- package/dist/src/welfare-cycle/errors/locales/zh.d.ts +0 -26
- package/dist/src/welfare-cycle/index.d.ts +0 -7
- package/dist/src/welfare-cycle/internal/service.d.ts +0 -135
- package/dist/src/welfare-cycle/permissions.d.ts +0 -6
- package/dist/src/welfare-cycle/schema.d.ts +0 -1272
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +0 -2073
- package/dist/src/welfare-cycle/user/router.d.ts +0 -808
- package/dist/src/welfare-cycle/user/service.d.ts +0 -192
- package/dist/src/withdraw/admin/dto.schemas.d.ts +0 -902
- package/dist/src/withdraw/admin/router.d.ts +0 -659
- package/dist/src/withdraw/admin/service.d.ts +0 -83
- package/dist/src/withdraw/db.schemas.d.ts +0 -584
- package/dist/src/withdraw/errors/index.d.ts +0 -45
- package/dist/src/withdraw/errors/locales/zh.d.ts +0 -24
- package/dist/src/withdraw/index.d.ts +0 -8
- package/dist/src/withdraw/internal/index.d.ts +0 -1
- package/dist/src/withdraw/internal/service.d.ts +0 -10
- package/dist/src/withdraw/permissions.d.ts +0 -9
- package/dist/src/withdraw/schema.d.ts +0 -307
- package/dist/src/withdraw/user/dto.schemas.d.ts +0 -1508
- package/dist/src/withdraw/user/index.d.ts +0 -3
- package/dist/src/withdraw/user/router.d.ts +0 -649
- package/dist/src/withdraw/user/service.d.ts +0 -66
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Elysia from
|
|
2
|
-
export declare const
|
|
1
|
+
import Elysia from 'elysia';
|
|
2
|
+
export declare const contentVideoAdminRouter: Elysia<"/content_videos", {
|
|
3
3
|
decorator: {};
|
|
4
4
|
store: {};
|
|
5
5
|
derive: {};
|
|
@@ -41,7 +41,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
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 |
|
|
44
|
+
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 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -105,66 +105,66 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
105
105
|
readonly 511: "Network Authentication Required";
|
|
106
106
|
}[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" ? {
|
|
107
107
|
readonly Continue: 100;
|
|
108
|
-
readonly
|
|
108
|
+
readonly 'Switching Protocols': 101;
|
|
109
109
|
readonly Processing: 102;
|
|
110
|
-
readonly
|
|
110
|
+
readonly 'Early Hints': 103;
|
|
111
111
|
readonly OK: 200;
|
|
112
112
|
readonly Created: 201;
|
|
113
113
|
readonly Accepted: 202;
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
116
|
-
readonly
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
114
|
+
readonly 'Non-Authoritative Information': 203;
|
|
115
|
+
readonly 'No Content': 204;
|
|
116
|
+
readonly 'Reset Content': 205;
|
|
117
|
+
readonly 'Partial Content': 206;
|
|
118
|
+
readonly 'Multi-Status': 207;
|
|
119
|
+
readonly 'Already Reported': 208;
|
|
120
|
+
readonly 'Multiple Choices': 300;
|
|
121
|
+
readonly 'Moved Permanently': 301;
|
|
122
122
|
readonly Found: 302;
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
123
|
+
readonly 'See Other': 303;
|
|
124
|
+
readonly 'Not Modified': 304;
|
|
125
|
+
readonly 'Temporary Redirect': 307;
|
|
126
|
+
readonly 'Permanent Redirect': 308;
|
|
127
|
+
readonly 'Bad Request': 400;
|
|
128
128
|
readonly Unauthorized: 401;
|
|
129
|
-
readonly
|
|
129
|
+
readonly 'Payment Required': 402;
|
|
130
130
|
readonly Forbidden: 403;
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
135
|
-
readonly
|
|
131
|
+
readonly 'Not Found': 404;
|
|
132
|
+
readonly 'Method Not Allowed': 405;
|
|
133
|
+
readonly 'Not Acceptable': 406;
|
|
134
|
+
readonly 'Proxy Authentication Required': 407;
|
|
135
|
+
readonly 'Request Timeout': 408;
|
|
136
136
|
readonly Conflict: 409;
|
|
137
137
|
readonly Gone: 410;
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
138
|
+
readonly 'Length Required': 411;
|
|
139
|
+
readonly 'Precondition Failed': 412;
|
|
140
|
+
readonly 'Payload Too Large': 413;
|
|
141
|
+
readonly 'URI Too Long': 414;
|
|
142
|
+
readonly 'Unsupported Media Type': 415;
|
|
143
|
+
readonly 'Range Not Satisfiable': 416;
|
|
144
|
+
readonly 'Expectation Failed': 417;
|
|
145
145
|
readonly "I'm a teapot": 418;
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
146
|
+
readonly 'Enhance Your Calm': 420;
|
|
147
|
+
readonly 'Misdirected Request': 421;
|
|
148
|
+
readonly 'Unprocessable Content': 422;
|
|
149
149
|
readonly Locked: 423;
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
readonly
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
readonly
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
167
|
-
readonly
|
|
150
|
+
readonly 'Failed Dependency': 424;
|
|
151
|
+
readonly 'Too Early': 425;
|
|
152
|
+
readonly 'Upgrade Required': 426;
|
|
153
|
+
readonly 'Precondition Required': 428;
|
|
154
|
+
readonly 'Too Many Requests': 429;
|
|
155
|
+
readonly 'Request Header Fields Too Large': 431;
|
|
156
|
+
readonly 'Unavailable For Legal Reasons': 451;
|
|
157
|
+
readonly 'Internal Server Error': 500;
|
|
158
|
+
readonly 'Not Implemented': 501;
|
|
159
|
+
readonly 'Bad Gateway': 502;
|
|
160
|
+
readonly 'Service Unavailable': 503;
|
|
161
|
+
readonly 'Gateway Timeout': 504;
|
|
162
|
+
readonly 'HTTP Version Not Supported': 505;
|
|
163
|
+
readonly 'Variant Also Negotiates': 506;
|
|
164
|
+
readonly 'Insufficient Storage': 507;
|
|
165
|
+
readonly 'Loop Detected': 508;
|
|
166
|
+
readonly 'Not Extended': 510;
|
|
167
|
+
readonly 'Network Authentication Required': 511;
|
|
168
168
|
}[Code] : Code>;
|
|
169
169
|
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
|
|
170
170
|
user: {
|
|
@@ -174,16 +174,16 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
174
174
|
email: string;
|
|
175
175
|
emailVerified: boolean;
|
|
176
176
|
name: string;
|
|
177
|
-
image?: string | null | undefined
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
image?: string | null | undefined;
|
|
178
|
+
banExpires?: Date | null | undefined;
|
|
179
|
+
banReason?: string | null | undefined;
|
|
180
|
+
banned: boolean | null | undefined;
|
|
180
181
|
displayUsername?: string | null | undefined;
|
|
181
182
|
phoneNumber?: string | null | undefined;
|
|
182
183
|
phoneNumberVerified?: boolean | null | undefined;
|
|
183
|
-
banned: boolean | null | undefined;
|
|
184
184
|
role?: string | null | undefined;
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
186
|
+
username?: string | null | undefined;
|
|
187
187
|
};
|
|
188
188
|
session: {
|
|
189
189
|
id: string;
|
|
@@ -192,8 +192,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
192
192
|
userId: string;
|
|
193
193
|
expiresAt: Date;
|
|
194
194
|
token: string;
|
|
195
|
-
ipAddress?: string | null | undefined
|
|
196
|
-
userAgent?: string | null | undefined
|
|
195
|
+
ipAddress?: string | null | undefined;
|
|
196
|
+
userAgent?: string | null | undefined;
|
|
197
197
|
impersonatedBy?: string | null | undefined;
|
|
198
198
|
};
|
|
199
199
|
}>;
|
|
@@ -217,7 +217,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
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 |
|
|
220
|
+
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 ? {
|
|
221
221
|
readonly 100: "Continue";
|
|
222
222
|
readonly 101: "Switching Protocols";
|
|
223
223
|
readonly 102: "Processing";
|
|
@@ -281,66 +281,66 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
281
281
|
readonly 511: "Network Authentication Required";
|
|
282
282
|
}[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" ? {
|
|
283
283
|
readonly Continue: 100;
|
|
284
|
-
readonly
|
|
284
|
+
readonly 'Switching Protocols': 101;
|
|
285
285
|
readonly Processing: 102;
|
|
286
|
-
readonly
|
|
286
|
+
readonly 'Early Hints': 103;
|
|
287
287
|
readonly OK: 200;
|
|
288
288
|
readonly Created: 201;
|
|
289
289
|
readonly Accepted: 202;
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
290
|
+
readonly 'Non-Authoritative Information': 203;
|
|
291
|
+
readonly 'No Content': 204;
|
|
292
|
+
readonly 'Reset Content': 205;
|
|
293
|
+
readonly 'Partial Content': 206;
|
|
294
|
+
readonly 'Multi-Status': 207;
|
|
295
|
+
readonly 'Already Reported': 208;
|
|
296
|
+
readonly 'Multiple Choices': 300;
|
|
297
|
+
readonly 'Moved Permanently': 301;
|
|
298
298
|
readonly Found: 302;
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
303
|
-
readonly
|
|
299
|
+
readonly 'See Other': 303;
|
|
300
|
+
readonly 'Not Modified': 304;
|
|
301
|
+
readonly 'Temporary Redirect': 307;
|
|
302
|
+
readonly 'Permanent Redirect': 308;
|
|
303
|
+
readonly 'Bad Request': 400;
|
|
304
304
|
readonly Unauthorized: 401;
|
|
305
|
-
readonly
|
|
305
|
+
readonly 'Payment Required': 402;
|
|
306
306
|
readonly Forbidden: 403;
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
readonly
|
|
311
|
-
readonly
|
|
307
|
+
readonly 'Not Found': 404;
|
|
308
|
+
readonly 'Method Not Allowed': 405;
|
|
309
|
+
readonly 'Not Acceptable': 406;
|
|
310
|
+
readonly 'Proxy Authentication Required': 407;
|
|
311
|
+
readonly 'Request Timeout': 408;
|
|
312
312
|
readonly Conflict: 409;
|
|
313
313
|
readonly Gone: 410;
|
|
314
|
-
readonly
|
|
315
|
-
readonly
|
|
316
|
-
readonly
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
314
|
+
readonly 'Length Required': 411;
|
|
315
|
+
readonly 'Precondition Failed': 412;
|
|
316
|
+
readonly 'Payload Too Large': 413;
|
|
317
|
+
readonly 'URI Too Long': 414;
|
|
318
|
+
readonly 'Unsupported Media Type': 415;
|
|
319
|
+
readonly 'Range Not Satisfiable': 416;
|
|
320
|
+
readonly 'Expectation Failed': 417;
|
|
321
321
|
readonly "I'm a teapot": 418;
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
324
|
-
readonly
|
|
322
|
+
readonly 'Enhance Your Calm': 420;
|
|
323
|
+
readonly 'Misdirected Request': 421;
|
|
324
|
+
readonly 'Unprocessable Content': 422;
|
|
325
325
|
readonly Locked: 423;
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
readonly
|
|
333
|
-
readonly
|
|
334
|
-
readonly
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
339
|
-
readonly
|
|
340
|
-
readonly
|
|
341
|
-
readonly
|
|
342
|
-
readonly
|
|
343
|
-
readonly
|
|
326
|
+
readonly 'Failed Dependency': 424;
|
|
327
|
+
readonly 'Too Early': 425;
|
|
328
|
+
readonly 'Upgrade Required': 426;
|
|
329
|
+
readonly 'Precondition Required': 428;
|
|
330
|
+
readonly 'Too Many Requests': 429;
|
|
331
|
+
readonly 'Request Header Fields Too Large': 431;
|
|
332
|
+
readonly 'Unavailable For Legal Reasons': 451;
|
|
333
|
+
readonly 'Internal Server Error': 500;
|
|
334
|
+
readonly 'Not Implemented': 501;
|
|
335
|
+
readonly 'Bad Gateway': 502;
|
|
336
|
+
readonly 'Service Unavailable': 503;
|
|
337
|
+
readonly 'Gateway Timeout': 504;
|
|
338
|
+
readonly 'HTTP Version Not Supported': 505;
|
|
339
|
+
readonly 'Variant Also Negotiates': 506;
|
|
340
|
+
readonly 'Insufficient Storage': 507;
|
|
341
|
+
readonly 'Loop Detected': 508;
|
|
342
|
+
readonly 'Not Extended': 510;
|
|
343
|
+
readonly 'Network Authentication Required': 511;
|
|
344
344
|
}[Code] : Code>;
|
|
345
345
|
}) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
|
|
346
346
|
user: {
|
|
@@ -350,16 +350,16 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
350
350
|
email: string;
|
|
351
351
|
emailVerified: boolean;
|
|
352
352
|
name: string;
|
|
353
|
-
image?: string | null | undefined
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
image?: string | null | undefined;
|
|
354
|
+
banExpires?: Date | null | undefined;
|
|
355
|
+
banReason?: string | null | undefined;
|
|
356
|
+
banned: boolean | null | undefined;
|
|
356
357
|
displayUsername?: string | null | undefined;
|
|
357
358
|
phoneNumber?: string | null | undefined;
|
|
358
359
|
phoneNumberVerified?: boolean | null | undefined;
|
|
359
|
-
banned: boolean | null | undefined;
|
|
360
360
|
role?: string | null | undefined;
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
362
|
+
username?: string | null | undefined;
|
|
363
363
|
};
|
|
364
364
|
session: {
|
|
365
365
|
id: string;
|
|
@@ -368,8 +368,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
368
368
|
userId: string;
|
|
369
369
|
expiresAt: Date;
|
|
370
370
|
token: string;
|
|
371
|
-
ipAddress?: string | null | undefined
|
|
372
|
-
userAgent?: string | null | undefined
|
|
371
|
+
ipAddress?: string | null | undefined;
|
|
372
|
+
userAgent?: string | null | undefined;
|
|
373
373
|
impersonatedBy?: string | null | undefined;
|
|
374
374
|
};
|
|
375
375
|
}>;
|
|
@@ -378,34 +378,60 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
378
378
|
parser: {};
|
|
379
379
|
response: {};
|
|
380
380
|
}, {
|
|
381
|
-
|
|
381
|
+
content_videos: {};
|
|
382
382
|
} & {
|
|
383
|
-
|
|
383
|
+
content_videos: {
|
|
384
384
|
post: {
|
|
385
385
|
body: {
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
title: string;
|
|
387
|
+
description?: string | null | undefined;
|
|
388
|
+
videoFileId: string;
|
|
389
|
+
coverFileId?: string | undefined;
|
|
388
390
|
status?: "archived" | "draft" | "published" | undefined;
|
|
391
|
+
isEnabled?: boolean | undefined;
|
|
389
392
|
sortOrder?: number | undefined;
|
|
390
|
-
|
|
391
|
-
summary?: string | null | undefined;
|
|
392
|
-
categoryId?: string | undefined;
|
|
393
|
-
isPinned?: boolean | undefined;
|
|
394
|
-
hasVideo?: boolean | undefined;
|
|
395
|
-
requireReadConfirmation?: boolean | undefined;
|
|
396
|
-
externalUrl?: string | null | undefined;
|
|
393
|
+
durationSeconds?: number | null | undefined;
|
|
397
394
|
publishedAt?: Date | null | undefined;
|
|
398
|
-
thumbnailId?: string | null | undefined;
|
|
399
|
-
attachmentIds?: string[] | null | undefined;
|
|
400
|
-
title: string;
|
|
401
|
-
content: string;
|
|
402
395
|
};
|
|
403
396
|
params: {};
|
|
404
397
|
query: {};
|
|
405
398
|
headers: {};
|
|
406
399
|
response: {
|
|
400
|
+
200: {
|
|
401
|
+
coverFile?: {
|
|
402
|
+
id: string;
|
|
403
|
+
fileName: string | null;
|
|
404
|
+
mimeType: string | null;
|
|
405
|
+
fileSize: number | null;
|
|
406
|
+
publicUrl: string | null;
|
|
407
|
+
} | undefined;
|
|
408
|
+
coverFileId: string | null;
|
|
409
|
+
coverUrl?: string | undefined;
|
|
410
|
+
createdAt: Date;
|
|
411
|
+
createdBy: string;
|
|
412
|
+
description: string | null;
|
|
413
|
+
durationSeconds: number | null;
|
|
414
|
+
id: string;
|
|
415
|
+
isEnabled: boolean;
|
|
416
|
+
publishedAt: Date | null;
|
|
417
|
+
sortOrder: number;
|
|
418
|
+
status: "archived" | "draft" | "published";
|
|
419
|
+
title: string;
|
|
420
|
+
updatedAt: Date;
|
|
421
|
+
videoFile?: {
|
|
422
|
+
id: string;
|
|
423
|
+
fileName: string | null;
|
|
424
|
+
mimeType: string | null;
|
|
425
|
+
fileSize: number | null;
|
|
426
|
+
publicUrl: string | null;
|
|
427
|
+
} | undefined;
|
|
428
|
+
videoFileId: string;
|
|
429
|
+
videoUrl?: string | undefined;
|
|
430
|
+
};
|
|
431
|
+
401: "Unauthorized";
|
|
432
|
+
403: "Forbidden: Admins only";
|
|
407
433
|
422: {
|
|
408
|
-
type:
|
|
434
|
+
type: 'validation';
|
|
409
435
|
on: string;
|
|
410
436
|
summary?: string;
|
|
411
437
|
message?: string;
|
|
@@ -413,63 +439,56 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
413
439
|
property?: string;
|
|
414
440
|
expected?: string;
|
|
415
441
|
};
|
|
416
|
-
401: "Unauthorized";
|
|
417
|
-
403: "Forbidden: Admins only";
|
|
418
442
|
};
|
|
419
443
|
};
|
|
420
444
|
};
|
|
421
445
|
} & {
|
|
422
|
-
|
|
446
|
+
content_videos: {
|
|
423
447
|
get: {
|
|
424
448
|
body: {};
|
|
425
449
|
params: {};
|
|
426
450
|
query: {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
isPinned?: boolean | undefined;
|
|
430
|
-
requireReadConfirmation?: boolean | undefined;
|
|
451
|
+
isEnabled?: boolean | undefined;
|
|
452
|
+
keyword?: string | undefined;
|
|
431
453
|
limit?: number | undefined;
|
|
432
454
|
offset?: number | undefined;
|
|
433
|
-
pageSize?: number | undefined;
|
|
434
455
|
pageIndex?: number | undefined;
|
|
456
|
+
pageSize?: number | undefined;
|
|
457
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
435
458
|
};
|
|
436
459
|
headers: {};
|
|
437
460
|
response: {
|
|
438
461
|
200: {
|
|
439
462
|
data: {
|
|
440
|
-
|
|
463
|
+
coverFile?: {
|
|
464
|
+
id: string;
|
|
465
|
+
fileName: string | null;
|
|
466
|
+
mimeType: string | null;
|
|
467
|
+
fileSize: number | null;
|
|
468
|
+
publicUrl: string | null;
|
|
469
|
+
} | undefined;
|
|
470
|
+
coverFileId: string | null;
|
|
471
|
+
coverUrl?: string | undefined;
|
|
441
472
|
createdAt: Date;
|
|
442
|
-
updatedAt: Date;
|
|
443
|
-
expiresAt: Date | null;
|
|
444
|
-
scope: string[];
|
|
445
|
-
deletedAt: Date | null;
|
|
446
|
-
status: "archived" | "draft" | "published";
|
|
447
|
-
sortOrder: number;
|
|
448
|
-
isHot: boolean;
|
|
449
473
|
createdBy: string;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
isPinned: boolean;
|
|
455
|
-
hasVideo: boolean;
|
|
456
|
-
requireReadConfirmation: boolean;
|
|
457
|
-
externalUrl: string | null;
|
|
458
|
-
viewCount: number;
|
|
474
|
+
description: string | null;
|
|
475
|
+
durationSeconds: number | null;
|
|
476
|
+
id: string;
|
|
477
|
+
isEnabled: boolean;
|
|
459
478
|
publishedAt: Date | null;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
479
|
+
sortOrder: number;
|
|
480
|
+
status: "archived" | "draft" | "published";
|
|
481
|
+
title: string;
|
|
482
|
+
updatedAt: Date;
|
|
483
|
+
videoFile?: {
|
|
463
484
|
id: string;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
icon: string | null;
|
|
472
|
-
};
|
|
485
|
+
fileName: string | null;
|
|
486
|
+
mimeType: string | null;
|
|
487
|
+
fileSize: number | null;
|
|
488
|
+
publicUrl: string | null;
|
|
489
|
+
} | undefined;
|
|
490
|
+
videoFileId: string;
|
|
491
|
+
videoUrl?: string | undefined;
|
|
473
492
|
}[];
|
|
474
493
|
pagination: {
|
|
475
494
|
pageSize: number;
|
|
@@ -479,8 +498,10 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
479
498
|
hasNextPage: boolean;
|
|
480
499
|
};
|
|
481
500
|
};
|
|
501
|
+
401: "Unauthorized";
|
|
502
|
+
403: "Forbidden: Admins only";
|
|
482
503
|
422: {
|
|
483
|
-
type:
|
|
504
|
+
type: 'validation';
|
|
484
505
|
on: string;
|
|
485
506
|
summary?: string;
|
|
486
507
|
message?: string;
|
|
@@ -488,13 +509,11 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
488
509
|
property?: string;
|
|
489
510
|
expected?: string;
|
|
490
511
|
};
|
|
491
|
-
401: "Unauthorized";
|
|
492
|
-
403: "Forbidden: Admins only";
|
|
493
512
|
};
|
|
494
513
|
};
|
|
495
514
|
};
|
|
496
515
|
} & {
|
|
497
|
-
|
|
516
|
+
content_videos: {
|
|
498
517
|
":id": {
|
|
499
518
|
get: {
|
|
500
519
|
body: {};
|
|
@@ -505,74 +524,40 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
505
524
|
headers: {};
|
|
506
525
|
response: {
|
|
507
526
|
200: {
|
|
508
|
-
|
|
527
|
+
coverFile?: {
|
|
528
|
+
id: string;
|
|
529
|
+
fileName: string | null;
|
|
530
|
+
mimeType: string | null;
|
|
531
|
+
fileSize: number | null;
|
|
532
|
+
publicUrl: string | null;
|
|
533
|
+
} | undefined;
|
|
534
|
+
coverFileId: string | null;
|
|
535
|
+
coverUrl?: string | undefined;
|
|
509
536
|
createdAt: Date;
|
|
510
|
-
updatedAt: Date;
|
|
511
|
-
expiresAt: Date | null;
|
|
512
|
-
scope: string[];
|
|
513
|
-
deletedAt: Date | null;
|
|
514
|
-
status: "archived" | "draft" | "published";
|
|
515
|
-
sortOrder: number;
|
|
516
|
-
isHot: boolean;
|
|
517
537
|
createdBy: string;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
isPinned: boolean;
|
|
523
|
-
hasVideo: boolean;
|
|
524
|
-
requireReadConfirmation: boolean;
|
|
525
|
-
externalUrl: string | null;
|
|
526
|
-
viewCount: number;
|
|
538
|
+
description: string | null;
|
|
539
|
+
durationSeconds: number | null;
|
|
540
|
+
id: string;
|
|
541
|
+
isEnabled: boolean;
|
|
527
542
|
publishedAt: Date | null;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
createdAt: Date;
|
|
534
|
-
updatedAt: Date;
|
|
535
|
-
description: string | null;
|
|
536
|
-
isActive: boolean;
|
|
537
|
-
sortOrder: number;
|
|
538
|
-
slug: string | null;
|
|
539
|
-
icon: string | null;
|
|
540
|
-
};
|
|
541
|
-
thumbnail: {
|
|
543
|
+
sortOrder: number;
|
|
544
|
+
status: "archived" | "draft" | "published";
|
|
545
|
+
title: string;
|
|
546
|
+
updatedAt: Date;
|
|
547
|
+
videoFile?: {
|
|
542
548
|
id: string;
|
|
543
|
-
createdAt: Date;
|
|
544
|
-
updatedAt: Date;
|
|
545
|
-
deletedAt: Date | null;
|
|
546
549
|
fileName: string | null;
|
|
547
|
-
fileSize: number | null;
|
|
548
550
|
mimeType: string | null;
|
|
549
|
-
|
|
550
|
-
fileHash: string | null;
|
|
551
|
-
s3Bucket: string;
|
|
552
|
-
s3Key: string;
|
|
553
|
-
s3Region: string;
|
|
554
|
-
s3ETag: string | null;
|
|
555
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
556
|
-
businessId: string | null;
|
|
557
|
-
businessMetadata: string | null;
|
|
558
|
-
ownerId: string;
|
|
559
|
-
accessControl: "private" | "restricted" | "public" | null;
|
|
560
|
-
status: "uploading" | "active" | "archived" | "pending_deletion" | null;
|
|
551
|
+
fileSize: number | null;
|
|
561
552
|
publicUrl: string | null;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
uploadIpAddress: string | null;
|
|
566
|
-
downloadCount: number | null;
|
|
567
|
-
lastDownloadedAt: Date | null;
|
|
568
|
-
isVerified: boolean | null;
|
|
569
|
-
verifiedBy: string | null;
|
|
570
|
-
verifiedAt: Date | null;
|
|
571
|
-
verificationNote: string | null;
|
|
572
|
-
} | null;
|
|
553
|
+
} | undefined;
|
|
554
|
+
videoFileId: string;
|
|
555
|
+
videoUrl?: string | undefined;
|
|
573
556
|
};
|
|
557
|
+
401: "Unauthorized";
|
|
558
|
+
403: "Forbidden: Admins only";
|
|
574
559
|
422: {
|
|
575
|
-
type:
|
|
560
|
+
type: 'validation';
|
|
576
561
|
on: string;
|
|
577
562
|
summary?: string;
|
|
578
563
|
message?: string;
|
|
@@ -580,33 +565,24 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
580
565
|
property?: string;
|
|
581
566
|
expected?: string;
|
|
582
567
|
};
|
|
583
|
-
401: "Unauthorized";
|
|
584
|
-
403: "Forbidden: Admins only";
|
|
585
568
|
};
|
|
586
569
|
};
|
|
587
570
|
};
|
|
588
571
|
};
|
|
589
572
|
} & {
|
|
590
|
-
|
|
573
|
+
content_videos: {
|
|
591
574
|
":id": {
|
|
592
575
|
patch: {
|
|
593
576
|
body: {
|
|
594
|
-
|
|
595
|
-
|
|
577
|
+
title?: string | undefined;
|
|
578
|
+
description?: string | null | undefined;
|
|
579
|
+
videoFileId?: string | undefined;
|
|
580
|
+
coverFileId?: string | undefined;
|
|
596
581
|
status?: "archived" | "draft" | "published" | undefined;
|
|
582
|
+
isEnabled?: boolean | undefined;
|
|
597
583
|
sortOrder?: number | undefined;
|
|
598
|
-
|
|
599
|
-
title?: string | undefined;
|
|
600
|
-
content?: string | undefined;
|
|
601
|
-
summary?: string | null | undefined;
|
|
602
|
-
categoryId?: string | undefined;
|
|
603
|
-
isPinned?: boolean | undefined;
|
|
604
|
-
hasVideo?: boolean | undefined;
|
|
605
|
-
requireReadConfirmation?: boolean | undefined;
|
|
606
|
-
externalUrl?: string | null | undefined;
|
|
584
|
+
durationSeconds?: number | null | undefined;
|
|
607
585
|
publishedAt?: Date | null | undefined;
|
|
608
|
-
thumbnailId?: string | null | undefined;
|
|
609
|
-
attachmentIds?: string[] | null | undefined;
|
|
610
586
|
};
|
|
611
587
|
params: {
|
|
612
588
|
id: string;
|
|
@@ -614,37 +590,41 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
614
590
|
query: {};
|
|
615
591
|
headers: {};
|
|
616
592
|
response: {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
593
|
+
200: {
|
|
594
|
+
coverFile?: {
|
|
595
|
+
id: string;
|
|
596
|
+
fileName: string | null;
|
|
597
|
+
mimeType: string | null;
|
|
598
|
+
fileSize: number | null;
|
|
599
|
+
publicUrl: string | null;
|
|
600
|
+
} | undefined;
|
|
601
|
+
coverFileId: string | null;
|
|
602
|
+
coverUrl?: string | undefined;
|
|
603
|
+
createdAt: Date;
|
|
604
|
+
createdBy: string;
|
|
605
|
+
description: string | null;
|
|
606
|
+
durationSeconds: number | null;
|
|
607
|
+
id: string;
|
|
608
|
+
isEnabled: boolean;
|
|
609
|
+
publishedAt: Date | null;
|
|
610
|
+
sortOrder: number;
|
|
611
|
+
status: "archived" | "draft" | "published";
|
|
612
|
+
title: string;
|
|
613
|
+
updatedAt: Date;
|
|
614
|
+
videoFile?: {
|
|
615
|
+
id: string;
|
|
616
|
+
fileName: string | null;
|
|
617
|
+
mimeType: string | null;
|
|
618
|
+
fileSize: number | null;
|
|
619
|
+
publicUrl: string | null;
|
|
620
|
+
} | undefined;
|
|
621
|
+
videoFileId: string;
|
|
622
|
+
videoUrl?: string | undefined;
|
|
625
623
|
};
|
|
626
624
|
401: "Unauthorized";
|
|
627
625
|
403: "Forbidden: Admins only";
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
} & {
|
|
633
|
-
news: {
|
|
634
|
-
":id": {
|
|
635
|
-
delete: {
|
|
636
|
-
body: {};
|
|
637
|
-
params: {
|
|
638
|
-
id: string;
|
|
639
|
-
};
|
|
640
|
-
query: {};
|
|
641
|
-
headers: {};
|
|
642
|
-
response: {
|
|
643
|
-
200: {
|
|
644
|
-
success: boolean;
|
|
645
|
-
};
|
|
646
626
|
422: {
|
|
647
|
-
type:
|
|
627
|
+
type: 'validation';
|
|
648
628
|
on: string;
|
|
649
629
|
summary?: string;
|
|
650
630
|
message?: string;
|
|
@@ -652,29 +632,57 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
652
632
|
property?: string;
|
|
653
633
|
expected?: string;
|
|
654
634
|
};
|
|
655
|
-
401: "Unauthorized";
|
|
656
|
-
403: "Forbidden: Admins only";
|
|
657
635
|
};
|
|
658
636
|
};
|
|
659
637
|
};
|
|
660
638
|
};
|
|
661
639
|
} & {
|
|
662
|
-
|
|
640
|
+
content_videos: {
|
|
663
641
|
":id": {
|
|
664
|
-
|
|
642
|
+
publish: {
|
|
665
643
|
post: {
|
|
666
|
-
body: {
|
|
667
|
-
sortOrder?: number | undefined;
|
|
668
|
-
isPinned: boolean;
|
|
669
|
-
};
|
|
644
|
+
body: {};
|
|
670
645
|
params: {
|
|
671
646
|
id: string;
|
|
672
647
|
};
|
|
673
648
|
query: {};
|
|
674
649
|
headers: {};
|
|
675
650
|
response: {
|
|
651
|
+
200: {
|
|
652
|
+
coverFile?: {
|
|
653
|
+
id: string;
|
|
654
|
+
fileName: string | null;
|
|
655
|
+
mimeType: string | null;
|
|
656
|
+
fileSize: number | null;
|
|
657
|
+
publicUrl: string | null;
|
|
658
|
+
} | undefined;
|
|
659
|
+
coverFileId: string | null;
|
|
660
|
+
coverUrl?: string | undefined;
|
|
661
|
+
createdAt: Date;
|
|
662
|
+
createdBy: string;
|
|
663
|
+
description: string | null;
|
|
664
|
+
durationSeconds: number | null;
|
|
665
|
+
id: string;
|
|
666
|
+
isEnabled: boolean;
|
|
667
|
+
publishedAt: Date | null;
|
|
668
|
+
sortOrder: number;
|
|
669
|
+
status: "archived" | "draft" | "published";
|
|
670
|
+
title: string;
|
|
671
|
+
updatedAt: Date;
|
|
672
|
+
videoFile?: {
|
|
673
|
+
id: string;
|
|
674
|
+
fileName: string | null;
|
|
675
|
+
mimeType: string | null;
|
|
676
|
+
fileSize: number | null;
|
|
677
|
+
publicUrl: string | null;
|
|
678
|
+
} | undefined;
|
|
679
|
+
videoFileId: string;
|
|
680
|
+
videoUrl?: string | undefined;
|
|
681
|
+
};
|
|
682
|
+
401: "Unauthorized";
|
|
683
|
+
403: "Forbidden: Admins only";
|
|
676
684
|
422: {
|
|
677
|
-
type:
|
|
685
|
+
type: 'validation';
|
|
678
686
|
on: string;
|
|
679
687
|
summary?: string;
|
|
680
688
|
message?: string;
|
|
@@ -682,29 +690,58 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
682
690
|
property?: string;
|
|
683
691
|
expected?: string;
|
|
684
692
|
};
|
|
685
|
-
401: "Unauthorized";
|
|
686
|
-
403: "Forbidden: Admins only";
|
|
687
693
|
};
|
|
688
694
|
};
|
|
689
695
|
};
|
|
690
696
|
};
|
|
691
697
|
};
|
|
692
698
|
} & {
|
|
693
|
-
|
|
699
|
+
content_videos: {
|
|
694
700
|
":id": {
|
|
695
|
-
|
|
701
|
+
archive: {
|
|
696
702
|
post: {
|
|
697
|
-
body: {
|
|
698
|
-
isHot: boolean;
|
|
699
|
-
};
|
|
703
|
+
body: {};
|
|
700
704
|
params: {
|
|
701
705
|
id: string;
|
|
702
706
|
};
|
|
703
707
|
query: {};
|
|
704
708
|
headers: {};
|
|
705
709
|
response: {
|
|
710
|
+
200: {
|
|
711
|
+
coverFile?: {
|
|
712
|
+
id: string;
|
|
713
|
+
fileName: string | null;
|
|
714
|
+
mimeType: string | null;
|
|
715
|
+
fileSize: number | null;
|
|
716
|
+
publicUrl: string | null;
|
|
717
|
+
} | undefined;
|
|
718
|
+
coverFileId: string | null;
|
|
719
|
+
coverUrl?: string | undefined;
|
|
720
|
+
createdAt: Date;
|
|
721
|
+
createdBy: string;
|
|
722
|
+
description: string | null;
|
|
723
|
+
durationSeconds: number | null;
|
|
724
|
+
id: string;
|
|
725
|
+
isEnabled: boolean;
|
|
726
|
+
publishedAt: Date | null;
|
|
727
|
+
sortOrder: number;
|
|
728
|
+
status: "archived" | "draft" | "published";
|
|
729
|
+
title: string;
|
|
730
|
+
updatedAt: Date;
|
|
731
|
+
videoFile?: {
|
|
732
|
+
id: string;
|
|
733
|
+
fileName: string | null;
|
|
734
|
+
mimeType: string | null;
|
|
735
|
+
fileSize: number | null;
|
|
736
|
+
publicUrl: string | null;
|
|
737
|
+
} | undefined;
|
|
738
|
+
videoFileId: string;
|
|
739
|
+
videoUrl?: string | undefined;
|
|
740
|
+
};
|
|
741
|
+
401: "Unauthorized";
|
|
742
|
+
403: "Forbidden: Admins only";
|
|
706
743
|
422: {
|
|
707
|
-
type:
|
|
744
|
+
type: 'validation';
|
|
708
745
|
on: string;
|
|
709
746
|
summary?: string;
|
|
710
747
|
message?: string;
|
|
@@ -712,30 +749,36 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
712
749
|
property?: string;
|
|
713
750
|
expected?: string;
|
|
714
751
|
};
|
|
715
|
-
401: "Unauthorized";
|
|
716
|
-
403: "Forbidden: Admins only";
|
|
717
752
|
};
|
|
718
753
|
};
|
|
719
754
|
};
|
|
720
755
|
};
|
|
721
756
|
};
|
|
722
757
|
} & {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
758
|
+
content_videos: {
|
|
759
|
+
":id": {
|
|
760
|
+
delete: {
|
|
726
761
|
body: {};
|
|
727
|
-
params: {
|
|
762
|
+
params: {
|
|
763
|
+
id: string;
|
|
764
|
+
};
|
|
728
765
|
query: {};
|
|
729
766
|
headers: {};
|
|
730
767
|
response: {
|
|
731
768
|
200: {
|
|
732
|
-
|
|
733
|
-
published: number;
|
|
734
|
-
pinned: number;
|
|
735
|
-
requireConfirmation: number;
|
|
769
|
+
success: boolean;
|
|
736
770
|
};
|
|
737
771
|
401: "Unauthorized";
|
|
738
772
|
403: "Forbidden: Admins only";
|
|
773
|
+
422: {
|
|
774
|
+
type: 'validation';
|
|
775
|
+
on: string;
|
|
776
|
+
summary?: string;
|
|
777
|
+
message?: string;
|
|
778
|
+
found?: unknown;
|
|
779
|
+
property?: string;
|
|
780
|
+
expected?: string;
|
|
781
|
+
};
|
|
739
782
|
};
|
|
740
783
|
};
|
|
741
784
|
};
|
|
@@ -756,16 +799,16 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
756
799
|
email: string;
|
|
757
800
|
emailVerified: boolean;
|
|
758
801
|
name: string;
|
|
759
|
-
image?: string | null | undefined
|
|
760
|
-
|
|
761
|
-
|
|
802
|
+
image?: string | null | undefined;
|
|
803
|
+
banExpires?: Date | null | undefined;
|
|
804
|
+
banReason?: string | null | undefined;
|
|
805
|
+
banned: boolean | null | undefined;
|
|
762
806
|
displayUsername?: string | null | undefined;
|
|
763
807
|
phoneNumber?: string | null | undefined;
|
|
764
808
|
phoneNumberVerified?: boolean | null | undefined;
|
|
765
|
-
banned: boolean | null | undefined;
|
|
766
809
|
role?: string | null | undefined;
|
|
767
|
-
|
|
768
|
-
|
|
810
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
811
|
+
username?: string | null | undefined;
|
|
769
812
|
};
|
|
770
813
|
session: {
|
|
771
814
|
id: string;
|
|
@@ -774,8 +817,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
774
817
|
userId: string;
|
|
775
818
|
expiresAt: Date;
|
|
776
819
|
token: string;
|
|
777
|
-
ipAddress?: string | null | undefined
|
|
778
|
-
userAgent?: string | null | undefined
|
|
820
|
+
ipAddress?: string | null | undefined;
|
|
821
|
+
userAgent?: string | null | undefined;
|
|
779
822
|
impersonatedBy?: string | null | undefined;
|
|
780
823
|
};
|
|
781
824
|
} & {
|
|
@@ -786,16 +829,16 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
786
829
|
email: string;
|
|
787
830
|
emailVerified: boolean;
|
|
788
831
|
name: string;
|
|
789
|
-
image?: string | null | undefined
|
|
790
|
-
|
|
791
|
-
|
|
832
|
+
image?: string | null | undefined;
|
|
833
|
+
banExpires?: Date | null | undefined;
|
|
834
|
+
banReason?: string | null | undefined;
|
|
835
|
+
banned: boolean | null | undefined;
|
|
792
836
|
displayUsername?: string | null | undefined;
|
|
793
837
|
phoneNumber?: string | null | undefined;
|
|
794
838
|
phoneNumberVerified?: boolean | null | undefined;
|
|
795
|
-
banned: boolean | null | undefined;
|
|
796
839
|
role?: string | null | undefined;
|
|
797
|
-
|
|
798
|
-
|
|
840
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
841
|
+
username?: string | null | undefined;
|
|
799
842
|
};
|
|
800
843
|
session: {
|
|
801
844
|
id: string;
|
|
@@ -804,8 +847,8 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
804
847
|
userId: string;
|
|
805
848
|
expiresAt: Date;
|
|
806
849
|
token: string;
|
|
807
|
-
ipAddress?: string | null | undefined
|
|
808
|
-
userAgent?: string | null | undefined
|
|
850
|
+
ipAddress?: string | null | undefined;
|
|
851
|
+
userAgent?: string | null | undefined;
|
|
809
852
|
impersonatedBy?: string | null | undefined;
|
|
810
853
|
};
|
|
811
854
|
};
|