@aitlabs/namkwong 0.0.114 → 0.0.115

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 assetTypeAdminRouter: Elysia<"/asset_types", {
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;
@@ -200,6 +200,11 @@ export declare const binaryOptionUserMarketItemSchema: import("@sinclair/typebox
200
200
  price: import("@sinclair/typebox").TString;
201
201
  effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
202
202
  }>>;
203
+ trend10m: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
204
+ minute: import("@sinclair/typebox").TString;
205
+ price: import("@sinclair/typebox").TString;
206
+ effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
207
+ }>>;
203
208
  }>;
204
209
  symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
205
210
  }>;
@@ -433,6 +438,11 @@ export declare const binaryOptionUserMarketListResponseSchema: import("@sinclair
433
438
  price: import("@sinclair/typebox").TString;
434
439
  effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
435
440
  }>>;
441
+ trend10m: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
442
+ minute: import("@sinclair/typebox").TString;
443
+ price: import("@sinclair/typebox").TString;
444
+ effectiveAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString]>;
445
+ }>>;
436
446
  }>;
437
447
  symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
438
448
  }>;
@@ -439,6 +439,11 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
439
439
  price: string;
440
440
  effectiveAt: string | Date;
441
441
  }[];
442
+ trend10m: {
443
+ minute: string;
444
+ price: string;
445
+ effectiveAt: string | Date;
446
+ }[];
442
447
  };
443
448
  symbol: string | null;
444
449
  };
@@ -540,6 +545,11 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
540
545
  price: string;
541
546
  effectiveAt: string | Date;
542
547
  }[];
548
+ trend10m: {
549
+ minute: string;
550
+ price: string;
551
+ effectiveAt: string | Date;
552
+ }[];
543
553
  };
544
554
  symbol: string | null;
545
555
  };
@@ -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: {
@@ -16113,6 +16117,11 @@ declare const app: Elysia<"/api", {
16113
16117
  price: string;
16114
16118
  effectiveAt: string | Date;
16115
16119
  }[];
16120
+ trend10m: {
16121
+ minute: string;
16122
+ price: string;
16123
+ effectiveAt: string | Date;
16124
+ }[];
16116
16125
  };
16117
16126
  symbol: string | null;
16118
16127
  };
@@ -16214,6 +16223,11 @@ declare const app: Elysia<"/api", {
16214
16223
  price: string;
16215
16224
  effectiveAt: string | Date;
16216
16225
  }[];
16226
+ trend10m: {
16227
+ minute: string;
16228
+ price: string;
16229
+ effectiveAt: string | Date;
16230
+ }[];
16217
16231
  };
16218
16232
  symbol: string | null;
16219
16233
  };
@@ -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,7 +35,19 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
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,19 +35,7 @@ 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, {
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 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, 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.115",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "files": [
6
6
  "dist"