@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.
@@ -969,6 +969,10 @@ export declare const adminRouter: Elysia<"/admin", {
969
969
  offset?: number | undefined;
970
970
  pageIndex?: number | undefined;
971
971
  pageSize?: number | undefined;
972
+ sorts?: {
973
+ field: "category" | "code" | "createdAt" | "isActive" | "name" | "precision" | "updatedAt";
974
+ order?: "asc" | "desc" | undefined;
975
+ }[] | undefined;
972
976
  typeId?: string | null | undefined;
973
977
  };
974
978
  headers: {};
@@ -4800,7 +4804,7 @@ export declare const adminRouter: Elysia<"/admin", {
4800
4804
  200: {
4801
4805
  data: {
4802
4806
  baseAssetIdSnapshot: string;
4803
- control?: {
4807
+ control: {
4804
4808
  createdAt: Date;
4805
4809
  updatedAt: Date;
4806
4810
  id: string;
@@ -4817,7 +4821,7 @@ export declare const adminRouter: Elysia<"/admin", {
4817
4821
  failureCode: string | null;
4818
4822
  failureReason: string | null;
4819
4823
  appliedAt: Date | null;
4820
- } | undefined;
4824
+ } | null;
4821
4825
  createdAt: Date;
4822
4826
  direction: "down" | "up";
4823
4827
  durationConfig: {
@@ -6607,6 +6611,10 @@ export declare const adminRouter: Elysia<"/admin", {
6607
6611
  pageIndex?: number | undefined;
6608
6612
  pageSize?: number | undefined;
6609
6613
  quoteAssetId?: string | undefined;
6614
+ sorts?: {
6615
+ field: "baseAssetId" | "createdAt" | "intervalSeconds" | "isEnabled" | "liquiditySession" | "name" | "quoteAssetId" | "trendMode" | "updatedAt";
6616
+ order?: "asc" | "desc" | undefined;
6617
+ }[] | undefined;
6610
6618
  };
6611
6619
  headers: {};
6612
6620
  response: {
@@ -7239,23 +7247,36 @@ export declare const adminRouter: Elysia<"/admin", {
7239
7247
  response: {
7240
7248
  200: {
7241
7249
  data: {
7250
+ amount: string;
7251
+ assetId: string | null;
7242
7252
  createdAt: Date;
7243
- updatedAt: Date;
7244
7253
  id: string;
7245
- orderNo: string;
7246
7254
  idempotencyKey: string;
7247
- userId: string;
7248
- sourceAccountId: string | null;
7249
- assetId: string | null;
7255
+ orderNo: string;
7256
+ paidAt: Date | null;
7257
+ paidBy: string | null;
7258
+ receiptMethod: {
7259
+ createdAt: Date;
7260
+ updatedAt: Date;
7261
+ id: string;
7262
+ userId: string;
7263
+ type: "alipay" | "bank_card";
7264
+ fullName: string;
7265
+ bankName: string | null;
7266
+ bankBranchName: string | null;
7267
+ bankCardNumber: string | null;
7268
+ alipayName: string | null;
7269
+ alipayAccount: string | null;
7270
+ };
7250
7271
  receiptMethodId: string;
7251
- amount: string;
7252
- status: "completed" | "pending_payout" | "pending_review" | "rejected";
7253
- reviewedBy: string | null;
7254
- reviewedAt: Date | null;
7255
- reviewNote: string | null;
7256
7272
  rejectReason: string | null;
7257
- paidBy: string | null;
7258
- paidAt: Date | null;
7273
+ reviewNote: string | null;
7274
+ reviewedAt: Date | null;
7275
+ reviewedBy: string | null;
7276
+ sourceAccountId: string | null;
7277
+ status: "completed" | "pending_payout" | "pending_review" | "rejected";
7278
+ updatedAt: Date;
7279
+ userId: string;
7259
7280
  }[];
7260
7281
  pagination: {
7261
7282
  pageSize: number;
@@ -1,3 +1,12 @@
1
+ export declare const assetAdminSortFieldSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"category">, import("@sinclair/typebox").TLiteral<"code">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"isActive">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"precision">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
2
+ export type AssetAdminSortFieldType = typeof assetAdminSortFieldSchema.static;
3
+ export declare const assetAdminSortOrderSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>;
4
+ export type AssetAdminSortOrderType = typeof assetAdminSortOrderSchema.static;
5
+ export declare const assetAdminSortSchema: import("@sinclair/typebox").TObject<{
6
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"category">, import("@sinclair/typebox").TLiteral<"code">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"isActive">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"precision">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
7
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
8
+ }>;
9
+ export type AssetAdminSortType = typeof assetAdminSortSchema.static;
1
10
  export declare const assetAdminListQuerySchema: import("@sinclair/typebox").TObject<{
2
11
  category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
3
12
  CRYPTO: "CRYPTO";
@@ -15,6 +24,10 @@ export declare const assetAdminListQuerySchema: import("@sinclair/typebox").TObj
15
24
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
16
25
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
17
26
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
27
+ sorts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
28
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"category">, import("@sinclair/typebox").TLiteral<"code">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"isActive">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"precision">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
29
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
30
+ }>>>;
18
31
  typeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
19
32
  }>;
20
33
  export type AssetAdminListQueryType = typeof assetAdminListQuerySchema.static;
@@ -395,6 +395,10 @@ export declare const assetAdminRouter: Elysia<"/assets", {
395
395
  offset?: number | undefined;
396
396
  pageIndex?: number | undefined;
397
397
  pageSize?: number | undefined;
398
+ sorts?: {
399
+ field: "category" | "code" | "createdAt" | "isActive" | "name" | "precision" | "updatedAt";
400
+ order?: "asc" | "desc" | undefined;
401
+ }[] | undefined;
398
402
  typeId?: string | null | undefined;
399
403
  };
400
404
  headers: {};
@@ -3,6 +3,7 @@ import { BaseAssetService } from '../internal/service';
3
3
  export interface AssetAdminListQueryOptions extends AssetAdminListQueryType {
4
4
  }
5
5
  export declare abstract class AdminAssetService extends BaseAssetService {
6
+ private static buildAdminListOrderBy;
6
7
  private static getLatestPriceMapForAssets;
7
8
  private static resolveIconUrlByFileId;
8
9
  private static buildAdminListWhere;
@@ -15,6 +15,25 @@ export declare const auth: import("better-auth").Auth<{
15
15
  name: string;
16
16
  image?: string | null | undefined;
17
17
  } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<void>;
18
+ readonly before: (user: {
19
+ id: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ email: string;
23
+ emailVerified: boolean;
24
+ name: string;
25
+ image?: string | null | undefined;
26
+ } & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null) => Promise<{
27
+ data: {
28
+ id: string;
29
+ createdAt: Date;
30
+ updatedAt: Date;
31
+ email: string;
32
+ emailVerified: boolean;
33
+ name: string;
34
+ image?: string | null | undefined;
35
+ } & Record<string, unknown>;
36
+ }>;
18
37
  };
19
38
  };
20
39
  };
@@ -51,6 +51,8 @@ export declare const authZhTranslations: {
51
51
  METHOD_NOT_ALLOWED_DEFER_SESSION_REQUIRED: string;
52
52
  BODY_MUST_BE_AN_OBJECT: string;
53
53
  PASSWORD_ALREADY_SET: string;
54
+ INVITE_CODE_REQUIRED: string;
55
+ INVITE_CODE_INVALID: string;
54
56
  INVALID_USERNAME_OR_PASSWORD: string;
55
57
  USERNAME_IS_ALREADY_TAKEN: string;
56
58
  USERNAME_TOO_SHORT: string;
@@ -35,19 +35,7 @@ export declare const bankAccountAdminRouter: Elysia<"/bank_account", {
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;
@@ -962,7 +962,7 @@ export declare const binaryOptionAdminOrderListQuerySchema: import("@sinclair/ty
962
962
  export type BinaryOptionAdminOrderListQueryType = typeof binaryOptionAdminOrderListQuerySchema.static;
963
963
  export declare const binaryOptionAdminOrderItemSchema: import("@sinclair/typebox").TObject<{
964
964
  baseAssetIdSnapshot: import("@sinclair/typebox").TString;
965
- control: import("@sinclair/typebox").TOptional<import("drizzle-typebox").BuildSchema<"select", {
965
+ control: import("@sinclair/typebox").TUnion<[import("drizzle-typebox").BuildSchema<"select", {
966
966
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
967
967
  name: "created_at";
968
968
  tableName: "binary_option_order_control";
@@ -1235,7 +1235,7 @@ export declare const binaryOptionAdminOrderItemSchema: import("@sinclair/typebox
1235
1235
  identity: undefined;
1236
1236
  generated: undefined;
1237
1237
  }, {}, {}>;
1238
- }, undefined>>;
1238
+ }, undefined>, import("@sinclair/typebox").TNull]>;
1239
1239
  createdAt: import("@sinclair/typebox").TDate;
1240
1240
  direction: import("@sinclair/typebox").TEnum<{
1241
1241
  down: "down";
@@ -1457,7 +1457,7 @@ export declare const binaryOptionAdminOrderItemSchema: import("@sinclair/typebox
1457
1457
  export declare const binaryOptionAdminOrderListResponseSchema: import("@sinclair/typebox").TObject<{
1458
1458
  data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1459
1459
  baseAssetIdSnapshot: import("@sinclair/typebox").TString;
1460
- control: import("@sinclair/typebox").TOptional<import("drizzle-typebox").BuildSchema<"select", {
1460
+ control: import("@sinclair/typebox").TUnion<[import("drizzle-typebox").BuildSchema<"select", {
1461
1461
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1462
1462
  name: "created_at";
1463
1463
  tableName: "binary_option_order_control";
@@ -1730,7 +1730,7 @@ export declare const binaryOptionAdminOrderListResponseSchema: import("@sinclair
1730
1730
  identity: undefined;
1731
1731
  generated: undefined;
1732
1732
  }, {}, {}>;
1733
- }, undefined>>;
1733
+ }, undefined>, import("@sinclair/typebox").TNull]>;
1734
1734
  createdAt: import("@sinclair/typebox").TDate;
1735
1735
  direction: import("@sinclair/typebox").TEnum<{
1736
1736
  down: "down";
@@ -1083,7 +1083,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
1083
1083
  200: {
1084
1084
  data: {
1085
1085
  baseAssetIdSnapshot: string;
1086
- control?: {
1086
+ control: {
1087
1087
  createdAt: Date;
1088
1088
  updatedAt: Date;
1089
1089
  id: string;
@@ -1100,7 +1100,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
1100
1100
  failureCode: string | null;
1101
1101
  failureReason: string | null;
1102
1102
  appliedAt: Date | null;
1103
- } | undefined;
1103
+ } | null;
1104
1104
  createdAt: Date;
1105
1105
  direction: "down" | "up";
1106
1106
  durationConfig: {
@@ -366,7 +366,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
366
366
  sortOrder: number;
367
367
  }>;
368
368
  static listOrders(query?: BinaryOptionAdminOrderListQueryType): Promise<{
369
- items: {
369
+ items: ({
370
370
  baseAssetIdSnapshot: string;
371
371
  control: {
372
372
  appliedAssetPriceId: string | null;
@@ -437,7 +437,61 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
437
437
  };
438
438
  userId: string;
439
439
  winPayoutMultiplierSnapshot: string;
440
- }[];
440
+ } | {
441
+ control: null;
442
+ baseAssetIdSnapshot: string;
443
+ createdAt: Date;
444
+ direction: "down" | "up";
445
+ durationConfig: {
446
+ createdAt: Date;
447
+ durationSeconds: number;
448
+ id: string;
449
+ isEnabled: boolean;
450
+ losePayoutMultiplier: string;
451
+ marketId: string;
452
+ sortOrder: number;
453
+ updatedAt: Date;
454
+ winPayoutMultiplier: string;
455
+ };
456
+ durationConfigId: string;
457
+ durationSeconds: number;
458
+ expireAt: Date;
459
+ failureCode: string | null;
460
+ failureReason: string | null;
461
+ id: string;
462
+ idempotencyKey: string;
463
+ losePayoutMultiplierSnapshot: string;
464
+ market: {
465
+ id: string;
466
+ name: string;
467
+ status: "active" | "draft" | "ended" | "paused";
468
+ symbolSnapshot: string;
469
+ };
470
+ marketId: string;
471
+ marketNameSnapshot: string;
472
+ openPrice: string;
473
+ openPriceAt: Date;
474
+ orderNo: string;
475
+ payoutAmount: string | null;
476
+ quoteAssetIdSnapshot: string;
477
+ result: "cancelled" | "draw" | "expired" | "failed" | "lose" | "win" | null;
478
+ settlementPrice: string | null;
479
+ settlementPriceAt: Date | null;
480
+ stakeAmount: string;
481
+ stakeLedgerEntryId: string | null;
482
+ status: "active" | "cancelled" | "created" | "expired" | "failed" | "settled";
483
+ symbolSnapshot: string;
484
+ updatedAt: Date;
485
+ user: {
486
+ displayUsername: string | null;
487
+ email: string;
488
+ id: string;
489
+ name: string;
490
+ username: string | null;
491
+ };
492
+ userId: string;
493
+ winPayoutMultiplierSnapshot: string;
494
+ })[];
441
495
  total: number;
442
496
  }>;
443
497
  static listSettlements(query?: BinaryOptionAdminSettlementListQueryType): Promise<{
@@ -30,6 +30,7 @@ export declare const BinaryOptionErrorCodes: {
30
30
  readonly BINARY_OPTION_STAKE_AMOUNT_INVALID: 'BINARY_OPTION_STAKE_AMOUNT_INVALID';
31
31
  readonly BINARY_OPTION_STAKE_AMOUNT_OUT_OF_RANGE: 'BINARY_OPTION_STAKE_AMOUNT_OUT_OF_RANGE';
32
32
  readonly BINARY_OPTION_TRANSACTION_PASSWORD_REQUIRED: 'BINARY_OPTION_TRANSACTION_PASSWORD_REQUIRED';
33
+ readonly BINARY_OPTION_SUPER_ADMIN_REQUIRED: 'BINARY_OPTION_SUPER_ADMIN_REQUIRED';
33
34
  };
34
35
  type BinaryOptionErrorCodesType = typeof BinaryOptionErrorCodes;
35
36
  export type BinaryOptionErrorCode = keyof BinaryOptionErrorCodesType;
@@ -29,6 +29,7 @@ export declare const zh: {
29
29
  BINARY_OPTION_STAKE_AMOUNT_INVALID: string;
30
30
  BINARY_OPTION_STAKE_AMOUNT_OUT_OF_RANGE: string;
31
31
  BINARY_OPTION_TRANSACTION_PASSWORD_REQUIRED: string;
32
+ BINARY_OPTION_SUPER_ADMIN_REQUIRED: string;
32
33
  };
33
34
  type ZHType = typeof zh;
34
35
  declare module '../../../error/messages' {
@@ -18,6 +18,8 @@ interface BinaryOptionSettlementRunInput {
18
18
  operatorId?: string;
19
19
  }
20
20
  export declare abstract class InternalBinaryOptionService {
21
+ private static buildOrderActiveNotificationContent;
22
+ private static buildOrderSettledNotificationContent;
21
23
  private static buildLast10UtcCalendarDays;
22
24
  private static completeTrend10dSparse;
23
25
  private static loadPriceTrend10dMap;
package/dist/index.d.ts CHANGED
@@ -1553,6 +1553,10 @@ declare const app: Elysia<"/api", {
1553
1553
  offset?: number | undefined;
1554
1554
  pageIndex?: number | undefined;
1555
1555
  pageSize?: number | undefined;
1556
+ sorts?: {
1557
+ field: "category" | "code" | "createdAt" | "isActive" | "name" | "precision" | "updatedAt";
1558
+ order?: "asc" | "desc" | undefined;
1559
+ }[] | undefined;
1556
1560
  typeId?: string | null | undefined;
1557
1561
  };
1558
1562
  headers: {};
@@ -5384,7 +5388,7 @@ declare const app: Elysia<"/api", {
5384
5388
  200: {
5385
5389
  data: {
5386
5390
  baseAssetIdSnapshot: string;
5387
- control?: {
5391
+ control: {
5388
5392
  createdAt: Date;
5389
5393
  updatedAt: Date;
5390
5394
  id: string;
@@ -5401,7 +5405,7 @@ declare const app: Elysia<"/api", {
5401
5405
  failureCode: string | null;
5402
5406
  failureReason: string | null;
5403
5407
  appliedAt: Date | null;
5404
- } | undefined;
5408
+ } | null;
5405
5409
  createdAt: Date;
5406
5410
  direction: "down" | "up";
5407
5411
  durationConfig: {
@@ -7191,6 +7195,10 @@ declare const app: Elysia<"/api", {
7191
7195
  pageIndex?: number | undefined;
7192
7196
  pageSize?: number | undefined;
7193
7197
  quoteAssetId?: string | undefined;
7198
+ sorts?: {
7199
+ field: "baseAssetId" | "createdAt" | "intervalSeconds" | "isEnabled" | "liquiditySession" | "name" | "quoteAssetId" | "trendMode" | "updatedAt";
7200
+ order?: "asc" | "desc" | undefined;
7201
+ }[] | undefined;
7194
7202
  };
7195
7203
  headers: {};
7196
7204
  response: {
@@ -7823,23 +7831,36 @@ declare const app: Elysia<"/api", {
7823
7831
  response: {
7824
7832
  200: {
7825
7833
  data: {
7834
+ amount: string;
7835
+ assetId: string | null;
7826
7836
  createdAt: Date;
7827
- updatedAt: Date;
7828
7837
  id: string;
7829
- orderNo: string;
7830
7838
  idempotencyKey: string;
7831
- userId: string;
7832
- sourceAccountId: string | null;
7833
- assetId: string | null;
7839
+ orderNo: string;
7840
+ paidAt: Date | null;
7841
+ paidBy: string | null;
7842
+ receiptMethod: {
7843
+ createdAt: Date;
7844
+ updatedAt: Date;
7845
+ id: string;
7846
+ userId: string;
7847
+ type: "alipay" | "bank_card";
7848
+ fullName: string;
7849
+ bankName: string | null;
7850
+ bankBranchName: string | null;
7851
+ bankCardNumber: string | null;
7852
+ alipayName: string | null;
7853
+ alipayAccount: string | null;
7854
+ };
7834
7855
  receiptMethodId: string;
7835
- amount: string;
7836
- status: "completed" | "pending_payout" | "pending_review" | "rejected";
7837
- reviewedBy: string | null;
7838
- reviewedAt: Date | null;
7839
- reviewNote: string | null;
7840
7856
  rejectReason: string | null;
7841
- paidBy: string | null;
7842
- paidAt: Date | null;
7857
+ reviewNote: string | null;
7858
+ reviewedAt: Date | null;
7859
+ reviewedBy: string | null;
7860
+ sourceAccountId: string | null;
7861
+ status: "completed" | "pending_payout" | "pending_review" | "rejected";
7862
+ updatedAt: Date;
7863
+ userId: string;
7843
7864
  }[];
7844
7865
  pagination: {
7845
7866
  pageSize: number;
@@ -1,7 +1,10 @@
1
1
  import type { AdminManualAdjustCnyBalanceByUsersBatchInputType, AdminManualAdjustLedgerAccountByUsersBatchInputType, AdminManualAdjustLedgerAccountBatchInputType, AdminManualAdjustLedgerAccountInputType, LedgerAccountStatusUpdateInputType } from './dto.schemas';
2
2
  import { BaseLedgerAccountService, type LedgerAccountListQueryOptions } from '../internal/service';
3
3
  export declare abstract class AdminLedgerAccountService extends BaseLedgerAccountService {
4
+ private static buildCnyBalanceAdjustNotificationTitle;
5
+ private static buildCnyBalanceAdjustNotificationContent;
4
6
  private static normalizePositiveAmount;
7
+ private static createCompletedDepositOrderForCnyAdjust;
5
8
  private static resolveAdjustTargetAccount;
6
9
  private static buildCnyBalanceAdjustReferenceId;
7
10
  private static isSameManualAdjust;
@@ -212,7 +215,22 @@ export declare abstract class AdminLedgerAccountService extends BaseLedgerAccoun
212
215
  userId: string;
213
216
  version: number;
214
217
  }>;
215
- static manualAdjustLedgerAccount(operatorId: string, input: AdminManualAdjustLedgerAccountInputType): Promise<{
218
+ static manualAdjustLedgerAccount(operatorId: string, input: AdminManualAdjustLedgerAccountInputType, options?: {
219
+ notify?: {
220
+ userId: string;
221
+ type: 'system' | 'transaction' | 'activity' | 'security';
222
+ category: string;
223
+ title: string;
224
+ content: string;
225
+ priority?: 'low' | 'normal' | 'high' | 'urgent';
226
+ };
227
+ createDepositOrder?: {
228
+ userId: string;
229
+ operatorId: string;
230
+ referenceId: string;
231
+ memo?: string | null | undefined;
232
+ };
233
+ }): Promise<{
216
234
  accountId: string;
217
235
  userId: string;
218
236
  assetId: string;
@@ -35,7 +35,19 @@ export declare const ledgerAccountTransferRouter: Elysia<"/ledger_account_transf
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
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
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;
@@ -1,3 +1,12 @@
1
+ export declare const marketPricingStrategySortFieldSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"baseAssetId">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"intervalSeconds">, import("@sinclair/typebox").TLiteral<"isEnabled">, import("@sinclair/typebox").TLiteral<"liquiditySession">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"quoteAssetId">, import("@sinclair/typebox").TLiteral<"trendMode">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
2
+ export type MarketPricingStrategySortFieldType = typeof marketPricingStrategySortFieldSchema.static;
3
+ export declare const marketPricingStrategySortOrderSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>;
4
+ export type MarketPricingStrategySortOrderType = typeof marketPricingStrategySortOrderSchema.static;
5
+ export declare const marketPricingStrategySortSchema: import("@sinclair/typebox").TObject<{
6
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"baseAssetId">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"intervalSeconds">, import("@sinclair/typebox").TLiteral<"isEnabled">, import("@sinclair/typebox").TLiteral<"liquiditySession">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"quoteAssetId">, import("@sinclair/typebox").TLiteral<"trendMode">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
7
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
8
+ }>;
9
+ export type MarketPricingStrategySortType = typeof marketPricingStrategySortSchema.static;
1
10
  export declare const marketPricingStrategyCreateBasicSchema: import("@sinclair/typebox").TObject<{
2
11
  name: import("@sinclair/typebox").TString;
3
12
  baseAssetId: import("@sinclair/typebox").TString;
@@ -120,6 +129,10 @@ export declare const marketPricingStrategyListQuerySchema: import("@sinclair/typ
120
129
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
121
130
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
122
131
  quoteAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
132
+ sorts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
133
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"baseAssetId">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"intervalSeconds">, import("@sinclair/typebox").TLiteral<"isEnabled">, import("@sinclair/typebox").TLiteral<"liquiditySession">, import("@sinclair/typebox").TLiteral<"name">, import("@sinclair/typebox").TLiteral<"quoteAssetId">, import("@sinclair/typebox").TLiteral<"trendMode">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
134
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
135
+ }>>>;
123
136
  }>;
124
137
  export type MarketPricingStrategyListQueryType = typeof marketPricingStrategyListQuerySchema.static;
125
138
  export declare const marketPricingStrategyBasicResponseSchema: import("@sinclair/typebox").TObject<{
@@ -793,6 +793,10 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
793
793
  pageIndex?: number | undefined;
794
794
  pageSize?: number | undefined;
795
795
  quoteAssetId?: string | undefined;
796
+ sorts?: {
797
+ field: "baseAssetId" | "createdAt" | "intervalSeconds" | "isEnabled" | "liquiditySession" | "name" | "quoteAssetId" | "trendMode" | "updatedAt";
798
+ order?: "asc" | "desc" | undefined;
799
+ }[] | undefined;
796
800
  };
797
801
  headers: {};
798
802
  response: {
@@ -1,5 +1,6 @@
1
1
  import type { MarketPricingStrategyCreateInputType, MarketPricingStrategyListQueryType, MarketPricingStrategyUpdateInputType } from './dto.schemas';
2
2
  export declare abstract class AdminMarketPricingService {
3
+ private static buildStrategyListOrderBy;
3
4
  private static toBasicStrategy;
4
5
  private static toAdvancedStrategy;
5
6
  private static toListItem;
@@ -1,2 +1,4 @@
1
1
  export declare const createNumericNanoid: (size?: number) => string;
2
2
  export default createNumericNanoid;
3
+ export declare const createClearUppercaseNanoid: (size?: number) => string;
4
+ export declare const createUppercaseNanoid: (size?: number) => string;
@@ -35,7 +35,19 @@ export declare const newsAdminRouter: Elysia<"/news", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
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
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;
@@ -35,7 +35,19 @@ export declare const receiptMethodAdminRouter: Elysia<"/receipt_method", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
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
+ }>;
39
51
  };
40
52
  path: string;
41
53
  route: string;