@aitlabs/namkwong 0.0.105 → 0.0.107
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.
- package/dist/admin/index.d.ts +21 -12
- package/dist/admin-user/admin/router.d.ts +1 -13
- package/dist/asset-convert-product/admin/router.d.ts +1 -13
- package/dist/auth/router.d.ts +13 -1
- package/dist/binary-option/admin/dto.schemas.d.ts +5 -0
- package/dist/binary-option/admin/router.d.ts +21 -12
- package/dist/binary-option/admin/service.d.ts +7 -0
- package/dist/binary-option/db.schemas.d.ts +34 -0
- package/dist/binary-option/internal/service.d.ts +7 -80
- package/dist/binary-option/schema.d.ts +17 -0
- package/dist/binary-option/user/dto.schemas.d.ts +108 -345
- package/dist/binary-option/user/router.d.ts +66 -11
- package/dist/binary-option/user/service.d.ts +2 -80
- package/dist/index.d.ts +87 -23
- package/dist/ledger-account-transfer/user/router.d.ts +13 -1
- package/dist/market-pricing/admin/router.d.ts +1 -13
- package/dist/shipping-address/admin/router.d.ts +13 -1
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -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
|
-
":
|
|
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
|
-
|
|
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
|
-
":
|
|
4208
|
+
":marketId": {
|
|
4205
4209
|
activate: {
|
|
4206
4210
|
post: {
|
|
4207
4211
|
body: {};
|
|
4208
4212
|
params: {
|
|
4209
|
-
|
|
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
|
-
":
|
|
4279
|
+
":marketId": {
|
|
4275
4280
|
pause: {
|
|
4276
4281
|
post: {
|
|
4277
4282
|
body: {};
|
|
4278
4283
|
params: {
|
|
4279
|
-
|
|
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
|
-
":
|
|
4350
|
+
":marketId": {
|
|
4345
4351
|
end: {
|
|
4346
4352
|
post: {
|
|
4347
4353
|
body: {};
|
|
4348
4354
|
params: {
|
|
4349
|
-
|
|
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
|
-
":
|
|
4503
|
+
":marketId": {
|
|
4495
4504
|
"duration-configs": {
|
|
4496
4505
|
get: {
|
|
4497
4506
|
body: {};
|
|
4498
4507
|
params: {
|
|
4499
|
-
|
|
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
|
-
":
|
|
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
|
-
|
|
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;
|
package/dist/auth/router.d.ts
CHANGED
|
@@ -28,7 +28,19 @@ export declare const betterAuthPlugin: Elysia<"", {
|
|
|
28
28
|
headers: import("elysia").HTTPHeaders;
|
|
29
29
|
status?: number | keyof import("elysia").StatusMap;
|
|
30
30
|
redirect?: string;
|
|
31
|
-
cookie?: Record<string,
|
|
31
|
+
cookie?: Record<string, {
|
|
32
|
+
domain?: string | undefined;
|
|
33
|
+
expires?: Date | undefined;
|
|
34
|
+
httpOnly?: boolean | undefined;
|
|
35
|
+
maxAge?: number | undefined;
|
|
36
|
+
path?: string | undefined;
|
|
37
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
38
|
+
partitioned?: boolean | undefined;
|
|
39
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
40
|
+
secure?: boolean | undefined;
|
|
41
|
+
secrets?: string | null | (string | null)[];
|
|
42
|
+
value?: unknown;
|
|
43
|
+
}>;
|
|
32
44
|
};
|
|
33
45
|
path: string;
|
|
34
46
|
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
|
-
":
|
|
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
|
-
|
|
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
|
-
":
|
|
541
|
+
":marketId": {
|
|
538
542
|
activate: {
|
|
539
543
|
post: {
|
|
540
544
|
body: {};
|
|
541
545
|
params: {
|
|
542
|
-
|
|
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
|
-
":
|
|
612
|
+
":marketId": {
|
|
608
613
|
pause: {
|
|
609
614
|
post: {
|
|
610
615
|
body: {};
|
|
611
616
|
params: {
|
|
612
|
-
|
|
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
|
-
":
|
|
683
|
+
":marketId": {
|
|
678
684
|
end: {
|
|
679
685
|
post: {
|
|
680
686
|
body: {};
|
|
681
687
|
params: {
|
|
682
|
-
|
|
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
|
-
":
|
|
836
|
+
":marketId": {
|
|
828
837
|
"duration-configs": {
|
|
829
838
|
get: {
|
|
830
839
|
body: {};
|
|
831
840
|
params: {
|
|
832
|
-
|
|
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
|
-
":
|
|
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
|
-
|
|
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";
|
|
@@ -18,6 +18,10 @@ interface BinaryOptionSettlementRunInput {
|
|
|
18
18
|
operatorId?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare abstract class InternalBinaryOptionService {
|
|
21
|
+
private static buildLast10UtcCalendarDays;
|
|
22
|
+
private static completeTrend10dSparse;
|
|
23
|
+
private static loadPriceTrend10dMap;
|
|
24
|
+
private static enrichMarketsWithBaseAssetPrice;
|
|
21
25
|
private static validateUserId;
|
|
22
26
|
private static parseStakeAmount;
|
|
23
27
|
private static assertStakeAmountInRange;
|
|
@@ -38,91 +42,14 @@ export declare abstract class InternalBinaryOptionService {
|
|
|
38
42
|
}>;
|
|
39
43
|
private static getMarketByIdForUser;
|
|
40
44
|
static listMarketsForUser(query?: {
|
|
45
|
+
keyword?: string;
|
|
41
46
|
limit?: number;
|
|
42
47
|
offset?: number;
|
|
43
48
|
}): Promise<{
|
|
44
|
-
items:
|
|
45
|
-
baseAssetIdSnapshot: string;
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
description: string | null;
|
|
48
|
-
durationConfigs: {
|
|
49
|
-
createdAt: Date;
|
|
50
|
-
durationSeconds: number;
|
|
51
|
-
id: string;
|
|
52
|
-
isEnabled: boolean;
|
|
53
|
-
losePayoutMultiplier: string;
|
|
54
|
-
marketId: string;
|
|
55
|
-
sortOrder: number;
|
|
56
|
-
updatedAt: Date;
|
|
57
|
-
winPayoutMultiplier: string;
|
|
58
|
-
}[];
|
|
59
|
-
id: string;
|
|
60
|
-
image: string | null;
|
|
61
|
-
isVisibleOnFrontend: boolean;
|
|
62
|
-
marketSymbol: {
|
|
63
|
-
baseAssetId: string;
|
|
64
|
-
chartEnabled: boolean;
|
|
65
|
-
createdAt: Date;
|
|
66
|
-
id: string;
|
|
67
|
-
quoteAssetId: string;
|
|
68
|
-
settlementEnabled: boolean;
|
|
69
|
-
sourceType: "manual" | "market_pricing" | "trade_market";
|
|
70
|
-
status: "active" | "draft" | "ended" | "paused";
|
|
71
|
-
symbol: string;
|
|
72
|
-
updatedAt: Date;
|
|
73
|
-
};
|
|
74
|
-
marketSymbolId: string;
|
|
75
|
-
maxStakeAmount: string | null;
|
|
76
|
-
minStakeAmount: string;
|
|
77
|
-
name: string;
|
|
78
|
-
quoteAssetIdSnapshot: string;
|
|
79
|
-
sortOrder: number;
|
|
80
|
-
status: "active" | "draft" | "ended" | "paused";
|
|
81
|
-
symbolSnapshot: string;
|
|
82
|
-
updatedAt: Date;
|
|
83
|
-
}[];
|
|
49
|
+
items: any[];
|
|
84
50
|
total: number;
|
|
85
51
|
}>;
|
|
86
|
-
static getMarketForUser(marketId: string): Promise<
|
|
87
|
-
baseAssetIdSnapshot: string;
|
|
88
|
-
createdAt: Date;
|
|
89
|
-
description: string | null;
|
|
90
|
-
durationConfigs: {
|
|
91
|
-
createdAt: Date;
|
|
92
|
-
durationSeconds: number;
|
|
93
|
-
id: string;
|
|
94
|
-
isEnabled: boolean;
|
|
95
|
-
losePayoutMultiplier: string;
|
|
96
|
-
marketId: string;
|
|
97
|
-
sortOrder: number;
|
|
98
|
-
updatedAt: Date;
|
|
99
|
-
winPayoutMultiplier: string;
|
|
100
|
-
}[];
|
|
101
|
-
id: string;
|
|
102
|
-
image: string | null;
|
|
103
|
-
isVisibleOnFrontend: boolean;
|
|
104
|
-
marketSymbol: {
|
|
105
|
-
baseAssetId: string;
|
|
106
|
-
chartEnabled: boolean;
|
|
107
|
-
createdAt: Date;
|
|
108
|
-
id: string;
|
|
109
|
-
quoteAssetId: string;
|
|
110
|
-
settlementEnabled: boolean;
|
|
111
|
-
sourceType: "manual" | "market_pricing" | "trade_market";
|
|
112
|
-
status: "active" | "draft" | "ended" | "paused";
|
|
113
|
-
symbol: string;
|
|
114
|
-
updatedAt: Date;
|
|
115
|
-
};
|
|
116
|
-
marketSymbolId: string;
|
|
117
|
-
maxStakeAmount: string | null;
|
|
118
|
-
minStakeAmount: string;
|
|
119
|
-
name: string;
|
|
120
|
-
quoteAssetIdSnapshot: string;
|
|
121
|
-
sortOrder: number;
|
|
122
|
-
status: "active" | "draft" | "ended" | "paused";
|
|
123
|
-
symbolSnapshot: string;
|
|
124
|
-
updatedAt: Date;
|
|
125
|
-
}>;
|
|
52
|
+
static getMarketForUser(marketId: string): Promise<any>;
|
|
126
53
|
static getOrderByIdForUser(userId: string, orderId: string): Promise<{
|
|
127
54
|
baseAssetIdSnapshot: string;
|
|
128
55
|
createdAt: Date;
|
|
@@ -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";
|