@aitlabs/namkwong 0.0.114 → 0.0.116

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.
@@ -7058,6 +7058,10 @@ export declare const adminRouter: Elysia<"/admin", {
7058
7058
  userId?: string | undefined;
7059
7059
  status?: "approved" | "cancelled" | "completed" | "pending" | "rejected" | undefined;
7060
7060
  orderNo?: string | undefined;
7061
+ sorts?: {
7062
+ field: "actualAmount" | "amount" | "createdAt" | "orderNo" | "status" | "updatedAt";
7063
+ order?: "asc" | "desc" | undefined;
7064
+ }[] | undefined;
7061
7065
  };
7062
7066
  headers: {};
7063
7067
  response: {
@@ -35,7 +35,19 @@ export declare const assetAdminRouter: Elysia<"/assets", {
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;
@@ -21,8 +21,12 @@ export declare abstract class InternalBinaryOptionService {
21
21
  private static buildOrderActiveNotificationContent;
22
22
  private static buildOrderSettledNotificationContent;
23
23
  private static buildLast10UtcCalendarDays;
24
+ private static formatUtcMinuteKey;
25
+ private static buildLast10UtcMinutes;
24
26
  private static completeTrend10dSparse;
27
+ private static completeTrend10mSparse;
25
28
  private static loadPriceTrend10dMap;
29
+ private static loadPriceTrend10mMap;
26
30
  private static enrichMarketsWithBaseAssetPrice;
27
31
  private static validateUserId;
28
32
  private static parseStakeAmount;
@@ -195,11 +195,17 @@ export declare const binaryOptionUserMarketItemSchema: import("@sinclair/typebox
195
195
  effectiveAt: import("@sinclair/typebox").TDate;
196
196
  }>, import("@sinclair/typebox").TNull]>;
197
197
  dailyChangeRate: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
198
+ minuteChangeRate: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
198
199
  trend10d: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
199
200
  date: import("@sinclair/typebox").TString;
200
201
  price: import("@sinclair/typebox").TString;
201
202
  effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
202
203
  }>>;
204
+ trend10m: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
205
+ minute: import("@sinclair/typebox").TString;
206
+ price: import("@sinclair/typebox").TString;
207
+ effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
208
+ }>>;
203
209
  }>;
204
210
  symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
205
211
  }>;
@@ -428,11 +434,17 @@ export declare const binaryOptionUserMarketListResponseSchema: import("@sinclair
428
434
  effectiveAt: import("@sinclair/typebox").TDate;
429
435
  }>, import("@sinclair/typebox").TNull]>;
430
436
  dailyChangeRate: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
437
+ minuteChangeRate: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
431
438
  trend10d: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
432
439
  date: import("@sinclair/typebox").TString;
433
440
  price: import("@sinclair/typebox").TString;
434
441
  effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
435
442
  }>>;
443
+ trend10m: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
444
+ minute: import("@sinclair/typebox").TString;
445
+ price: import("@sinclair/typebox").TString;
446
+ effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
447
+ }>>;
436
448
  }>;
437
449
  symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
438
450
  }>;
@@ -434,11 +434,17 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
434
434
  effectiveAt: Date;
435
435
  } | null;
436
436
  dailyChangeRate: string | null;
437
+ minuteChangeRate: string | null;
437
438
  trend10d: {
438
439
  date: string;
439
440
  price: string;
440
441
  effectiveAt: string | Date;
441
442
  }[];
443
+ trend10m: {
444
+ minute: string;
445
+ price: string;
446
+ effectiveAt: string | Date;
447
+ }[];
442
448
  };
443
449
  symbol: string | null;
444
450
  };
@@ -535,11 +541,17 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
535
541
  effectiveAt: Date;
536
542
  } | null;
537
543
  dailyChangeRate: string | null;
544
+ minuteChangeRate: string | null;
538
545
  trend10d: {
539
546
  date: string;
540
547
  price: string;
541
548
  effectiveAt: string | Date;
542
549
  }[];
550
+ trend10m: {
551
+ minute: string;
552
+ price: string;
553
+ effectiveAt: string | Date;
554
+ }[];
543
555
  };
544
556
  symbol: string | null;
545
557
  };
