@r2wa-org/eden 0.0.88 → 0.0.90
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 +2812 -2786
- package/dist/admin-user/admin/errors/index.d.ts +8 -8
- package/dist/admin-user/admin/router.d.ts +141 -141
- package/dist/admin-user/admin/service.d.ts +20 -20
- package/dist/app-version/admin/dto.schemas.d.ts +23 -23
- package/dist/app-version/admin/router.d.ts +160 -160
- package/dist/app-version/admin/service.d.ts +20 -20
- package/dist/app-version/db.schemas.d.ts +20 -20
- package/dist/app-version/index.d.ts +5 -0
- package/dist/app-version/schema.d.ts +11 -11
- package/dist/app-version/user/dto.schemas.d.ts +40 -0
- package/dist/app-version/user/router.d.ts +67 -0
- package/dist/app-version/user/service.d.ts +22 -0
- package/dist/asset/admin/dto.schemas.d.ts +70 -70
- package/dist/asset/admin/router.d.ts +215 -215
- package/dist/asset/admin/service.d.ts +66 -66
- package/dist/asset/db.schemas.d.ts +2 -2
- package/dist/asset/errors/index.d.ts +12 -12
- package/dist/asset/permissions.d.ts +1 -1
- package/dist/asset/schema.d.ts +2 -2
- package/dist/asset/user/dto.schemas.d.ts +31 -31
- package/dist/asset/user/router.d.ts +155 -155
- package/dist/asset/user/service.d.ts +33 -33
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +495 -495
- package/dist/asset-convert-product/admin/router.d.ts +598 -598
- package/dist/asset-convert-product/admin/service.d.ts +457 -457
- package/dist/asset-convert-product/db.schemas.d.ts +6 -6
- package/dist/asset-convert-product/errors/index.d.ts +23 -23
- package/dist/asset-convert-product/permissions.d.ts +2 -2
- package/dist/asset-convert-product/schema.d.ts +5 -5
- package/dist/asset-convert-product/user/dto.schemas.d.ts +127 -127
- package/dist/asset-convert-product/user/router.d.ts +209 -209
- package/dist/asset-convert-product/user/service.d.ts +186 -186
- package/dist/asset-price/admin/dto.schemas.d.ts +26 -26
- package/dist/asset-price/admin/router.d.ts +187 -187
- package/dist/asset-price/admin/service.d.ts +16 -16
- package/dist/asset-price/constants.d.ts +2 -2
- package/dist/asset-price/errors/index.d.ts +11 -11
- package/dist/asset-price/internal/service.d.ts +7 -7
- package/dist/asset-price/permissions.d.ts +2 -2
- package/dist/asset-price/schema.d.ts +1 -1
- package/dist/asset-price/user/dto.schemas.d.ts +4 -4
- package/dist/asset-price/user/router.d.ts +133 -133
- package/dist/asset-type/admin/dto.schemas.d.ts +4 -4
- package/dist/asset-type/admin/router.d.ts +155 -155
- package/dist/asset-type/admin/service.d.ts +16 -16
- package/dist/asset-type/errors/index.d.ts +9 -9
- package/dist/asset-type/permissions.d.ts +1 -1
- package/dist/asset-type/schema.d.ts +1 -1
- package/dist/asset-type/seed.d.ts +9 -9
- package/dist/asset-type/user/dto.schemas.d.ts +5 -5
- package/dist/asset-type/user/router.d.ts +130 -130
- package/dist/asset-type/user/service.d.ts +4 -4
- package/dist/auth/better-auth.d.ts +267 -300
- package/dist/auth/permissions.d.ts +216 -216
- package/dist/auth/roles.d.ts +665 -665
- package/dist/auth/router.d.ts +116 -116
- package/dist/auth/schema.d.ts +5 -5
- package/dist/bank-account/admin/dto.schemas.d.ts +75 -75
- package/dist/bank-account/admin/router.d.ts +241 -241
- package/dist/bank-account/admin/service.d.ts +112 -112
- package/dist/bank-account/db.schemas.d.ts +40 -40
- package/dist/bank-account/errors/index.d.ts +4 -4
- package/dist/bank-account/internal/service.d.ts +14 -14
- package/dist/bank-account/permissions.d.ts +3 -3
- package/dist/bank-account/schema.d.ts +22 -22
- package/dist/bank-account/user/dto.schemas.d.ts +38 -38
- package/dist/bank-account/user/router.d.ts +150 -150
- package/dist/bank-account/user/service.d.ts +36 -36
- package/dist/check-in/admin/dto.schemas.d.ts +11 -11
- package/dist/check-in/admin/router.d.ts +147 -147
- package/dist/check-in/admin/service.d.ts +20 -19
- package/dist/check-in/db.schemas.d.ts +248 -4
- package/dist/check-in/errors/index.d.ts +8 -2
- package/dist/check-in/errors/locales/zh.d.ts +3 -0
- package/dist/check-in/internal/service.d.ts +18 -18
- package/dist/check-in/permissions.d.ts +2 -2
- package/dist/check-in/schema.d.ts +135 -3
- package/dist/check-in/user/dto.schemas.d.ts +144 -15
- package/dist/check-in/user/router.d.ts +158 -182
- package/dist/check-in/user/service.d.ts +52 -28
- package/dist/db/columns.helpers.d.ts +1 -1
- package/dist/deposit/admin/dto.schemas.d.ts +40 -40
- package/dist/deposit/admin/router.d.ts +160 -160
- package/dist/deposit/admin/service.d.ts +46 -46
- package/dist/deposit/db.schemas.d.ts +2 -2
- package/dist/deposit/errors/index.d.ts +16 -16
- package/dist/deposit/permissions.d.ts +2 -2
- package/dist/deposit/schema.d.ts +2 -2
- package/dist/deposit/user/dto.schemas.d.ts +40 -40
- package/dist/deposit/user/router.d.ts +180 -180
- package/dist/deposit/user/service.d.ts +69 -69
- package/dist/dynamic-env/admin.router.d.ts +137 -137
- package/dist/dynamic-env/cache.d.ts +0 -6
- package/dist/dynamic-env/errors/index.d.ts +2 -2
- package/dist/dynamic-env/schema.d.ts +1 -1
- package/dist/env/server.d.ts +12 -12
- package/dist/error/index.d.ts +1 -1
- package/dist/external/dto.schemas.d.ts +2 -2
- package/dist/external/errors/index.d.ts +2 -2
- package/dist/external/router.d.ts +6 -6
- package/dist/external/service.d.ts +6 -6
- package/dist/file-storage/admin/dto.schemas.d.ts +106 -106
- package/dist/file-storage/admin/router.d.ts +183 -171
- package/dist/file-storage/admin/service.d.ts +27 -27
- package/dist/file-storage/db.schemas.d.ts +26 -26
- package/dist/file-storage/errors/index.d.ts +10 -10
- package/dist/file-storage/internal/service.d.ts +9 -9
- package/dist/file-storage/permissions.d.ts +2 -2
- package/dist/file-storage/s3.client.d.ts +48 -48
- package/dist/file-storage/schema.d.ts +14 -14
- package/dist/file-storage/share/dto.schemas.d.ts +8 -8
- package/dist/file-storage/share/router.d.ts +145 -145
- package/dist/file-storage/user/dto.schemas.d.ts +48 -48
- package/dist/file-storage/user/router.d.ts +141 -141
- package/dist/file-storage/user/service.d.ts +36 -36
- package/dist/index.d.ts +3830 -3769
- package/dist/ledger/admin/dto.schemas.d.ts +270 -270
- package/dist/ledger/admin/router.d.ts +207 -207
- package/dist/ledger/db.schemas.d.ts +4 -4
- package/dist/ledger/errors/index.d.ts +14 -14
- package/dist/ledger/permissions.d.ts +1 -1
- package/dist/ledger/schema.d.ts +3 -3
- package/dist/ledger/user/dto.schemas.d.ts +5 -5
- package/dist/ledger/user/router.d.ts +130 -130
- package/dist/ledger/user/service.d.ts +93 -93
- package/dist/ledger-account/admin/dto.schemas.d.ts +83 -83
- package/dist/ledger-account/admin/router.d.ts +222 -222
- package/dist/ledger-account/admin/service.d.ts +149 -149
- package/dist/ledger-account/db.schemas.d.ts +2 -2
- package/dist/ledger-account/errors/index.d.ts +9 -9
- package/dist/ledger-account/internal/service.d.ts +7 -7
- package/dist/ledger-account/permissions.d.ts +1 -1
- package/dist/ledger-account/schema.d.ts +2 -2
- package/dist/ledger-account/user/dto.schemas.d.ts +23 -23
- package/dist/ledger-account/user/router.d.ts +168 -168
- package/dist/ledger-account/user/service.d.ts +100 -100
- package/dist/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/ledger-account-import/admin/router.d.ts +169 -169
- package/dist/ledger-account-import/admin/service.d.ts +43 -43
- package/dist/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/ledger-account-import/errors/index.d.ts +9 -9
- package/dist/ledger-account-import/permissions.d.ts +1 -1
- package/dist/ledger-account-import/schema.d.ts +4 -4
- package/dist/ledger-account-transfer/errors/index.d.ts +7 -7
- package/dist/ledger-account-transfer/user/router.d.ts +132 -132
- package/dist/ledger-account-type/admin/dto.schemas.d.ts +9 -9
- package/dist/ledger-account-type/admin/router.d.ts +157 -157
- package/dist/ledger-account-type/admin/service.d.ts +68 -68
- package/dist/ledger-account-type/errors/index.d.ts +9 -9
- package/dist/ledger-account-type/permissions.d.ts +1 -1
- package/dist/ledger-account-type/schema.d.ts +1 -1
- package/dist/ledger-account-type/user/dto.schemas.d.ts +9 -9
- package/dist/ledger-account-type/user/router.d.ts +133 -133
- package/dist/ledger-account-type/user/service.d.ts +34 -34
- package/dist/market-data/admin/dto.schemas.d.ts +4 -4
- package/dist/market-data/admin/router.d.ts +150 -150
- package/dist/market-data/admin/service.d.ts +11 -11
- package/dist/market-data/errors/index.d.ts +4 -4
- package/dist/market-data/internal/service.d.ts +19 -19
- package/dist/market-data/permissions.d.ts +3 -3
- package/dist/market-data/resolutions.d.ts +2 -2
- package/dist/market-data/schema.d.ts +1 -1
- package/dist/market-pricing/admin/dto.schemas.d.ts +88 -88
- package/dist/market-pricing/admin/router.d.ts +332 -320
- package/dist/market-pricing/admin/service.d.ts +97 -97
- package/dist/market-pricing/db.schemas.d.ts +6 -6
- package/dist/market-pricing/defaults.d.ts +11 -11
- package/dist/market-pricing/errors/index.d.ts +26 -26
- package/dist/market-pricing/internal/service.d.ts +3 -3
- package/dist/market-pricing/permissions.d.ts +1 -1
- package/dist/market-pricing/schema.d.ts +5 -5
- package/dist/news/admin/dto.schemas.d.ts +67 -67
- package/dist/news/admin/router.d.ts +226 -226
- package/dist/news/admin/service.d.ts +89 -89
- package/dist/news/db.schemas.d.ts +28 -28
- package/dist/news/errors/index.d.ts +5 -5
- package/dist/news/permissions.d.ts +1 -1
- package/dist/news/schema.d.ts +17 -17
- package/dist/news/user/dto.schemas.d.ts +84 -84
- package/dist/news/user/router.d.ts +184 -184
- package/dist/news/user/service.d.ts +143 -143
- package/dist/news-category/admin/dto.schemas.d.ts +10 -10
- package/dist/news-category/admin/router.d.ts +24 -24
- package/dist/news-category/admin/service.d.ts +15 -15
- package/dist/news-category/errors/index.d.ts +6 -6
- package/dist/news-category/permissions.d.ts +1 -1
- package/dist/news-category/schema.d.ts +1 -1
- package/dist/news-category/seed.d.ts +3 -3
- package/dist/news-category/user/dto.schemas.d.ts +8 -8
- package/dist/news-category/user/router.d.ts +127 -127
- package/dist/news-category/user/service.d.ts +10 -10
- package/dist/notification/admin/dto.schemas.d.ts +45 -45
- package/dist/notification/admin/router.d.ts +155 -155
- package/dist/notification/admin/service.d.ts +13 -13
- package/dist/notification/db.schemas.d.ts +6 -6
- package/dist/notification/errors/index.d.ts +5 -5
- package/dist/notification/internal/service.d.ts +7 -7
- package/dist/notification/permissions.d.ts +2 -2
- package/dist/notification/schema.d.ts +5 -5
- package/dist/notification/user/dto.schemas.d.ts +34 -34
- package/dist/notification/user/router.d.ts +161 -161
- package/dist/notification/user/service.d.ts +38 -38
- package/dist/operations-overview/admin/router.d.ts +137 -137
- package/dist/portfolio/user/dto.schemas.d.ts +38 -38
- package/dist/portfolio/user/router.d.ts +173 -173
- package/dist/portfolio/user/service.d.ts +27 -27
- package/dist/receipt-method/admin/dto.schemas.d.ts +20 -20
- package/dist/receipt-method/admin/router.d.ts +160 -160
- package/dist/receipt-method/admin/service.d.ts +46 -46
- package/dist/receipt-method/db.schemas.d.ts +2 -2
- package/dist/receipt-method/errors/index.d.ts +8 -8
- package/dist/receipt-method/permissions.d.ts +1 -1
- package/dist/receipt-method/schema.d.ts +2 -2
- package/dist/receipt-method/user/dto.schemas.d.ts +6 -6
- package/dist/receipt-method/user/router.d.ts +138 -138
- package/dist/receipt-method/user/service.d.ts +33 -33
- package/dist/referral/admin/dto.schemas.d.ts +6 -6
- package/dist/referral/admin/router.d.ts +143 -143
- package/dist/referral/errors/index.d.ts +6 -6
- package/dist/referral/permissions.d.ts +1 -1
- package/dist/referral/schema.d.ts +2 -2
- package/dist/referral/user/dto.schemas.d.ts +2 -2
- package/dist/referral/user/router.d.ts +137 -137
- package/dist/referral-depth-config/admin/dto.schemas.d.ts +1 -1
- package/dist/referral-depth-config/admin/router.d.ts +156 -144
- package/dist/referral-depth-config/admin/service.d.ts +6 -6
- package/dist/referral-depth-config/errors/index.d.ts +2 -2
- package/dist/referral-depth-config/permissions.d.ts +1 -1
- package/dist/referral-depth-config/schema.d.ts +1 -1
- package/dist/server-test/errors/index.d.ts +1 -1
- package/dist/server-test/index.d.ts +117 -117
- package/dist/shipping-address/admin/router.d.ts +138 -138
- package/dist/shipping-address/admin/service.d.ts +5 -5
- package/dist/shipping-address/errors/index.d.ts +3 -3
- package/dist/shipping-address/permissions.d.ts +1 -1
- package/dist/shipping-address/schema.d.ts +1 -1
- package/dist/shipping-address/user/dto.schemas.d.ts +4 -4
- package/dist/shipping-address/user/router.d.ts +142 -142
- package/dist/shipping-address/user/service.d.ts +20 -20
- package/dist/team/admin/dto.schemas.d.ts +728 -728
- package/dist/team/admin/router.d.ts +187 -187
- package/dist/team/errors/index.d.ts +4 -4
- package/dist/team/permissions.d.ts +1 -1
- package/dist/team/user/dto.schemas.d.ts +206 -206
- package/dist/team/user/router.d.ts +170 -170
- package/dist/trade-market/admin/dto.schemas.d.ts +439 -630
- package/dist/trade-market/admin/router.d.ts +281 -255
- package/dist/trade-market/admin/service.d.ts +131 -105
- package/dist/trade-market/db.schemas.d.ts +4 -4
- package/dist/trade-market/errors/index.d.ts +15 -15
- package/dist/trade-market/internal/service.d.ts +149 -130
- package/dist/trade-market/permissions.d.ts +2 -2
- package/dist/trade-market/schema.d.ts +4 -4
- package/dist/trade-market/user/dto.schemas.d.ts +208 -444
- package/dist/trade-market/user/router.d.ts +242 -223
- package/dist/trade-market/user/service.d.ts +141 -122
- package/dist/transfer/admin/router.d.ts +140 -140
- package/dist/transfer/admin/service.d.ts +27 -27
- package/dist/transfer/errors/index.d.ts +11 -11
- package/dist/transfer/permissions.d.ts +1 -1
- package/dist/transfer/schema.d.ts +1 -1
- package/dist/transfer/user/router.d.ts +140 -140
- package/dist/transfer/user/service.d.ts +27 -27
- package/dist/udf/router.d.ts +136 -136
- package/dist/udf/service.d.ts +1 -1
- package/dist/user/admin/dto.schemas.d.ts +363 -363
- package/dist/user/admin/router.d.ts +256 -256
- package/dist/user/admin/service.d.ts +50 -50
- package/dist/user/db.schemas.d.ts +62 -62
- package/dist/user/errors/index.d.ts +15 -15
- package/dist/user/internal/service.d.ts +8 -8
- package/dist/user/permissions.d.ts +3 -3
- package/dist/user/schema.d.ts +34 -34
- package/dist/user/user/dto.schemas.d.ts +1 -1
- package/dist/user/user/router.d.ts +148 -148
- package/dist/user/user/service.d.ts +35 -35
- package/dist/user-kyc/admin/dto.schemas.d.ts +34 -34
- package/dist/user-kyc/admin/router.d.ts +157 -157
- package/dist/user-kyc/admin/service.d.ts +20 -20
- package/dist/user-kyc/db.schemas.d.ts +46 -46
- package/dist/user-kyc/errors/index.d.ts +6 -6
- package/dist/user-kyc/permissions.d.ts +2 -2
- package/dist/user-kyc/schema.d.ts +25 -25
- package/dist/user-kyc/user/dto.schemas.d.ts +13 -13
- package/dist/user-kyc/user/router.d.ts +146 -146
- package/dist/user-kyc/user/service.d.ts +14 -14
- package/dist/user-security/admin/router.d.ts +133 -133
- package/dist/user-security/db.schemas.d.ts +20 -20
- package/dist/user-security/schema.d.ts +11 -11
- package/dist/user-security/user/router.d.ts +129 -129
- package/dist/wallet/admin/dto.schemas.d.ts +15 -15
- package/dist/wallet/admin/router.d.ts +159 -159
- package/dist/wallet/admin/service.d.ts +18 -18
- package/dist/wallet/errors/index.d.ts +1 -1
- package/dist/wallet/internal/service.d.ts +45 -45
- package/dist/wallet/permissions.d.ts +1 -1
- package/dist/wallet/schema.d.ts +1 -1
- package/dist/wallet/user/dto.schemas.d.ts +10 -10
- package/dist/wallet/user/router.d.ts +147 -147
- package/dist/wallet/user/service.d.ts +10 -10
- package/dist/wallet-type/admin/dto.schemas.d.ts +27 -27
- package/dist/wallet-type/admin/router.d.ts +201 -201
- package/dist/wallet-type/admin/service.d.ts +22 -22
- package/dist/wallet-type/errors/index.d.ts +6 -6
- package/dist/wallet-type/internal/service.d.ts +111 -111
- package/dist/wallet-type/permissions.d.ts +1 -1
- package/dist/wallet-type/schema.d.ts +2 -2
- package/dist/wallet-type/user/dto.schemas.d.ts +21 -21
- package/dist/wallet-type/user/router.d.ts +137 -137
- package/dist/wallet-type/user/service.d.ts +7 -7
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +723 -723
- package/dist/welfare-cycle/admin/router.d.ts +788 -788
- package/dist/welfare-cycle/admin/service.d.ts +706 -706
- package/dist/welfare-cycle/db.schemas.d.ts +8 -8
- package/dist/welfare-cycle/errors/index.d.ts +18 -18
- package/dist/welfare-cycle/internal/service.d.ts +84 -84
- package/dist/welfare-cycle/permissions.d.ts +3 -3
- package/dist/welfare-cycle/schema.d.ts +8 -8
- package/dist/welfare-cycle/user/dto.schemas.d.ts +22 -22
- package/dist/welfare-cycle/user/router.d.ts +173 -173
- package/dist/welfare-cycle/user/service.d.ts +95 -95
- package/dist/withdraw/admin/dto.schemas.d.ts +3 -3
- package/dist/withdraw/admin/router.d.ts +171 -171
- package/dist/withdraw/admin/service.d.ts +15 -15
- package/dist/withdraw/db.schemas.d.ts +2 -2
- package/dist/withdraw/errors/index.d.ts +16 -16
- package/dist/withdraw/permissions.d.ts +2 -2
- package/dist/withdraw/schema.d.ts +2 -2
- package/dist/withdraw/user/dto.schemas.d.ts +18 -18
- package/dist/withdraw/user/router.d.ts +176 -176
- package/dist/withdraw/user/service.d.ts +36 -36
- package/package.json +7 -9
|
@@ -2,9 +2,9 @@ import type { ListAdminFilesQueryInput, VerifyFileInput } from './dto.schemas';
|
|
|
2
2
|
import { BaseFileStorageService } from '../internal/service';
|
|
3
3
|
export declare abstract class AdminFileStorageService extends BaseFileStorageService {
|
|
4
4
|
static verifyFile(input: VerifyFileInput, adminId: string): Promise<{
|
|
5
|
-
deletedAt: Date | null;
|
|
6
5
|
createdAt: Date;
|
|
7
6
|
updatedAt: Date;
|
|
7
|
+
deletedAt: Date | null;
|
|
8
8
|
id: string;
|
|
9
9
|
fileName: string | null;
|
|
10
10
|
fileSize: number | null;
|
|
@@ -15,12 +15,12 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
|
|
|
15
15
|
s3Key: string;
|
|
16
16
|
s3Region: string;
|
|
17
17
|
s3ETag: string | null;
|
|
18
|
-
businessType: "
|
|
18
|
+
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
19
19
|
businessId: string | null;
|
|
20
20
|
businessMetadata: string | null;
|
|
21
21
|
ownerId: string;
|
|
22
|
-
accessControl: "private" | "
|
|
23
|
-
status: "
|
|
22
|
+
accessControl: "private" | "public" | "restricted" | null;
|
|
23
|
+
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
24
24
|
publicUrl: string | null;
|
|
25
25
|
thumbnailUrl: string | null;
|
|
26
26
|
archivedAt: Date | null;
|
|
@@ -35,41 +35,41 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
|
|
|
35
35
|
} | undefined>;
|
|
36
36
|
static listAllFiles(filters: ListAdminFilesQueryInput): Promise<{
|
|
37
37
|
data: {
|
|
38
|
-
|
|
38
|
+
accessControl: "private" | "public" | "restricted" | null;
|
|
39
|
+
archivedAt: Date | null;
|
|
40
|
+
businessId: string | null;
|
|
41
|
+
businessMetadata: string | null;
|
|
42
|
+
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
39
43
|
createdAt: Date;
|
|
40
|
-
updatedAt: Date;
|
|
41
44
|
deletedAt: Date | null;
|
|
45
|
+
downloadCount: number | null;
|
|
46
|
+
fileExtension: string | null;
|
|
47
|
+
fileHash: string | null;
|
|
42
48
|
fileName: string | null;
|
|
43
49
|
fileSize: number | null;
|
|
50
|
+
id: string;
|
|
51
|
+
isVerified: boolean | null;
|
|
52
|
+
lastDownloadedAt: Date | null;
|
|
44
53
|
mimeType: string | null;
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
owner: {
|
|
55
|
+
email: string;
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
};
|
|
59
|
+
ownerId: string;
|
|
60
|
+
publicUrl: string | null;
|
|
47
61
|
s3Bucket: string;
|
|
62
|
+
s3ETag: string | null;
|
|
48
63
|
s3Key: string;
|
|
49
64
|
s3Region: string;
|
|
50
|
-
|
|
51
|
-
businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
|
|
52
|
-
businessId: string | null;
|
|
53
|
-
businessMetadata: string | null;
|
|
54
|
-
ownerId: string;
|
|
55
|
-
accessControl: "private" | "restricted" | "public" | null;
|
|
56
|
-
status: "uploading" | "active" | "archived" | "pending_deletion" | null;
|
|
57
|
-
publicUrl: string | null;
|
|
65
|
+
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
58
66
|
thumbnailUrl: string | null;
|
|
59
|
-
|
|
67
|
+
updatedAt: Date;
|
|
60
68
|
uploadCompletedAt: Date | null;
|
|
61
69
|
uploadIpAddress: string | null;
|
|
62
|
-
downloadCount: number | null;
|
|
63
|
-
lastDownloadedAt: Date | null;
|
|
64
|
-
isVerified: boolean | null;
|
|
65
|
-
verifiedBy: string | null;
|
|
66
|
-
verifiedAt: Date | null;
|
|
67
70
|
verificationNote: string | null;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
};
|
|
71
|
+
verifiedAt: Date | null;
|
|
72
|
+
verifiedBy: string | null;
|
|
73
73
|
verifier: {
|
|
74
74
|
id: string;
|
|
75
75
|
name: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
2
|
-
|
|
3
|
-
name: "
|
|
2
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3
|
+
name: "created_at";
|
|
4
4
|
tableName: "file_storage";
|
|
5
5
|
dataType: "date";
|
|
6
6
|
columnType: "PgTimestamp";
|
|
7
7
|
data: Date;
|
|
8
8
|
driverParam: string;
|
|
9
|
-
notNull:
|
|
10
|
-
hasDefault:
|
|
9
|
+
notNull: true;
|
|
10
|
+
hasDefault: true;
|
|
11
11
|
isPrimaryKey: false;
|
|
12
12
|
isAutoincrement: false;
|
|
13
13
|
hasRuntimeDefault: false;
|
|
@@ -16,8 +16,8 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
16
16
|
identity: undefined;
|
|
17
17
|
generated: undefined;
|
|
18
18
|
}, {}, {}>;
|
|
19
|
-
|
|
20
|
-
name: "
|
|
19
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
20
|
+
name: "updated_at";
|
|
21
21
|
tableName: "file_storage";
|
|
22
22
|
dataType: "date";
|
|
23
23
|
columnType: "PgTimestamp";
|
|
@@ -33,15 +33,15 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
33
33
|
identity: undefined;
|
|
34
34
|
generated: undefined;
|
|
35
35
|
}, {}, {}>;
|
|
36
|
-
|
|
37
|
-
name: "
|
|
36
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
37
|
+
name: "deleted_at";
|
|
38
38
|
tableName: "file_storage";
|
|
39
39
|
dataType: "date";
|
|
40
40
|
columnType: "PgTimestamp";
|
|
41
41
|
data: Date;
|
|
42
42
|
driverParam: string;
|
|
43
|
-
notNull:
|
|
44
|
-
hasDefault:
|
|
43
|
+
notNull: false;
|
|
44
|
+
hasDefault: false;
|
|
45
45
|
isPrimaryKey: false;
|
|
46
46
|
isAutoincrement: false;
|
|
47
47
|
hasRuntimeDefault: false;
|
|
@@ -225,7 +225,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
225
225
|
tableName: "file_storage";
|
|
226
226
|
dataType: "string";
|
|
227
227
|
columnType: "PgEnumColumn";
|
|
228
|
-
data: "
|
|
228
|
+
data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
229
229
|
driverParam: string;
|
|
230
230
|
notNull: true;
|
|
231
231
|
hasDefault: false;
|
|
@@ -293,7 +293,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
293
293
|
tableName: "file_storage";
|
|
294
294
|
dataType: "string";
|
|
295
295
|
columnType: "PgEnumColumn";
|
|
296
|
-
data: "private" | "
|
|
296
|
+
data: "private" | "public" | "restricted";
|
|
297
297
|
driverParam: string;
|
|
298
298
|
notNull: false;
|
|
299
299
|
hasDefault: true;
|
|
@@ -310,7 +310,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
310
310
|
tableName: "file_storage";
|
|
311
311
|
dataType: "string";
|
|
312
312
|
columnType: "PgEnumColumn";
|
|
313
|
-
data: "
|
|
313
|
+
data: "active" | "archived" | "pending_deletion" | "uploading";
|
|
314
314
|
driverParam: string;
|
|
315
315
|
notNull: false;
|
|
316
316
|
hasDefault: true;
|
|
@@ -512,15 +512,15 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
|
|
|
512
512
|
}, undefined>;
|
|
513
513
|
export type FileStorageSelectSchemaType = typeof fileStorageSelectSchema.static;
|
|
514
514
|
export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSchema<"insert", {
|
|
515
|
-
|
|
516
|
-
name: "
|
|
515
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
516
|
+
name: "created_at";
|
|
517
517
|
tableName: "file_storage";
|
|
518
518
|
dataType: "date";
|
|
519
519
|
columnType: "PgTimestamp";
|
|
520
520
|
data: Date;
|
|
521
521
|
driverParam: string;
|
|
522
|
-
notNull:
|
|
523
|
-
hasDefault:
|
|
522
|
+
notNull: true;
|
|
523
|
+
hasDefault: true;
|
|
524
524
|
isPrimaryKey: false;
|
|
525
525
|
isAutoincrement: false;
|
|
526
526
|
hasRuntimeDefault: false;
|
|
@@ -529,8 +529,8 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
529
529
|
identity: undefined;
|
|
530
530
|
generated: undefined;
|
|
531
531
|
}, {}, {}>;
|
|
532
|
-
|
|
533
|
-
name: "
|
|
532
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
533
|
+
name: "updated_at";
|
|
534
534
|
tableName: "file_storage";
|
|
535
535
|
dataType: "date";
|
|
536
536
|
columnType: "PgTimestamp";
|
|
@@ -546,15 +546,15 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
546
546
|
identity: undefined;
|
|
547
547
|
generated: undefined;
|
|
548
548
|
}, {}, {}>;
|
|
549
|
-
|
|
550
|
-
name: "
|
|
549
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
550
|
+
name: "deleted_at";
|
|
551
551
|
tableName: "file_storage";
|
|
552
552
|
dataType: "date";
|
|
553
553
|
columnType: "PgTimestamp";
|
|
554
554
|
data: Date;
|
|
555
555
|
driverParam: string;
|
|
556
|
-
notNull:
|
|
557
|
-
hasDefault:
|
|
556
|
+
notNull: false;
|
|
557
|
+
hasDefault: false;
|
|
558
558
|
isPrimaryKey: false;
|
|
559
559
|
isAutoincrement: false;
|
|
560
560
|
hasRuntimeDefault: false;
|
|
@@ -738,7 +738,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
738
738
|
tableName: "file_storage";
|
|
739
739
|
dataType: "string";
|
|
740
740
|
columnType: "PgEnumColumn";
|
|
741
|
-
data: "
|
|
741
|
+
data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
742
742
|
driverParam: string;
|
|
743
743
|
notNull: true;
|
|
744
744
|
hasDefault: false;
|
|
@@ -806,7 +806,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
806
806
|
tableName: "file_storage";
|
|
807
807
|
dataType: "string";
|
|
808
808
|
columnType: "PgEnumColumn";
|
|
809
|
-
data: "private" | "
|
|
809
|
+
data: "private" | "public" | "restricted";
|
|
810
810
|
driverParam: string;
|
|
811
811
|
notNull: false;
|
|
812
812
|
hasDefault: true;
|
|
@@ -823,7 +823,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
|
|
|
823
823
|
tableName: "file_storage";
|
|
824
824
|
dataType: "string";
|
|
825
825
|
columnType: "PgEnumColumn";
|
|
826
|
-
data: "
|
|
826
|
+
data: "active" | "archived" | "pending_deletion" | "uploading";
|
|
827
827
|
driverParam: string;
|
|
828
828
|
notNull: false;
|
|
829
829
|
hasDefault: true;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * from './locales/zh';
|
|
2
2
|
export declare const FileStorageErrorCodes: {
|
|
3
|
-
readonly FILE_SIZE_EXCEEDED:
|
|
4
|
-
readonly FILE_TYPE_NOT_ALLOWED:
|
|
5
|
-
readonly FILE_CREATE_FAILED:
|
|
6
|
-
readonly FILE_NOT_FOUND:
|
|
7
|
-
readonly FILE_ALREADY_CONFIRMED:
|
|
8
|
-
readonly FILE_UPLOAD_NOT_COMPLETED:
|
|
9
|
-
readonly FILE_ACCESS_DENIED:
|
|
10
|
-
readonly FILE_NOT_ACTIVE:
|
|
11
|
-
readonly FILE_DELETE_FAILED:
|
|
12
|
-
readonly FILE_UPDATE_FAILED:
|
|
3
|
+
readonly FILE_SIZE_EXCEEDED: 'FILE_SIZE_EXCEEDED';
|
|
4
|
+
readonly FILE_TYPE_NOT_ALLOWED: 'FILE_TYPE_NOT_ALLOWED';
|
|
5
|
+
readonly FILE_CREATE_FAILED: 'FILE_CREATE_FAILED';
|
|
6
|
+
readonly FILE_NOT_FOUND: 'FILE_NOT_FOUND';
|
|
7
|
+
readonly FILE_ALREADY_CONFIRMED: 'FILE_ALREADY_CONFIRMED';
|
|
8
|
+
readonly FILE_UPLOAD_NOT_COMPLETED: 'FILE_UPLOAD_NOT_COMPLETED';
|
|
9
|
+
readonly FILE_ACCESS_DENIED: 'FILE_ACCESS_DENIED';
|
|
10
|
+
readonly FILE_NOT_ACTIVE: 'FILE_NOT_ACTIVE';
|
|
11
|
+
readonly FILE_DELETE_FAILED: 'FILE_DELETE_FAILED';
|
|
12
|
+
readonly FILE_UPDATE_FAILED: 'FILE_UPDATE_FAILED';
|
|
13
13
|
};
|
|
14
14
|
type FileStorageErrorCodesType = typeof FileStorageErrorCodes;
|
|
15
15
|
export type FileStorageErrorCode = keyof FileStorageErrorCodesType;
|
|
@@ -10,7 +10,7 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
|
|
|
10
10
|
static generateUploadUrl(input: GenerateUploadUrlInput, userId: string): Promise<{
|
|
11
11
|
readonly fileId: string;
|
|
12
12
|
readonly uploadUrl: string;
|
|
13
|
-
readonly method:
|
|
13
|
+
readonly method: 'PUT';
|
|
14
14
|
readonly headers: {
|
|
15
15
|
readonly 'Content-Type': string;
|
|
16
16
|
};
|
|
@@ -20,9 +20,9 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
|
|
|
20
20
|
readonly expiresAt: number;
|
|
21
21
|
}>;
|
|
22
22
|
static confirmUpload(input: ConfirmUploadInput, userId: string): Promise<{
|
|
23
|
-
deletedAt: Date | null;
|
|
24
23
|
createdAt: Date;
|
|
25
24
|
updatedAt: Date;
|
|
25
|
+
deletedAt: Date | null;
|
|
26
26
|
id: string;
|
|
27
27
|
fileName: string | null;
|
|
28
28
|
fileSize: number | null;
|
|
@@ -33,12 +33,12 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
|
|
|
33
33
|
s3Key: string;
|
|
34
34
|
s3Region: string;
|
|
35
35
|
s3ETag: string | null;
|
|
36
|
-
businessType: "
|
|
36
|
+
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
37
37
|
businessId: string | null;
|
|
38
38
|
businessMetadata: string | null;
|
|
39
39
|
ownerId: string;
|
|
40
|
-
accessControl: "private" | "
|
|
41
|
-
status: "
|
|
40
|
+
accessControl: "private" | "public" | "restricted" | null;
|
|
41
|
+
status: "active" | "archived" | "pending_deletion" | "uploading" | null;
|
|
42
42
|
publicUrl: string | null;
|
|
43
43
|
thumbnailUrl: string | null;
|
|
44
44
|
archivedAt: Date | null;
|
|
@@ -52,15 +52,15 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
|
|
|
52
52
|
verificationNote: string | null;
|
|
53
53
|
} | undefined>;
|
|
54
54
|
static generateAccessUrl(input: GenerateAccessUrlInput, userId: string): Promise<{
|
|
55
|
-
expiresAt?: number | undefined;
|
|
56
55
|
id: string;
|
|
57
|
-
fileName: string | null;
|
|
58
56
|
url: string;
|
|
57
|
+
fileName: string | null;
|
|
58
|
+
expiresAt?: number | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
static generateBatchAccessUrls(input: GenerateBatchAccessUrlsInput, userId: string): Promise<{
|
|
61
|
-
expiresAt?: number | undefined;
|
|
62
61
|
id: string;
|
|
63
|
-
fileName: string | null;
|
|
64
62
|
url: string;
|
|
63
|
+
fileName: string | null;
|
|
64
|
+
expiresAt?: number | undefined;
|
|
65
65
|
}[]>;
|
|
66
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fileStoragePermissions: {
|
|
2
|
-
readonly 'file_storage:file': readonly [
|
|
3
|
-
readonly 'file_storage:admin': readonly [
|
|
2
|
+
readonly 'file_storage:file': readonly ['create', 'read', 'update', 'delete', 'list'];
|
|
3
|
+
readonly 'file_storage:admin': readonly ['verify', 'list_all', 'permanent_delete'];
|
|
4
4
|
};
|
|
5
5
|
export type FileStoragePermission = keyof typeof fileStoragePermissions;
|
|
@@ -112,7 +112,7 @@ export declare function validateMimeType(mimeType: string, allowedTypes: readonl
|
|
|
112
112
|
*/
|
|
113
113
|
export declare const BUSINESS_TYPE_CONFIG: {
|
|
114
114
|
readonly kyc_document: {
|
|
115
|
-
readonly defaultAccessControl:
|
|
115
|
+
readonly defaultAccessControl: 'private';
|
|
116
116
|
readonly maxSize: number;
|
|
117
117
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png", "image/jpg"];
|
|
118
118
|
readonly mimeTypeLimits: {
|
|
@@ -120,76 +120,76 @@ export declare const BUSINESS_TYPE_CONFIG: {
|
|
|
120
120
|
readonly 'image/png': number;
|
|
121
121
|
readonly 'image/jpg': number;
|
|
122
122
|
};
|
|
123
|
-
readonly description:
|
|
123
|
+
readonly description: 'KYC \u6587\u6863\uFF08\u8EAB\u4EFD\u8BC1\u660E\u3001\u5730\u5740\u8BC1\u660E\u7B49\uFF09';
|
|
124
124
|
};
|
|
125
125
|
readonly contract: {
|
|
126
|
-
readonly defaultAccessControl:
|
|
126
|
+
readonly defaultAccessControl: 'private';
|
|
127
127
|
readonly maxSize: number;
|
|
128
128
|
readonly allowedMimeTypes: readonly ["application/pdf"];
|
|
129
|
-
readonly description:
|
|
129
|
+
readonly description: '\u5408\u540C\u6587\u4EF6';
|
|
130
130
|
};
|
|
131
131
|
readonly financial_report: {
|
|
132
|
-
readonly defaultAccessControl:
|
|
132
|
+
readonly defaultAccessControl: 'private';
|
|
133
133
|
readonly maxSize: number;
|
|
134
134
|
readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
135
|
-
readonly description:
|
|
135
|
+
readonly description: '\u8D22\u52A1\u62A5\u8868';
|
|
136
136
|
};
|
|
137
137
|
readonly ledger_account_import: {
|
|
138
|
-
readonly defaultAccessControl:
|
|
138
|
+
readonly defaultAccessControl: 'private';
|
|
139
139
|
readonly maxSize: number;
|
|
140
140
|
readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
141
|
-
readonly description:
|
|
141
|
+
readonly description: '\u7528\u6237\u8D26\u6237\u5BFC\u5165\u6587\u4EF6';
|
|
142
142
|
};
|
|
143
143
|
readonly avatar: {
|
|
144
|
-
readonly defaultAccessControl:
|
|
144
|
+
readonly defaultAccessControl: 'public';
|
|
145
145
|
readonly maxSize: number;
|
|
146
146
|
readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
|
|
147
147
|
readonly mimeTypeLimits: {
|
|
148
148
|
readonly 'image/webp': number;
|
|
149
149
|
};
|
|
150
|
-
readonly description:
|
|
150
|
+
readonly description: '\u7528\u6237\u5934\u50CF';
|
|
151
151
|
};
|
|
152
152
|
readonly cover_image: {
|
|
153
|
-
readonly defaultAccessControl:
|
|
153
|
+
readonly defaultAccessControl: 'public';
|
|
154
154
|
readonly maxSize: number;
|
|
155
155
|
readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
|
|
156
|
-
readonly description:
|
|
156
|
+
readonly description: '\u5C01\u9762\u56FE\u7247';
|
|
157
157
|
};
|
|
158
158
|
readonly notification_attachment: {
|
|
159
|
-
readonly defaultAccessControl:
|
|
159
|
+
readonly defaultAccessControl: 'restricted';
|
|
160
160
|
readonly maxSize: number;
|
|
161
161
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/*", "application/zip"];
|
|
162
|
-
readonly description:
|
|
162
|
+
readonly description: '\u901A\u77E5\u9644\u4EF6';
|
|
163
163
|
};
|
|
164
164
|
readonly transaction_receipt: {
|
|
165
|
-
readonly defaultAccessControl:
|
|
165
|
+
readonly defaultAccessControl: 'private';
|
|
166
166
|
readonly maxSize: number;
|
|
167
167
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
168
|
-
readonly description:
|
|
168
|
+
readonly description: '\u4EA4\u6613\u56DE\u6267';
|
|
169
169
|
};
|
|
170
170
|
readonly export_report: {
|
|
171
|
-
readonly defaultAccessControl:
|
|
171
|
+
readonly defaultAccessControl: 'restricted';
|
|
172
172
|
readonly maxSize: number;
|
|
173
173
|
readonly allowedMimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"];
|
|
174
|
-
readonly description:
|
|
174
|
+
readonly description: '\u5BFC\u51FA\u7684\u62A5\u8868';
|
|
175
175
|
};
|
|
176
176
|
readonly bank_verification: {
|
|
177
|
-
readonly defaultAccessControl:
|
|
177
|
+
readonly defaultAccessControl: 'private';
|
|
178
178
|
readonly maxSize: number;
|
|
179
179
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
180
|
-
readonly description:
|
|
180
|
+
readonly description: '\u94F6\u884C\u9A8C\u8BC1\u6587\u4EF6';
|
|
181
181
|
};
|
|
182
182
|
readonly news_attachment: {
|
|
183
|
-
readonly defaultAccessControl:
|
|
183
|
+
readonly defaultAccessControl: 'public';
|
|
184
184
|
readonly maxSize: number;
|
|
185
185
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
186
|
-
readonly description:
|
|
186
|
+
readonly description: '\u65B0\u95FB\u9644\u4EF6';
|
|
187
187
|
};
|
|
188
188
|
readonly other: {
|
|
189
|
-
readonly defaultAccessControl:
|
|
189
|
+
readonly defaultAccessControl: 'private';
|
|
190
190
|
readonly maxSize: number;
|
|
191
191
|
readonly allowedMimeTypes: readonly ["*/*"];
|
|
192
|
-
readonly description:
|
|
192
|
+
readonly description: '\u5176\u4ED6';
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
195
|
/**
|
|
@@ -201,7 +201,7 @@ export type BusinessType = keyof typeof BUSINESS_TYPE_CONFIG;
|
|
|
201
201
|
*/
|
|
202
202
|
export declare function getBusinessTypeConfig<T extends BusinessType>(businessType: T): {
|
|
203
203
|
readonly kyc_document: {
|
|
204
|
-
readonly defaultAccessControl:
|
|
204
|
+
readonly defaultAccessControl: 'private';
|
|
205
205
|
readonly maxSize: number;
|
|
206
206
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png", "image/jpg"];
|
|
207
207
|
readonly mimeTypeLimits: {
|
|
@@ -209,76 +209,76 @@ export declare function getBusinessTypeConfig<T extends BusinessType>(businessTy
|
|
|
209
209
|
readonly 'image/png': number;
|
|
210
210
|
readonly 'image/jpg': number;
|
|
211
211
|
};
|
|
212
|
-
readonly description:
|
|
212
|
+
readonly description: 'KYC \u6587\u6863\uFF08\u8EAB\u4EFD\u8BC1\u660E\u3001\u5730\u5740\u8BC1\u660E\u7B49\uFF09';
|
|
213
213
|
};
|
|
214
214
|
readonly contract: {
|
|
215
|
-
readonly defaultAccessControl:
|
|
215
|
+
readonly defaultAccessControl: 'private';
|
|
216
216
|
readonly maxSize: number;
|
|
217
217
|
readonly allowedMimeTypes: readonly ["application/pdf"];
|
|
218
|
-
readonly description:
|
|
218
|
+
readonly description: '\u5408\u540C\u6587\u4EF6';
|
|
219
219
|
};
|
|
220
220
|
readonly financial_report: {
|
|
221
|
-
readonly defaultAccessControl:
|
|
221
|
+
readonly defaultAccessControl: 'private';
|
|
222
222
|
readonly maxSize: number;
|
|
223
223
|
readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
224
|
-
readonly description:
|
|
224
|
+
readonly description: '\u8D22\u52A1\u62A5\u8868';
|
|
225
225
|
};
|
|
226
226
|
readonly ledger_account_import: {
|
|
227
|
-
readonly defaultAccessControl:
|
|
227
|
+
readonly defaultAccessControl: 'private';
|
|
228
228
|
readonly maxSize: number;
|
|
229
229
|
readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
|
|
230
|
-
readonly description:
|
|
230
|
+
readonly description: '\u7528\u6237\u8D26\u6237\u5BFC\u5165\u6587\u4EF6';
|
|
231
231
|
};
|
|
232
232
|
readonly avatar: {
|
|
233
|
-
readonly defaultAccessControl:
|
|
233
|
+
readonly defaultAccessControl: 'public';
|
|
234
234
|
readonly maxSize: number;
|
|
235
235
|
readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
|
|
236
236
|
readonly mimeTypeLimits: {
|
|
237
237
|
readonly 'image/webp': number;
|
|
238
238
|
};
|
|
239
|
-
readonly description:
|
|
239
|
+
readonly description: '\u7528\u6237\u5934\u50CF';
|
|
240
240
|
};
|
|
241
241
|
readonly cover_image: {
|
|
242
|
-
readonly defaultAccessControl:
|
|
242
|
+
readonly defaultAccessControl: 'public';
|
|
243
243
|
readonly maxSize: number;
|
|
244
244
|
readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
|
|
245
|
-
readonly description:
|
|
245
|
+
readonly description: '\u5C01\u9762\u56FE\u7247';
|
|
246
246
|
};
|
|
247
247
|
readonly notification_attachment: {
|
|
248
|
-
readonly defaultAccessControl:
|
|
248
|
+
readonly defaultAccessControl: 'restricted';
|
|
249
249
|
readonly maxSize: number;
|
|
250
250
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/*", "application/zip"];
|
|
251
|
-
readonly description:
|
|
251
|
+
readonly description: '\u901A\u77E5\u9644\u4EF6';
|
|
252
252
|
};
|
|
253
253
|
readonly transaction_receipt: {
|
|
254
|
-
readonly defaultAccessControl:
|
|
254
|
+
readonly defaultAccessControl: 'private';
|
|
255
255
|
readonly maxSize: number;
|
|
256
256
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
257
|
-
readonly description:
|
|
257
|
+
readonly description: '\u4EA4\u6613\u56DE\u6267';
|
|
258
258
|
};
|
|
259
259
|
readonly export_report: {
|
|
260
|
-
readonly defaultAccessControl:
|
|
260
|
+
readonly defaultAccessControl: 'restricted';
|
|
261
261
|
readonly maxSize: number;
|
|
262
262
|
readonly allowedMimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"];
|
|
263
|
-
readonly description:
|
|
263
|
+
readonly description: '\u5BFC\u51FA\u7684\u62A5\u8868';
|
|
264
264
|
};
|
|
265
265
|
readonly bank_verification: {
|
|
266
|
-
readonly defaultAccessControl:
|
|
266
|
+
readonly defaultAccessControl: 'private';
|
|
267
267
|
readonly maxSize: number;
|
|
268
268
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
269
|
-
readonly description:
|
|
269
|
+
readonly description: '\u94F6\u884C\u9A8C\u8BC1\u6587\u4EF6';
|
|
270
270
|
};
|
|
271
271
|
readonly news_attachment: {
|
|
272
|
-
readonly defaultAccessControl:
|
|
272
|
+
readonly defaultAccessControl: 'public';
|
|
273
273
|
readonly maxSize: number;
|
|
274
274
|
readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
|
|
275
|
-
readonly description:
|
|
275
|
+
readonly description: '\u65B0\u95FB\u9644\u4EF6';
|
|
276
276
|
};
|
|
277
277
|
readonly other: {
|
|
278
|
-
readonly defaultAccessControl:
|
|
278
|
+
readonly defaultAccessControl: 'private';
|
|
279
279
|
readonly maxSize: number;
|
|
280
280
|
readonly allowedMimeTypes: readonly ["*/*"];
|
|
281
|
-
readonly description:
|
|
281
|
+
readonly description: '\u5176\u4ED6';
|
|
282
282
|
};
|
|
283
283
|
}[T];
|
|
284
284
|
export {};
|
|
@@ -19,15 +19,15 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
19
19
|
name: "file_storage";
|
|
20
20
|
schema: undefined;
|
|
21
21
|
columns: {
|
|
22
|
-
|
|
23
|
-
name: "
|
|
22
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
23
|
+
name: "created_at";
|
|
24
24
|
tableName: "file_storage";
|
|
25
25
|
dataType: "date";
|
|
26
26
|
columnType: "PgTimestamp";
|
|
27
27
|
data: Date;
|
|
28
28
|
driverParam: string;
|
|
29
|
-
notNull:
|
|
30
|
-
hasDefault:
|
|
29
|
+
notNull: true;
|
|
30
|
+
hasDefault: true;
|
|
31
31
|
isPrimaryKey: false;
|
|
32
32
|
isAutoincrement: false;
|
|
33
33
|
hasRuntimeDefault: false;
|
|
@@ -36,8 +36,8 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
36
36
|
identity: undefined;
|
|
37
37
|
generated: undefined;
|
|
38
38
|
}, {}, {}>;
|
|
39
|
-
|
|
40
|
-
name: "
|
|
39
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
40
|
+
name: "updated_at";
|
|
41
41
|
tableName: "file_storage";
|
|
42
42
|
dataType: "date";
|
|
43
43
|
columnType: "PgTimestamp";
|
|
@@ -53,15 +53,15 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
53
53
|
identity: undefined;
|
|
54
54
|
generated: undefined;
|
|
55
55
|
}, {}, {}>;
|
|
56
|
-
|
|
57
|
-
name: "
|
|
56
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
57
|
+
name: "deleted_at";
|
|
58
58
|
tableName: "file_storage";
|
|
59
59
|
dataType: "date";
|
|
60
60
|
columnType: "PgTimestamp";
|
|
61
61
|
data: Date;
|
|
62
62
|
driverParam: string;
|
|
63
|
-
notNull:
|
|
64
|
-
hasDefault:
|
|
63
|
+
notNull: false;
|
|
64
|
+
hasDefault: false;
|
|
65
65
|
isPrimaryKey: false;
|
|
66
66
|
isAutoincrement: false;
|
|
67
67
|
hasRuntimeDefault: false;
|
|
@@ -245,7 +245,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
245
245
|
tableName: "file_storage";
|
|
246
246
|
dataType: "string";
|
|
247
247
|
columnType: "PgEnumColumn";
|
|
248
|
-
data: "
|
|
248
|
+
data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
249
249
|
driverParam: string;
|
|
250
250
|
notNull: true;
|
|
251
251
|
hasDefault: false;
|
|
@@ -313,7 +313,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
313
313
|
tableName: "file_storage";
|
|
314
314
|
dataType: "string";
|
|
315
315
|
columnType: "PgEnumColumn";
|
|
316
|
-
data: "private" | "
|
|
316
|
+
data: "private" | "public" | "restricted";
|
|
317
317
|
driverParam: string;
|
|
318
318
|
notNull: false;
|
|
319
319
|
hasDefault: true;
|
|
@@ -330,7 +330,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
330
330
|
tableName: "file_storage";
|
|
331
331
|
dataType: "string";
|
|
332
332
|
columnType: "PgEnumColumn";
|
|
333
|
-
data: "
|
|
333
|
+
data: "active" | "archived" | "pending_deletion" | "uploading";
|
|
334
334
|
driverParam: string;
|
|
335
335
|
notNull: false;
|
|
336
336
|
hasDefault: true;
|
|
@@ -530,7 +530,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
530
530
|
generated: undefined;
|
|
531
531
|
}, {}, {}>;
|
|
532
532
|
};
|
|
533
|
-
dialect:
|
|
533
|
+
dialect: 'pg';
|
|
534
534
|
}>;
|
|
535
535
|
export declare const fileStorageRelations: import("drizzle-orm").Relations<"file_storage", {
|
|
536
536
|
owner: import("drizzle-orm").One<"user", true>;
|