@aitlabs/namkwong 0.0.112 → 0.0.114

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.
@@ -1,13 +1,19 @@
1
1
  import type { UserAdminBanSchemaType, UserAdminSearchQuerySchemaType, UserProfileAdminListQuerySchemaType, UserProfileAdminUpdateSchemaType } from './dto.schemas';
2
2
  import { InternalUserService } from '../internal/service';
3
+ type CurrentAdminUser = {
4
+ id: string;
5
+ role?: string | null;
6
+ };
3
7
  export declare abstract class AdminUserService extends InternalUserService {
4
- static banNormalUser(userId: string, input: UserAdminBanSchemaType, headers: Headers): Promise<{
8
+ private static isSuperAdmin;
9
+ private static assertUserInReferralScope;
10
+ static banNormalUser(currentUser: CurrentAdminUser, userId: string, input: UserAdminBanSchemaType, headers: Headers): Promise<{
5
11
  success: boolean;
6
12
  }>;
7
- static resetUserPassword(userId: string, headers: Headers): Promise<{
13
+ static resetUserPassword(currentUser: CurrentAdminUser, userId: string, headers: Headers): Promise<{
8
14
  password: string;
9
15
  }>;
10
- static searchUsers(query: UserAdminSearchQuerySchemaType): Promise<{
16
+ static searchUsers(currentUser: CurrentAdminUser, query: UserAdminSearchQuerySchemaType): Promise<{
11
17
  data: {
12
18
  id: string;
13
19
  name: string;
@@ -34,7 +40,7 @@ export declare abstract class AdminUserService extends InternalUserService {
34
40
  hasNextPage: boolean;
35
41
  };
36
42
  }>;
37
- static listProfiles(query: UserProfileAdminListQuerySchemaType): Promise<{
43
+ static listProfiles(currentUser: CurrentAdminUser, query: UserProfileAdminListQuerySchemaType): Promise<{
38
44
  data: {
39
45
  id: string;
40
46
  name: string;
@@ -94,7 +100,7 @@ export declare abstract class AdminUserService extends InternalUserService {
94
100
  hasNextPage: boolean;
95
101
  };
96
102
  }>;
97
- static getProfile(userId: string): Promise<{
103
+ static getProfile(currentUser: CurrentAdminUser, userId: string): Promise<{
98
104
  id: string;
99
105
  name: string;
100
106
  email: string;
@@ -126,7 +132,7 @@ export declare abstract class AdminUserService extends InternalUserService {
126
132
  referredBy: string | null;
127
133
  };
128
134
  }>;
129
- static getLatestSessionByUserId(userId: string): Promise<{
135
+ static getLatestSessionByUserId(currentUser: CurrentAdminUser, userId: string): Promise<{
130
136
  createdAt: Date;
131
137
  expiresAt: Date;
132
138
  id: string;
@@ -136,7 +142,7 @@ export declare abstract class AdminUserService extends InternalUserService {
136
142
  userAgent: string | null;
137
143
  userId: string;
138
144
  } | null>;
139
- static updateProfile(userId: string, payload: UserProfileAdminUpdateSchemaType): Promise<{
145
+ static updateProfile(currentUser: CurrentAdminUser, userId: string, payload: UserProfileAdminUpdateSchemaType): Promise<{
140
146
  id: string;
141
147
  name: string;
142
148
  email: string;
@@ -169,3 +175,4 @@ export declare abstract class AdminUserService extends InternalUserService {
169
175
  };
170
176
  }>;
171
177
  }
178
+ export {};
@@ -35,19 +35,7 @@ export declare const userKycAdminRouter: Elysia<"/kyc", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, {
39
- domain?: string | undefined;
40
- expires?: Date | undefined;
41
- httpOnly?: boolean | undefined;
42
- maxAge?: number | undefined;
43
- path?: string | undefined;
44
- priority?: 'low' | 'medium' | 'high' | undefined;
45
- partitioned?: boolean | undefined;
46
- sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
- secure?: boolean | undefined;
48
- secrets?: string | null | (string | null)[];
49
- value?: unknown;
50
- }>;
38
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
51
39
  };
52
40
  path: string;
53
41
  route: string;
@@ -35,19 +35,7 @@ export declare const userSecurityRouter: Elysia<"/user", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, {
39
- domain?: string | undefined;
40
- expires?: Date | undefined;
41
- httpOnly?: boolean | undefined;
42
- maxAge?: number | undefined;
43
- path?: string | undefined;
44
- priority?: 'low' | 'medium' | 'high' | undefined;
45
- partitioned?: boolean | undefined;
46
- sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
- secure?: boolean | undefined;
48
- secrets?: string | null | (string | null)[];
49
- value?: unknown;
50
- }>;
38
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
51
39
  };
52
40
  path: string;
53
41
  route: string;
@@ -0,0 +1,32 @@
1
+ import type { TObject, TProperties } from '@sinclair/typebox';
2
+ import { asc } from 'drizzle-orm';
3
+ export declare const sortOrderSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>;
4
+ export type SortOrderType = typeof sortOrderSchema.static;
5
+ export type SortFieldKey<T extends TProperties> = Extract<keyof T, string>;
6
+ export type SortFieldKeyFromSchema<TSchema extends TObject> = SortFieldKey<TSchema['properties']>;
7
+ export type SortRule<TField extends string> = {
8
+ field: TField;
9
+ order?: SortOrderType;
10
+ };
11
+ export type DrizzleOrderByItem = ReturnType<typeof asc>;
12
+ export type SortableTable<TField extends string> = {
13
+ [K in TField]: Parameters<typeof asc>[0];
14
+ };
15
+ export declare function createSortSchemas<const TSchema extends TObject, const TField extends SortFieldKeyFromSchema<TSchema> = SortFieldKeyFromSchema<TSchema>>(dtoSchema: TSchema, pickFields?: readonly TField[]): {
16
+ sortableFieldsSchema: TObject<Pick<TSchema["properties"], TField>>;
17
+ sortFieldSchema: import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TUnionEvaluated<import("@sinclair/typebox").TKeyOfPropertyKeysToRest<import("@sinclair/typebox").UnionToTuple<TField, [], import("@sinclair/typebox").UnionLast<TField>>, []>>>;
18
+ sortSchema: TObject<{
19
+ field: import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TUnionEvaluated<import("@sinclair/typebox").TKeyOfPropertyKeysToRest<import("@sinclair/typebox").UnionToTuple<TField, [], import("@sinclair/typebox").UnionLast<TField>>, []>>>;
20
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
21
+ }>;
22
+ sortsSchema: import("@sinclair/typebox").TArray<TObject<{
23
+ field: import("@sinclair/typebox").Ensure<import("@sinclair/typebox").TUnionEvaluated<import("@sinclair/typebox").TKeyOfPropertyKeysToRest<import("@sinclair/typebox").UnionToTuple<TField, [], import("@sinclair/typebox").UnionLast<TField>>, []>>>;
24
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
25
+ }>>;
26
+ };
27
+ export declare function buildDrizzleOrderBy<TField extends string>(params: {
28
+ sorts?: SortRule<TField>[];
29
+ table: SortableTable<TField>;
30
+ fallbackOrderBy: DrizzleOrderByItem[];
31
+ stableOrderBy?: DrizzleOrderByItem[];
32
+ }): import("drizzle-orm").SQL<unknown>[];
@@ -291,11 +291,19 @@ export declare const withdrawOrderSelectModel: import("drizzle-typebox").BuildSc
291
291
  }, {}, {}>;
292
292
  }, undefined>;
293
293
  export type WithdrawOrderSelectModel = typeof withdrawOrderSelectModel.static;
294
- export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObject<{
295
- data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
294
+ export declare const withdrawAdminOrderListItemSchema: import("@sinclair/typebox").TObject<{
295
+ amount: import("@sinclair/typebox").TString;
296
+ assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
297
+ createdAt: import("@sinclair/typebox").TDate;
298
+ id: import("@sinclair/typebox").TString;
299
+ idempotencyKey: import("@sinclair/typebox").TString;
300
+ orderNo: import("@sinclair/typebox").TString;
301
+ paidAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
302
+ paidBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
303
+ receiptMethod: import("drizzle-typebox").BuildSchema<"select", {
296
304
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
297
305
  name: "created_at";
298
- tableName: "withdraw_order";
306
+ tableName: "user_receipt_method";
299
307
  dataType: "date";
300
308
  columnType: "PgTimestamp";
301
309
  data: Date;
@@ -312,7 +320,7 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
312
320
  }, {}, {}>;
313
321
  updatedAt: import("drizzle-orm/pg-core").PgColumn<{
314
322
  name: "updated_at";
315
- tableName: "withdraw_order";
323
+ tableName: "user_receipt_method";
316
324
  dataType: "date";
317
325
  columnType: "PgTimestamp";
318
326
  data: Date;
@@ -329,7 +337,7 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
329
337
  }, {}, {}>;
330
338
  id: import("drizzle-orm/pg-core").PgColumn<{
331
339
  name: "id";
332
- tableName: "withdraw_order";
340
+ tableName: "user_receipt_method";
333
341
  dataType: "string";
334
342
  columnType: "PgUUID";
335
343
  data: string;
@@ -344,9 +352,9 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
344
352
  identity: undefined;
345
353
  generated: undefined;
346
354
  }, {}, {}>;
347
- orderNo: import("drizzle-orm/pg-core").PgColumn<{
348
- name: "order_no";
349
- tableName: "withdraw_order";
355
+ userId: import("drizzle-orm/pg-core").PgColumn<{
356
+ name: "user_id";
357
+ tableName: "user_receipt_method";
350
358
  dataType: "string";
351
359
  columnType: "PgText";
352
360
  data: string;
@@ -361,26 +369,26 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
361
369
  identity: undefined;
362
370
  generated: undefined;
363
371
  }, {}, {}>;
364
- idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
365
- name: "idempotency_key";
366
- tableName: "withdraw_order";
372
+ type: import("drizzle-orm/pg-core").PgColumn<{
373
+ name: "type";
374
+ tableName: "user_receipt_method";
367
375
  dataType: "string";
368
- columnType: "PgText";
369
- data: string;
376
+ columnType: "PgEnumColumn";
377
+ data: "alipay" | "bank_card";
370
378
  driverParam: string;
371
379
  notNull: true;
372
380
  hasDefault: false;
373
381
  isPrimaryKey: false;
374
382
  isAutoincrement: false;
375
383
  hasRuntimeDefault: false;
376
- enumValues: [string, ...string[]];
384
+ enumValues: ["bank_card", "alipay"];
377
385
  baseColumn: never;
378
386
  identity: undefined;
379
387
  generated: undefined;
380
388
  }, {}, {}>;
381
- userId: import("drizzle-orm/pg-core").PgColumn<{
382
- name: "user_id";
383
- tableName: "withdraw_order";
389
+ fullName: import("drizzle-orm/pg-core").PgColumn<{
390
+ name: "full_name";
391
+ tableName: "user_receipt_method";
384
392
  dataType: "string";
385
393
  columnType: "PgText";
386
394
  data: string;
@@ -395,28 +403,11 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
395
403
  identity: undefined;
396
404
  generated: undefined;
397
405
  }, {}, {}>;
398
- sourceAccountId: import("drizzle-orm/pg-core").PgColumn<{
399
- name: "source_account_id";
400
- tableName: "withdraw_order";
406
+ bankName: import("drizzle-orm/pg-core").PgColumn<{
407
+ name: "bank_name";
408
+ tableName: "user_receipt_method";
401
409
  dataType: "string";
402
- columnType: "PgUUID";
403
- data: string;
404
- driverParam: string;
405
- notNull: false;
406
- hasDefault: false;
407
- isPrimaryKey: false;
408
- isAutoincrement: false;
409
- hasRuntimeDefault: false;
410
- enumValues: undefined;
411
- baseColumn: never;
412
- identity: undefined;
413
- generated: undefined;
414
- }, {}, {}>;
415
- assetId: import("drizzle-orm/pg-core").PgColumn<{
416
- name: "asset_id";
417
- tableName: "withdraw_order";
418
- dataType: "string";
419
- columnType: "PgUUID";
410
+ columnType: "PgText";
420
411
  data: string;
421
412
  driverParam: string;
422
413
  notNull: false;
@@ -424,65 +415,14 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
424
415
  isPrimaryKey: false;
425
416
  isAutoincrement: false;
426
417
  hasRuntimeDefault: false;
427
- enumValues: undefined;
428
- baseColumn: never;
429
- identity: undefined;
430
- generated: undefined;
431
- }, {}, {}>;
432
- receiptMethodId: import("drizzle-orm/pg-core").PgColumn<{
433
- name: "receipt_method_id";
434
- tableName: "withdraw_order";
435
- dataType: "string";
436
- columnType: "PgUUID";
437
- data: string;
438
- driverParam: string;
439
- notNull: true;
440
- hasDefault: false;
441
- isPrimaryKey: false;
442
- isAutoincrement: false;
443
- hasRuntimeDefault: false;
444
- enumValues: undefined;
445
- baseColumn: never;
446
- identity: undefined;
447
- generated: undefined;
448
- }, {}, {}>;
449
- amount: import("drizzle-orm/pg-core").PgColumn<{
450
- name: "amount";
451
- tableName: "withdraw_order";
452
- dataType: "string";
453
- columnType: "PgNumeric";
454
- data: string;
455
- driverParam: string;
456
- notNull: true;
457
- hasDefault: false;
458
- isPrimaryKey: false;
459
- isAutoincrement: false;
460
- hasRuntimeDefault: false;
461
- enumValues: undefined;
462
- baseColumn: never;
463
- identity: undefined;
464
- generated: undefined;
465
- }, {}, {}>;
466
- status: import("drizzle-orm/pg-core").PgColumn<{
467
- name: "status";
468
- tableName: "withdraw_order";
469
- dataType: "string";
470
- columnType: "PgEnumColumn";
471
- data: "completed" | "pending_payout" | "pending_review" | "rejected";
472
- driverParam: string;
473
- notNull: true;
474
- hasDefault: true;
475
- isPrimaryKey: false;
476
- isAutoincrement: false;
477
- hasRuntimeDefault: false;
478
- enumValues: ["pending_review", "pending_payout", "completed", "rejected"];
418
+ enumValues: [string, ...string[]];
479
419
  baseColumn: never;
480
420
  identity: undefined;
481
421
  generated: undefined;
482
422
  }, {}, {}>;
483
- reviewedBy: import("drizzle-orm/pg-core").PgColumn<{
484
- name: "reviewed_by";
485
- tableName: "withdraw_order";
423
+ bankBranchName: import("drizzle-orm/pg-core").PgColumn<{
424
+ name: "bank_branch_name";
425
+ tableName: "user_receipt_method";
486
426
  dataType: "string";
487
427
  columnType: "PgText";
488
428
  data: string;
@@ -497,26 +437,9 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
497
437
  identity: undefined;
498
438
  generated: undefined;
499
439
  }, {}, {}>;
500
- reviewedAt: import("drizzle-orm/pg-core").PgColumn<{
501
- name: "reviewed_at";
502
- tableName: "withdraw_order";
503
- dataType: "date";
504
- columnType: "PgTimestamp";
505
- data: Date;
506
- driverParam: string;
507
- notNull: false;
508
- hasDefault: false;
509
- isPrimaryKey: false;
510
- isAutoincrement: false;
511
- hasRuntimeDefault: false;
512
- enumValues: undefined;
513
- baseColumn: never;
514
- identity: undefined;
515
- generated: undefined;
516
- }, {}, {}>;
517
- reviewNote: import("drizzle-orm/pg-core").PgColumn<{
518
- name: "review_note";
519
- tableName: "withdraw_order";
440
+ bankCardNumber: import("drizzle-orm/pg-core").PgColumn<{
441
+ name: "bank_card_number";
442
+ tableName: "user_receipt_method";
520
443
  dataType: "string";
521
444
  columnType: "PgText";
522
445
  data: string;
@@ -531,9 +454,9 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
531
454
  identity: undefined;
532
455
  generated: undefined;
533
456
  }, {}, {}>;
534
- rejectReason: import("drizzle-orm/pg-core").PgColumn<{
535
- name: "reject_reason";
536
- tableName: "withdraw_order";
457
+ alipayName: import("drizzle-orm/pg-core").PgColumn<{
458
+ name: "alipay_name";
459
+ tableName: "user_receipt_method";
537
460
  dataType: "string";
538
461
  columnType: "PgText";
539
462
  data: string;
@@ -548,9 +471,9 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
548
471
  identity: undefined;
549
472
  generated: undefined;
550
473
  }, {}, {}>;
551
- paidBy: import("drizzle-orm/pg-core").PgColumn<{
552
- name: "paid_by";
553
- tableName: "withdraw_order";
474
+ alipayAccount: import("drizzle-orm/pg-core").PgColumn<{
475
+ name: "alipay_account";
476
+ tableName: "user_receipt_method";
554
477
  dataType: "string";
555
478
  columnType: "PgText";
556
479
  data: string;
@@ -565,24 +488,237 @@ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObj
565
488
  identity: undefined;
566
489
  generated: undefined;
567
490
  }, {}, {}>;
568
- paidAt: import("drizzle-orm/pg-core").PgColumn<{
569
- name: "paid_at";
570
- tableName: "withdraw_order";
571
- dataType: "date";
572
- columnType: "PgTimestamp";
573
- data: Date;
574
- driverParam: string;
575
- notNull: false;
576
- hasDefault: false;
577
- isPrimaryKey: false;
578
- isAutoincrement: false;
579
- hasRuntimeDefault: false;
580
- enumValues: undefined;
581
- baseColumn: never;
582
- identity: undefined;
583
- generated: undefined;
584
- }, {}, {}>;
585
- }, undefined>>;
491
+ }, undefined>;
492
+ receiptMethodId: import("@sinclair/typebox").TString;
493
+ rejectReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
494
+ reviewNote: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
495
+ reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
496
+ reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
497
+ sourceAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
498
+ status: import("@sinclair/typebox").TEnum<{
499
+ completed: "completed";
500
+ pending_payout: "pending_payout";
501
+ pending_review: "pending_review";
502
+ rejected: "rejected";
503
+ }>;
504
+ updatedAt: import("@sinclair/typebox").TDate;
505
+ userId: import("@sinclair/typebox").TString;
506
+ }>;
507
+ export type WithdrawAdminOrderListItemSchemaType = typeof withdrawAdminOrderListItemSchema.static;
508
+ export declare const withdrawOrderListResponse: import("@sinclair/typebox").TObject<{
509
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
510
+ amount: import("@sinclair/typebox").TString;
511
+ assetId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
512
+ createdAt: import("@sinclair/typebox").TDate;
513
+ id: import("@sinclair/typebox").TString;
514
+ idempotencyKey: import("@sinclair/typebox").TString;
515
+ orderNo: import("@sinclair/typebox").TString;
516
+ paidAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
517
+ paidBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
518
+ receiptMethod: import("drizzle-typebox").BuildSchema<"select", {
519
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
520
+ name: "created_at";
521
+ tableName: "user_receipt_method";
522
+ dataType: "date";
523
+ columnType: "PgTimestamp";
524
+ data: Date;
525
+ driverParam: string;
526
+ notNull: true;
527
+ hasDefault: true;
528
+ isPrimaryKey: false;
529
+ isAutoincrement: false;
530
+ hasRuntimeDefault: false;
531
+ enumValues: undefined;
532
+ baseColumn: never;
533
+ identity: undefined;
534
+ generated: undefined;
535
+ }, {}, {}>;
536
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
537
+ name: "updated_at";
538
+ tableName: "user_receipt_method";
539
+ dataType: "date";
540
+ columnType: "PgTimestamp";
541
+ data: Date;
542
+ driverParam: string;
543
+ notNull: true;
544
+ hasDefault: true;
545
+ isPrimaryKey: false;
546
+ isAutoincrement: false;
547
+ hasRuntimeDefault: false;
548
+ enumValues: undefined;
549
+ baseColumn: never;
550
+ identity: undefined;
551
+ generated: undefined;
552
+ }, {}, {}>;
553
+ id: import("drizzle-orm/pg-core").PgColumn<{
554
+ name: "id";
555
+ tableName: "user_receipt_method";
556
+ dataType: "string";
557
+ columnType: "PgUUID";
558
+ data: string;
559
+ driverParam: string;
560
+ notNull: true;
561
+ hasDefault: true;
562
+ isPrimaryKey: true;
563
+ isAutoincrement: false;
564
+ hasRuntimeDefault: false;
565
+ enumValues: undefined;
566
+ baseColumn: never;
567
+ identity: undefined;
568
+ generated: undefined;
569
+ }, {}, {}>;
570
+ userId: import("drizzle-orm/pg-core").PgColumn<{
571
+ name: "user_id";
572
+ tableName: "user_receipt_method";
573
+ dataType: "string";
574
+ columnType: "PgText";
575
+ data: string;
576
+ driverParam: string;
577
+ notNull: true;
578
+ hasDefault: false;
579
+ isPrimaryKey: false;
580
+ isAutoincrement: false;
581
+ hasRuntimeDefault: false;
582
+ enumValues: [string, ...string[]];
583
+ baseColumn: never;
584
+ identity: undefined;
585
+ generated: undefined;
586
+ }, {}, {}>;
587
+ type: import("drizzle-orm/pg-core").PgColumn<{
588
+ name: "type";
589
+ tableName: "user_receipt_method";
590
+ dataType: "string";
591
+ columnType: "PgEnumColumn";
592
+ data: "alipay" | "bank_card";
593
+ driverParam: string;
594
+ notNull: true;
595
+ hasDefault: false;
596
+ isPrimaryKey: false;
597
+ isAutoincrement: false;
598
+ hasRuntimeDefault: false;
599
+ enumValues: ["bank_card", "alipay"];
600
+ baseColumn: never;
601
+ identity: undefined;
602
+ generated: undefined;
603
+ }, {}, {}>;
604
+ fullName: import("drizzle-orm/pg-core").PgColumn<{
605
+ name: "full_name";
606
+ tableName: "user_receipt_method";
607
+ dataType: "string";
608
+ columnType: "PgText";
609
+ data: string;
610
+ driverParam: string;
611
+ notNull: true;
612
+ hasDefault: false;
613
+ isPrimaryKey: false;
614
+ isAutoincrement: false;
615
+ hasRuntimeDefault: false;
616
+ enumValues: [string, ...string[]];
617
+ baseColumn: never;
618
+ identity: undefined;
619
+ generated: undefined;
620
+ }, {}, {}>;
621
+ bankName: import("drizzle-orm/pg-core").PgColumn<{
622
+ name: "bank_name";
623
+ tableName: "user_receipt_method";
624
+ dataType: "string";
625
+ columnType: "PgText";
626
+ data: string;
627
+ driverParam: string;
628
+ notNull: false;
629
+ hasDefault: false;
630
+ isPrimaryKey: false;
631
+ isAutoincrement: false;
632
+ hasRuntimeDefault: false;
633
+ enumValues: [string, ...string[]];
634
+ baseColumn: never;
635
+ identity: undefined;
636
+ generated: undefined;
637
+ }, {}, {}>;
638
+ bankBranchName: import("drizzle-orm/pg-core").PgColumn<{
639
+ name: "bank_branch_name";
640
+ tableName: "user_receipt_method";
641
+ dataType: "string";
642
+ columnType: "PgText";
643
+ data: string;
644
+ driverParam: string;
645
+ notNull: false;
646
+ hasDefault: false;
647
+ isPrimaryKey: false;
648
+ isAutoincrement: false;
649
+ hasRuntimeDefault: false;
650
+ enumValues: [string, ...string[]];
651
+ baseColumn: never;
652
+ identity: undefined;
653
+ generated: undefined;
654
+ }, {}, {}>;
655
+ bankCardNumber: import("drizzle-orm/pg-core").PgColumn<{
656
+ name: "bank_card_number";
657
+ tableName: "user_receipt_method";
658
+ dataType: "string";
659
+ columnType: "PgText";
660
+ data: string;
661
+ driverParam: string;
662
+ notNull: false;
663
+ hasDefault: false;
664
+ isPrimaryKey: false;
665
+ isAutoincrement: false;
666
+ hasRuntimeDefault: false;
667
+ enumValues: [string, ...string[]];
668
+ baseColumn: never;
669
+ identity: undefined;
670
+ generated: undefined;
671
+ }, {}, {}>;
672
+ alipayName: import("drizzle-orm/pg-core").PgColumn<{
673
+ name: "alipay_name";
674
+ tableName: "user_receipt_method";
675
+ dataType: "string";
676
+ columnType: "PgText";
677
+ data: string;
678
+ driverParam: string;
679
+ notNull: false;
680
+ hasDefault: false;
681
+ isPrimaryKey: false;
682
+ isAutoincrement: false;
683
+ hasRuntimeDefault: false;
684
+ enumValues: [string, ...string[]];
685
+ baseColumn: never;
686
+ identity: undefined;
687
+ generated: undefined;
688
+ }, {}, {}>;
689
+ alipayAccount: import("drizzle-orm/pg-core").PgColumn<{
690
+ name: "alipay_account";
691
+ tableName: "user_receipt_method";
692
+ dataType: "string";
693
+ columnType: "PgText";
694
+ data: string;
695
+ driverParam: string;
696
+ notNull: false;
697
+ hasDefault: false;
698
+ isPrimaryKey: false;
699
+ isAutoincrement: false;
700
+ hasRuntimeDefault: false;
701
+ enumValues: [string, ...string[]];
702
+ baseColumn: never;
703
+ identity: undefined;
704
+ generated: undefined;
705
+ }, {}, {}>;
706
+ }, undefined>;
707
+ receiptMethodId: import("@sinclair/typebox").TString;
708
+ rejectReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
709
+ reviewNote: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
710
+ reviewedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
711
+ reviewedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
712
+ sourceAccountId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
713
+ status: import("@sinclair/typebox").TEnum<{
714
+ completed: "completed";
715
+ pending_payout: "pending_payout";
716
+ pending_review: "pending_review";
717
+ rejected: "rejected";
718
+ }>;
719
+ updatedAt: import("@sinclair/typebox").TDate;
720
+ userId: import("@sinclair/typebox").TString;
721
+ }>>;
586
722
  pagination: import("@sinclair/typebox").TObject<{
587
723
  pageSize: import("@sinclair/typebox").TNumber;
588
724
  pageIndex: import("@sinclair/typebox").TNumber;