@@ -1,3 +1,12 @@
1
+ export declare const depositAdminSortFieldModel: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"actualAmount">, import("@sinclair/typebox").TLiteral<"amount">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"orderNo">, import("@sinclair/typebox").TLiteral<"status">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
2
+ export type DepositAdminSortFieldType = typeof depositAdminSortFieldModel.static;
3
+ export declare const depositAdminSortOrderModel: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>;
4
+ export type DepositAdminSortOrderType = typeof depositAdminSortOrderModel.static;
5
+ export declare const depositAdminSortModel: import("@sinclair/typebox").TObject<{
6
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"actualAmount">, import("@sinclair/typebox").TLiteral<"amount">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"orderNo">, import("@sinclair/typebox").TLiteral<"status">, 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 DepositAdminSortType = typeof depositAdminSortModel.static;
1
10
  export declare const depositOrderSelectModel: import("@sinclair/typebox").TObject<{
2
11
  actualAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
3
12
  amount: import("@sinclair/typebox").TString;
@@ -334,6 +343,10 @@ export declare const depositAdminListQueryModel: import("@sinclair/typebox").TOb
334
343
  rejected: "rejected";
335
344
  }>>;
336
345
  orderNo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
346
+ sorts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
347
+ field: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"actualAmount">, import("@sinclair/typebox").TLiteral<"amount">, import("@sinclair/typebox").TLiteral<"createdAt">, import("@sinclair/typebox").TLiteral<"orderNo">, import("@sinclair/typebox").TLiteral<"status">, import("@sinclair/typebox").TLiteral<"updatedAt">]>;
348
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
349
+ }>>>;
337
350
  }>;
338
351
  export type DepositAdminListQueryType = typeof depositAdminListQueryModel.static;
339
352
  export declare const depositOrderListResponseModel: import("@sinclair/typebox").TObject<{
@@ -392,6 +392,10 @@ export declare const depositAdminRouter: Elysia<"/deposit", {
392
392
  userId?: string | undefined;
393
393
  status?: "approved" | "cancelled" | "completed" | "pending" | "rejected" | undefined;
394
394
  orderNo?: string | undefined;
395
+ sorts?: {
396
+ field: "actualAmount" | "amount" | "createdAt" | "orderNo" | "status" | "updatedAt";
397
+ order?: "asc" | "desc" | undefined;
398
+ }[] | undefined;
395
399
  };
396
400
  headers: {};
397
401
  response: {
@@ -1,6 +1,7 @@
1
1
  import type { DepositAdminListQueryType, DepositApproveInputType, DepositRejectInputType } from './dto.schemas';
2
2
  import { BaseDepositService } from '../internal/service';
3
3
  export declare abstract class AdminDepositService extends BaseDepositService {
4
+ private static buildAdminListOrderBy;
4
5
  static approveDeposit(orderId: string, reviewerId: string, input: DepositApproveInputType): Promise<{
5
6
  createdAt: Date;
6
7
  updatedAt: Date;
package/dist/index.d.ts CHANGED
@@ -7642,6 +7642,10 @@ declare const app: Elysia<"/api", {
7642
7642
  userId?: string | undefined;
7643
7643
  status?: "approved" | "cancelled" | "completed" | "pending" | "rejected" | undefined;
7644
7644
  orderNo?: string | undefined;
7645
+ sorts?: {
7646
+ field: "actualAmount" | "amount" | "createdAt" | "orderNo" | "status" | "updatedAt";
7647
+ order?: "asc" | "desc" | undefined;
7648
+ }[] | undefined;
7645
7649
  };
7646
7650
  headers: {};
7647
7651
  response: {
@@ -16108,11 +16112,17 @@ declare const app: Elysia<"/api", {
16108
16112
  effectiveAt: Date;
16109
16113
  } | null;
16110
16114
  dailyChangeRate: string | null;
16115
+ minuteChangeRate: string | null;
16111
16116
  trend10d: {
16112
16117
  date: string;
16113
16118
  price: string;
16114
16119
  effectiveAt: string | Date;
16115
16120
  }[];
16121
+ trend10m: {
16122
+ minute: string;
16123
+ price: string;
16124
+ effectiveAt: string | Date;
16125
+ }[];
16116
16126
  };
16117
16127
  symbol: string | null;
16118
16128
  };
@@ -16209,11 +16219,17 @@ declare const app: Elysia<"/api", {
16209
16219
  effectiveAt: Date;
16210
16220
  } | null;
16211
16221
  dailyChangeRate: string | null;
16222
+ minuteChangeRate: string | null;
16212
16223
  trend10d: {
16213
16224
  date: string;
16214
16225
  price: string;
16215
16226
  effectiveAt: string | Date;
16216
16227
  }[];
16228
+ trend10m: {
16229
+ minute: string;
16230
+ price: string;
16231
+ effectiveAt: string | Date;
16232
+ }[];
16217
16233
  };
16218
16234
  symbol: string | null;
16219
16235
  };
@@ -35,19 +35,7 @@ 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, {
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 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, {
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,7 +35,19 @@ export declare const teamAdminRouter: Elysia<"/team", {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitlabs/namkwong",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "files": [
6
6
  "dist"