@aitlabs/namkwong 0.0.105 → 0.0.106

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.
@@ -4058,6 +4058,7 @@ export declare const adminRouter: Elysia<"/admin", {
4058
4058
  minStakeAmount: string;
4059
4059
  maxStakeAmount?: string | null | undefined;
4060
4060
  isVisibleOnFrontend?: boolean | undefined;
4061
+ isHot?: boolean | undefined;
4061
4062
  sortOrder?: number | undefined;
4062
4063
  status?: "active" | "draft" | "ended" | "paused" | undefined;
4063
4064
  };
@@ -4082,6 +4083,7 @@ export declare const adminRouter: Elysia<"/admin", {
4082
4083
  }[];
4083
4084
  id: string;
4084
4085
  image: string | null;
4086
+ isHot: boolean;
4085
4087
  isVisibleOnFrontend: boolean;
4086
4088
  marketSymbol: {
4087
4089
  createdAt: Date;
@@ -4123,7 +4125,7 @@ export declare const adminRouter: Elysia<"/admin", {
4123
4125
  } & {
4124
4126
  binary_option: {
4125
4127
  markets: {
4126
- ":id": {
4128
+ ":marketId": {
4127
4129
  patch: {
4128
4130
  body: {
4129
4131
  name?: string | undefined;
@@ -4133,11 +4135,12 @@ export declare const adminRouter: Elysia<"/admin", {
4133
4135
  minStakeAmount?: string | undefined;
4134
4136
  maxStakeAmount?: string | null | undefined;
4135
4137
  isVisibleOnFrontend?: boolean | undefined;
4138
+ isHot?: boolean | undefined;
4136
4139
  sortOrder?: number | undefined;
4137
4140
  status?: "active" | "draft" | "ended" | "paused" | undefined;
4138
4141
  };
4139
4142
  params: {
4140
- id: string;
4143
+ marketId: string;
4141
4144
  };
4142
4145
  query: {};
4143
4146
  headers: {};
@@ -4159,6 +4162,7 @@ export declare const adminRouter: Elysia<"/admin", {
4159
4162
  }[];
4160
4163
  id: string;
4161
4164
  image: string | null;
4165
+ isHot: boolean;
4162
4166
  isVisibleOnFrontend: boolean;
4163
4167
  marketSymbol: {
4164
4168
  createdAt: Date;
@@ -4201,12 +4205,12 @@ export declare const adminRouter: Elysia<"/admin", {
4201
4205
  } & {
4202
4206
  binary_option: {
4203
4207
  markets: {
4204
- ":id": {
4208
+ ":marketId": {
4205
4209
  activate: {
4206
4210
  post: {
4207
4211
  body: {};
4208
4212
  params: {
4209
- id: string;
4213
+ marketId: string;
4210
4214
  };
4211
4215
  query: {};
4212
4216
  headers: {};
@@ -4228,6 +4232,7 @@ export declare const adminRouter: Elysia<"/admin", {
4228
4232
  }[];
4229
4233
  id: string;
4230
4234
  image: string | null;
4235
+ isHot: boolean;
4231
4236
  isVisibleOnFrontend: boolean;
4232
4237
  marketSymbol: {
4233
4238
  createdAt: Date;
@@ -4271,12 +4276,12 @@ export declare const adminRouter: Elysia<"/admin", {
4271
4276
  } & {
4272
4277
  binary_option: {
4273
4278
  markets: {
4274
- ":id": {
4279
+ ":marketId": {
4275
4280
  pause: {
4276
4281
  post: {
4277
4282
  body: {};
4278
4283
  params: {
4279
- id: string;
4284
+ marketId: string;
4280
4285
  };
4281
4286
  query: {};
4282
4287
  headers: {};
@@ -4298,6 +4303,7 @@ export declare const adminRouter: Elysia<"/admin", {
4298
4303
  }[];
4299
4304
  id: string;
4300
4305
  image: string | null;
4306
+ isHot: boolean;
4301
4307
  isVisibleOnFrontend: boolean;
4302
4308
  marketSymbol: {
4303
4309
  createdAt: Date;
@@ -4341,12 +4347,12 @@ export declare const adminRouter: Elysia<"/admin", {
4341
4347
  } & {
4342
4348
  binary_option: {
4343
4349
  markets: {
4344
- ":id": {
4350
+ ":marketId": {
4345
4351
  end: {
4346
4352
  post: {
4347
4353
  body: {};
4348
4354
  params: {
4349
- id: string;
4355
+ marketId: string;
4350
4356
  };
4351
4357
  query: {};
4352
4358
  headers: {};
@@ -4368,6 +4374,7 @@ export declare const adminRouter: Elysia<"/admin", {
4368
4374
  }[];
4369
4375
  id: string;
4370
4376
  image: string | null;
4377
+ isHot: boolean;
4371
4378
  isVisibleOnFrontend: boolean;
4372
4379
  marketSymbol: {
4373
4380
  createdAt: Date;
@@ -4415,6 +4422,7 @@ export declare const adminRouter: Elysia<"/admin", {
4415
4422
  body: {};
4416
4423
  params: {};
4417
4424
  query: {
4425
+ keyword?: string | undefined;
4418
4426
  limit?: number | undefined;
4419
4427
  marketSymbolId?: string | undefined;
4420
4428
  offset?: number | undefined;
@@ -4442,6 +4450,7 @@ export declare const adminRouter: Elysia<"/admin", {
4442
4450
  }[];
4443
4451
  id: string;
4444
4452
  image: string | null;
4453
+ isHot: boolean;
4445
4454
  isVisibleOnFrontend: boolean;
4446
4455
  marketSymbol: {
4447
4456
  createdAt: Date;
@@ -4491,12 +4500,12 @@ export declare const adminRouter: Elysia<"/admin", {
4491
4500
  } & {
4492
4501
  binary_option: {
4493
4502
  markets: {
4494
- ":id": {
4503
+ ":marketId": {
4495
4504
  "duration-configs": {
4496
4505
  get: {
4497
4506
  body: {};
4498
4507
  params: {
4499
- id: string;
4508
+ marketId: string;
4500
4509
  };
4501
4510
  query: {};
4502
4511
  headers: {};
@@ -4532,7 +4541,7 @@ export declare const adminRouter: Elysia<"/admin", {
4532
4541
  } & {
4533
4542
  binary_option: {
4534
4543
  markets: {
4535
- ":id": {
4544
+ ":marketId": {
4536
4545
  "duration-configs": {
4537
4546
  post: {
4538
4547
  body: {
@@ -4543,7 +4552,7 @@ export declare const adminRouter: Elysia<"/admin", {
4543
4552
  sortOrder?: number | undefined;
4544
4553
  };
4545
4554
  params: {
4546
- id: string;
4555
+ marketId: string;
4547
4556
  };
4548
4557
  query: {};
4549
4558
  headers: {};
@@ -35,19 +35,7 @@ export declare const adminUserAdminRouter: Elysia<"/admin_users", {
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 assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
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;
@@ -6,6 +6,7 @@ export declare const binaryOptionAdminMarketCreateSchema: import("@sinclair/type
6
6
  minStakeAmount: import("@sinclair/typebox").TString;
7
7
  maxStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
8
8
  isVisibleOnFrontend: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
+ isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
10
  sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
10
11
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
11
12
  active: "active";
@@ -23,6 +24,7 @@ export declare const binaryOptionAdminMarketUpdateSchema: import("@sinclair/type
23
24
  minStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
25
  maxStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
25
26
  isVisibleOnFrontend: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
27
+ isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
26
28
  sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
27
29
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
28
30
  active: "active";
@@ -33,6 +35,7 @@ export declare const binaryOptionAdminMarketUpdateSchema: import("@sinclair/type
33
35
  }>;
34
36
  export type BinaryOptionAdminMarketUpdateInputType = typeof binaryOptionAdminMarketUpdateSchema.static;
35
37
  export declare const binaryOptionAdminMarketListQuerySchema: import("@sinclair/typebox").TObject<{
38
+ keyword: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36
39
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
37
40
  marketSymbolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
38
41
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -207,6 +210,7 @@ export declare const binaryOptionAdminMarketItemSchema: import("@sinclair/typebo
207
210
  }, undefined>>;
208
211
  id: import("@sinclair/typebox").TString;
209
212
  image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
213
+ isHot: import("@sinclair/typebox").TBoolean;
210
214
  isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
211
215
  marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
212
216
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
@@ -558,6 +562,7 @@ export declare const binaryOptionAdminMarketListResponseSchema: import("@sinclai
558
562
  }, undefined>>;
559
563
  id: import("@sinclair/typebox").TString;
560
564
  image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
565
+ isHot: import("@sinclair/typebox").TBoolean;
561
566
  isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
562
567
  marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
563
568
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
@@ -391,6 +391,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
391
391
  minStakeAmount: string;
392
392
  maxStakeAmount?: string | null | undefined;
393
393
  isVisibleOnFrontend?: boolean | undefined;
394
+ isHot?: boolean | undefined;
394
395
  sortOrder?: number | undefined;
395
396
  status?: "active" | "draft" | "ended" | "paused" | undefined;
396
397
  };
@@ -415,6 +416,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
415
416
  }[];
416
417
  id: string;
417
418
  image: string | null;
419
+ isHot: boolean;
418
420
  isVisibleOnFrontend: boolean;
419
421
  marketSymbol: {
420
422
  createdAt: Date;
@@ -456,7 +458,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
456
458
  } & {
457
459
  binary_option: {
458
460
  markets: {
459
- ":id": {
461
+ ":marketId": {
460
462
  patch: {
461
463
  body: {
462
464
  name?: string | undefined;
@@ -466,11 +468,12 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
466
468
  minStakeAmount?: string | undefined;
467
469
  maxStakeAmount?: string | null | undefined;
468
470
  isVisibleOnFrontend?: boolean | undefined;
471
+ isHot?: boolean | undefined;
469
472
  sortOrder?: number | undefined;
470
473
  status?: "active" | "draft" | "ended" | "paused" | undefined;
471
474
  };
472
475
  params: {
473
- id: string;
476
+ marketId: string;
474
477
  };
475
478
  query: {};
476
479
  headers: {};
@@ -492,6 +495,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
492
495
  }[];
493
496
  id: string;
494
497
  image: string | null;
498
+ isHot: boolean;
495
499
  isVisibleOnFrontend: boolean;
496
500
  marketSymbol: {
497
501
  createdAt: Date;
@@ -534,12 +538,12 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
534
538
  } & {
535
539
  binary_option: {
536
540
  markets: {
537
- ":id": {
541
+ ":marketId": {
538
542
  activate: {
539
543
  post: {
540
544
  body: {};
541
545
  params: {
542
- id: string;
546
+ marketId: string;
543
547
  };
544
548
  query: {};
545
549
  headers: {};
@@ -561,6 +565,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
561
565
  }[];
562
566
  id: string;
563
567
  image: string | null;
568
+ isHot: boolean;
564
569
  isVisibleOnFrontend: boolean;
565
570
  marketSymbol: {
566
571
  createdAt: Date;
@@ -604,12 +609,12 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
604
609
  } & {
605
610
  binary_option: {
606
611
  markets: {
607
- ":id": {
612
+ ":marketId": {
608
613
  pause: {
609
614
  post: {
610
615
  body: {};
611
616
  params: {
612
- id: string;
617
+ marketId: string;
613
618
  };
614
619
  query: {};
615
620
  headers: {};
@@ -631,6 +636,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
631
636
  }[];
632
637
  id: string;
633
638
  image: string | null;
639
+ isHot: boolean;
634
640
  isVisibleOnFrontend: boolean;
635
641
  marketSymbol: {
636
642
  createdAt: Date;
@@ -674,12 +680,12 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
674
680
  } & {
675
681
  binary_option: {
676
682
  markets: {
677
- ":id": {
683
+ ":marketId": {
678
684
  end: {
679
685
  post: {
680
686
  body: {};
681
687
  params: {
682
- id: string;
688
+ marketId: string;
683
689
  };
684
690
  query: {};
685
691
  headers: {};
@@ -701,6 +707,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
701
707
  }[];
702
708
  id: string;
703
709
  image: string | null;
710
+ isHot: boolean;
704
711
  isVisibleOnFrontend: boolean;
705
712
  marketSymbol: {
706
713
  createdAt: Date;
@@ -748,6 +755,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
748
755
  body: {};
749
756
  params: {};
750
757
  query: {
758
+ keyword?: string | undefined;
751
759
  limit?: number | undefined;
752
760
  marketSymbolId?: string | undefined;
753
761
  offset?: number | undefined;
@@ -775,6 +783,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
775
783
  }[];
776
784
  id: string;
777
785
  image: string | null;
786
+ isHot: boolean;
778
787
  isVisibleOnFrontend: boolean;
779
788
  marketSymbol: {
780
789
  createdAt: Date;
@@ -824,12 +833,12 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
824
833
  } & {
825
834
  binary_option: {
826
835
  markets: {
827
- ":id": {
836
+ ":marketId": {
828
837
  "duration-configs": {
829
838
  get: {
830
839
  body: {};
831
840
  params: {
832
- id: string;
841
+ marketId: string;
833
842
  };
834
843
  query: {};
835
844
  headers: {};
@@ -865,7 +874,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
865
874
  } & {
866
875
  binary_option: {
867
876
  markets: {
868
- ":id": {
877
+ ":marketId": {
869
878
  "duration-configs": {
870
879
  post: {
871
880
  body: {
@@ -876,7 +885,7 @@ export declare const binaryOptionAdminRouter: Elysia<"/binary_option", {
876
885
  sortOrder?: number | undefined;
877
886
  };
878
887
  params: {
879
- id: string;
888
+ marketId: string;
880
889
  };
881
890
  query: {};
882
891
  headers: {};
@@ -33,6 +33,7 @@ declare abstract class BaseBinaryOptionAdminService {
33
33
  }[];
34
34
  id: string;
35
35
  image: string | null;
36
+ isHot: boolean;
36
37
  isVisibleOnFrontend: boolean;
37
38
  marketSymbol: {
38
39
  baseAssetId: string;
@@ -76,6 +77,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
76
77
  }[];
77
78
  id: string;
78
79
  image: string | null;
80
+ isHot: boolean;
79
81
  isVisibleOnFrontend: boolean;
80
82
  marketSymbol: {
81
83
  baseAssetId: string;
@@ -116,6 +118,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
116
118
  }[];
117
119
  id: string;
118
120
  image: string | null;
121
+ isHot: boolean;
119
122
  isVisibleOnFrontend: boolean;
120
123
  marketSymbol: {
121
124
  baseAssetId: string;
@@ -156,6 +159,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
156
159
  }[];
157
160
  id: string;
158
161
  image: string | null;
162
+ isHot: boolean;
159
163
  isVisibleOnFrontend: boolean;
160
164
  marketSymbol: {
161
165
  baseAssetId: string;
@@ -196,6 +200,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
196
200
  }[];
197
201
  id: string;
198
202
  image: string | null;
203
+ isHot: boolean;
199
204
  isVisibleOnFrontend: boolean;
200
205
  marketSymbol: {
201
206
  baseAssetId: string;
@@ -236,6 +241,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
236
241
  }[];
237
242
  id: string;
238
243
  image: string | null;
244
+ isHot: boolean;
239
245
  isVisibleOnFrontend: boolean;
240
246
  marketSymbol: {
241
247
  baseAssetId: string;
@@ -278,6 +284,7 @@ export declare abstract class AdminBinaryOptionService extends BaseBinaryOptionA
278
284
  }[];
279
285
  id: string;
280
286
  image: string | null;
287
+ isHot: boolean;
281
288
  isVisibleOnFrontend: boolean;
282
289
  marketSymbol: {
283
290
  baseAssetId: string;
@@ -220,6 +220,23 @@ export declare const binaryOptionMarketSelectSchema: import("drizzle-typebox").B
220
220
  identity: undefined;
221
221
  generated: undefined;
222
222
  }, {}, {}>;
223
+ isHot: import("drizzle-orm/pg-core").PgColumn<{
224
+ name: "is_hot";
225
+ tableName: "binary_option_market";
226
+ dataType: "boolean";
227
+ columnType: "PgBoolean";
228
+ data: boolean;
229
+ driverParam: boolean;
230
+ notNull: true;
231
+ hasDefault: true;
232
+ isPrimaryKey: false;
233
+ isAutoincrement: false;
234
+ hasRuntimeDefault: false;
235
+ enumValues: undefined;
236
+ baseColumn: never;
237
+ identity: undefined;
238
+ generated: undefined;
239
+ }, {}, {}>;
223
240
  sortOrder: import("drizzle-orm/pg-core").PgColumn<{
224
241
  name: "sort_order";
225
242
  tableName: "binary_option_market";
@@ -478,6 +495,23 @@ export declare const binaryOptionMarketInsertSchema: import("drizzle-typebox").B
478
495
  identity: undefined;
479
496
  generated: undefined;
480
497
  }, {}, {}>;
498
+ isHot: import("drizzle-orm/pg-core").PgColumn<{
499
+ name: "is_hot";
500
+ tableName: "binary_option_market";
501
+ dataType: "boolean";
502
+ columnType: "PgBoolean";
503
+ data: boolean;
504
+ driverParam: boolean;
505
+ notNull: true;
506
+ hasDefault: true;
507
+ isPrimaryKey: false;
508
+ isAutoincrement: false;
509
+ hasRuntimeDefault: false;
510
+ enumValues: undefined;
511
+ baseColumn: never;
512
+ identity: undefined;
513
+ generated: undefined;
514
+ }, {}, {}>;
481
515
  sortOrder: import("drizzle-orm/pg-core").PgColumn<{
482
516
  name: "sort_order";
483
517
  tableName: "binary_option_market";
@@ -38,6 +38,7 @@ export declare abstract class InternalBinaryOptionService {
38
38
  }>;
39
39
  private static getMarketByIdForUser;
40
40
  static listMarketsForUser(query?: {
41
+ keyword?: string;
41
42
  limit?: number;
42
43
  offset?: number;
43
44
  }): Promise<{
@@ -58,6 +59,7 @@ export declare abstract class InternalBinaryOptionService {
58
59
  }[];
59
60
  id: string;
60
61
  image: string | null;
62
+ isHot: boolean;
61
63
  isVisibleOnFrontend: boolean;
62
64
  marketSymbol: {
63
65
  baseAssetId: string;
@@ -100,6 +102,7 @@ export declare abstract class InternalBinaryOptionService {
100
102
  }[];
101
103
  id: string;
102
104
  image: string | null;
105
+ isHot: boolean;
103
106
  isVisibleOnFrontend: boolean;
104
107
  marketSymbol: {
105
108
  baseAssetId: string;
@@ -243,6 +243,23 @@ export declare const binaryOptionMarket: import("drizzle-orm/pg-core").PgTableWi
243
243
  identity: undefined;
244
244
  generated: undefined;
245
245
  }, {}, {}>;
246
+ isHot: import("drizzle-orm/pg-core").PgColumn<{
247
+ name: "is_hot";
248
+ tableName: "binary_option_market";
249
+ dataType: "boolean";
250
+ columnType: "PgBoolean";
251
+ data: boolean;
252
+ driverParam: boolean;
253
+ notNull: true;
254
+ hasDefault: true;
255
+ isPrimaryKey: false;
256
+ isAutoincrement: false;
257
+ hasRuntimeDefault: false;
258
+ enumValues: undefined;
259
+ baseColumn: never;
260
+ identity: undefined;
261
+ generated: undefined;
262
+ }, {}, {}>;
246
263
  sortOrder: import("drizzle-orm/pg-core").PgColumn<{
247
264
  name: "sort_order";
248
265
  tableName: "binary_option_market";
@@ -1,8 +1,9 @@
1
1
  export declare const binaryOptionUserMarketListQuerySchema: import("@sinclair/typebox").TObject<{
2
+ keyword: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
2
3
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
3
4
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
4
- pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
5
5
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
6
+ pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
6
7
  }>;
7
8
  export type BinaryOptionUserMarketListQueryType = typeof binaryOptionUserMarketListQuerySchema.static;
8
9
  export declare const binaryOptionUserMarketItemSchema: import("@sinclair/typebox").TObject<{
@@ -166,6 +167,7 @@ export declare const binaryOptionUserMarketItemSchema: import("@sinclair/typebox
166
167
  }, undefined>>;
167
168
  id: import("@sinclair/typebox").TString;
168
169
  image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
170
+ isHot: import("@sinclair/typebox").TBoolean;
169
171
  isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
170
172
  marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
171
173
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
@@ -517,6 +519,7 @@ export declare const binaryOptionUserMarketListResponseSchema: import("@sinclair
517
519
  }, undefined>>;
518
520
  id: import("@sinclair/typebox").TString;
519
521
  image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
522
+ isHot: import("@sinclair/typebox").TBoolean;
520
523
  isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
521
524
  marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
522
525
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
@@ -35,7 +35,19 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
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;
@@ -386,10 +398,11 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
386
398
  body: {};
387
399
  params: {};
388
400
  query: {
401
+ keyword?: string | undefined;
389
402
  limit?: number | undefined;
390
403
  offset?: number | undefined;
391
- pageSize?: number | undefined;
392
404
  pageIndex?: number | undefined;
405
+ pageSize?: number | undefined;
393
406
  };
394
407
  headers: {};
395
408
  response: {
@@ -411,6 +424,7 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
411
424
  }[];
412
425
  id: string;
413
426
  image: string | null;
427
+ isHot: boolean;
414
428
  isVisibleOnFrontend: boolean;
415
429
  marketSymbol: {
416
430
  createdAt: Date;
@@ -485,6 +499,7 @@ export declare const binaryOptionRouter: Elysia<"/binary_option", {
485
499
  }[];
486
500
  id: string;
487
501
  image: string | null;
502
+ isHot: boolean;
488
503
  isVisibleOnFrontend: boolean;
489
504
  marketSymbol: {
490
505
  createdAt: Date;
@@ -20,6 +20,7 @@ export declare abstract class UserBinaryOptionService {
20
20
  }[];
21
21
  id: string;
22
22
  image: string | null;
23
+ isHot: boolean;
23
24
  isVisibleOnFrontend: boolean;
24
25
  marketSymbol: {
25
26
  baseAssetId: string;
@@ -62,6 +63,7 @@ export declare abstract class UserBinaryOptionService {
62
63
  }[];
63
64
  id: string;
64
65
  image: string | null;
66
+ isHot: boolean;
65
67
  isVisibleOnFrontend: boolean;
66
68
  marketSymbol: {
67
69
  baseAssetId: string;
package/dist/index.d.ts CHANGED
@@ -4486,6 +4486,7 @@ declare const app: Elysia<"/api", {
4486
4486
  minStakeAmount: string;
4487
4487
  maxStakeAmount?: string | null | undefined;
4488
4488
  isVisibleOnFrontend?: boolean | undefined;
4489
+ isHot?: boolean | undefined;
4489
4490
  sortOrder?: number | undefined;
4490
4491
  status?: "active" | "draft" | "ended" | "paused" | undefined;
4491
4492
  };
@@ -4510,6 +4511,7 @@ declare const app: Elysia<"/api", {
4510
4511
  }[];
4511
4512
  id: string;
4512
4513
  image: string | null;
4514
+ isHot: boolean;
4513
4515
  isVisibleOnFrontend: boolean;
4514
4516
  marketSymbol: {
4515
4517
  createdAt: Date;
@@ -4551,7 +4553,7 @@ declare const app: Elysia<"/api", {
4551
4553
  } & {
4552
4554
  binary_option: {
4553
4555
  markets: {
4554
- ":id": {
4556
+ ":marketId": {
4555
4557
  patch: {
4556
4558
  body: {
4557
4559
  name?: string | undefined;
@@ -4561,11 +4563,12 @@ declare const app: Elysia<"/api", {
4561
4563
  minStakeAmount?: string | undefined;
4562
4564
  maxStakeAmount?: string | null | undefined;
4563
4565
  isVisibleOnFrontend?: boolean | undefined;
4566
+ isHot?: boolean | undefined;
4564
4567
  sortOrder?: number | undefined;
4565
4568
  status?: "active" | "draft" | "ended" | "paused" | undefined;
4566
4569
  };
4567
4570
  params: {
4568
- id: string;
4571
+ marketId: string;
4569
4572
  };
4570
4573
  query: {};
4571
4574
  headers: {};
@@ -4587,6 +4590,7 @@ declare const app: Elysia<"/api", {
4587
4590
  }[];
4588
4591
  id: string;
4589
4592
  image: string | null;
4593
+ isHot: boolean;
4590
4594
  isVisibleOnFrontend: boolean;
4591
4595
  marketSymbol: {
4592
4596
  createdAt: Date;
@@ -4629,12 +4633,12 @@ declare const app: Elysia<"/api", {
4629
4633
  } & {
4630
4634
  binary_option: {
4631
4635
  markets: {
4632
- ":id": {
4636
+ ":marketId": {
4633
4637
  activate: {
4634
4638
  post: {
4635
4639
  body: {};
4636
4640
  params: {
4637
- id: string;
4641
+ marketId: string;
4638
4642
  };
4639
4643
  query: {};
4640
4644
  headers: {};
@@ -4656,6 +4660,7 @@ declare const app: Elysia<"/api", {
4656
4660
  }[];
4657
4661
  id: string;
4658
4662
  image: string | null;
4663
+ isHot: boolean;
4659
4664
  isVisibleOnFrontend: boolean;
4660
4665
  marketSymbol: {
4661
4666
  createdAt: Date;
@@ -4699,12 +4704,12 @@ declare const app: Elysia<"/api", {
4699
4704
  } & {
4700
4705
  binary_option: {
4701
4706
  markets: {
4702
- ":id": {
4707
+ ":marketId": {
4703
4708
  pause: {
4704
4709
  post: {
4705
4710
  body: {};
4706
4711
  params: {
4707
- id: string;
4712
+ marketId: string;
4708
4713
  };
4709
4714
  query: {};
4710
4715
  headers: {};
@@ -4726,6 +4731,7 @@ declare const app: Elysia<"/api", {
4726
4731
  }[];
4727
4732
  id: string;
4728
4733
  image: string | null;
4734
+ isHot: boolean;
4729
4735
  isVisibleOnFrontend: boolean;
4730
4736
  marketSymbol: {
4731
4737
  createdAt: Date;
@@ -4769,12 +4775,12 @@ declare const app: Elysia<"/api", {
4769
4775
  } & {
4770
4776
  binary_option: {
4771
4777
  markets: {
4772
- ":id": {
4778
+ ":marketId": {
4773
4779
  end: {
4774
4780
  post: {
4775
4781
  body: {};
4776
4782
  params: {
4777
- id: string;
4783
+ marketId: string;
4778
4784
  };
4779
4785
  query: {};
4780
4786
  headers: {};
@@ -4796,6 +4802,7 @@ declare const app: Elysia<"/api", {
4796
4802
  }[];
4797
4803
  id: string;
4798
4804
  image: string | null;
4805
+ isHot: boolean;
4799
4806
  isVisibleOnFrontend: boolean;
4800
4807
  marketSymbol: {
4801
4808
  createdAt: Date;
@@ -4843,6 +4850,7 @@ declare const app: Elysia<"/api", {
4843
4850
  body: {};
4844
4851
  params: {};
4845
4852
  query: {
4853
+ keyword?: string | undefined;
4846
4854
  limit?: number | undefined;
4847
4855
  marketSymbolId?: string | undefined;
4848
4856
  offset?: number | undefined;
@@ -4870,6 +4878,7 @@ declare const app: Elysia<"/api", {
4870
4878
  }[];
4871
4879
  id: string;
4872
4880
  image: string | null;
4881
+ isHot: boolean;
4873
4882
  isVisibleOnFrontend: boolean;
4874
4883
  marketSymbol: {
4875
4884
  createdAt: Date;
@@ -4919,12 +4928,12 @@ declare const app: Elysia<"/api", {
4919
4928
  } & {
4920
4929
  binary_option: {
4921
4930
  markets: {
4922
- ":id": {
4931
+ ":marketId": {
4923
4932
  "duration-configs": {
4924
4933
  get: {
4925
4934
  body: {};
4926
4935
  params: {
4927
- id: string;
4936
+ marketId: string;
4928
4937
  };
4929
4938
  query: {};
4930
4939
  headers: {};
@@ -4960,7 +4969,7 @@ declare const app: Elysia<"/api", {
4960
4969
  } & {
4961
4970
  binary_option: {
4962
4971
  markets: {
4963
- ":id": {
4972
+ ":marketId": {
4964
4973
  "duration-configs": {
4965
4974
  post: {
4966
4975
  body: {
@@ -4971,7 +4980,7 @@ declare const app: Elysia<"/api", {
4971
4980
  sortOrder?: number | undefined;
4972
4981
  };
4973
4982
  params: {
4974
- id: string;
4983
+ marketId: string;
4975
4984
  };
4976
4985
  query: {};
4977
4986
  headers: {};
@@ -15739,10 +15748,11 @@ declare const app: Elysia<"/api", {
15739
15748
  body: {};
15740
15749
  params: {};
15741
15750
  query: {
15751
+ keyword?: string | undefined;
15742
15752
  limit?: number | undefined;
15743
15753
  offset?: number | undefined;
15744
- pageSize?: number | undefined;
15745
15754
  pageIndex?: number | undefined;
15755
+ pageSize?: number | undefined;
15746
15756
  };
15747
15757
  headers: {};
15748
15758
  response: {
@@ -15764,6 +15774,7 @@ declare const app: Elysia<"/api", {
15764
15774
  }[];
15765
15775
  id: string;
15766
15776
  image: string | null;
15777
+ isHot: boolean;
15767
15778
  isVisibleOnFrontend: boolean;
15768
15779
  marketSymbol: {
15769
15780
  createdAt: Date;
@@ -15838,6 +15849,7 @@ declare const app: Elysia<"/api", {
15838
15849
  }[];
15839
15850
  id: string;
15840
15851
  image: string | null;
15852
+ isHot: boolean;
15841
15853
  isVisibleOnFrontend: boolean;
15842
15854
  marketSymbol: {
15843
15855
  createdAt: Date;
@@ -35,19 +35,7 @@ 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, {
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 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 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.105",
3
+ "version": "0.0.106",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "files": [
6
6
  "dist"