@aitlabs/namkwong 0.0.103 → 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.
Files changed (67) hide show
  1. package/dist/admin/index.d.ts +1055 -29
  2. package/dist/app-version/admin/router.d.ts +1 -13
  3. package/dist/asset/schema.d.ts +2 -0
  4. package/dist/asset-convert-product/admin/dto.schemas.d.ts +24 -0
  5. package/dist/asset-convert-product/admin/router.d.ts +12 -12
  6. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  7. package/dist/binary-option/admin/dto.schemas.d.ts +3104 -0
  8. package/dist/binary-option/admin/router.d.ts +1409 -0
  9. package/dist/binary-option/admin/service.d.ts +531 -0
  10. package/dist/binary-option/cron.d.ts +6 -0
  11. package/dist/binary-option/db.schemas.d.ts +3192 -0
  12. package/dist/binary-option/errors/index.d.ts +38 -0
  13. package/dist/binary-option/errors/locales/zh.d.ts +37 -0
  14. package/dist/binary-option/index.d.ts +7 -0
  15. package/dist/binary-option/internal/service.d.ts +274 -0
  16. package/dist/binary-option/schema.d.ts +1683 -0
  17. package/dist/binary-option/user/dto.schemas.d.ts +1185 -0
  18. package/dist/binary-option/user/router.d.ts +823 -0
  19. package/dist/binary-option/user/service.d.ts +234 -0
  20. package/dist/db/schemas.d.ts +2 -0
  21. package/dist/dynamic-env/admin.router.d.ts +1 -13
  22. package/dist/index.d.ts +1779 -262
  23. package/dist/ledger/admin/dto.schemas.d.ts +24 -0
  24. package/dist/ledger/admin/router.d.ts +4 -4
  25. package/dist/ledger/db.schemas.d.ts +8 -8
  26. package/dist/ledger/schema.d.ts +6 -6
  27. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  28. package/dist/ledger/user/router.d.ts +2 -2
  29. package/dist/ledger/user/service.d.ts +2 -2
  30. package/dist/lock-activity/admin/participation.dto.schemas.d.ts +3 -3
  31. package/dist/lock-activity/admin/participation.service.d.ts +4 -4
  32. package/dist/lock-activity/admin/reward.service.d.ts +1 -1
  33. package/dist/lock-activity/admin/router.d.ts +6 -6
  34. package/dist/market-data/internal/service.d.ts +1 -1
  35. package/dist/market-pricing/admin/router.d.ts +1 -13
  36. package/dist/market-symbol/admin/dto.schemas.d.ts +104 -0
  37. package/dist/market-symbol/admin/router.d.ts +528 -0
  38. package/dist/market-symbol/admin/service.d.ts +34 -0
  39. package/dist/market-symbol/db.schemas.d.ts +346 -0
  40. package/dist/market-symbol/internal/service.d.ts +25 -0
  41. package/dist/market-symbol/schema.d.ts +196 -0
  42. package/dist/news/admin/router.d.ts +13 -1
  43. package/dist/referral/admin/dto.schemas.d.ts +4 -2
  44. package/dist/referral/admin/router.d.ts +2 -1
  45. package/dist/referral/db.schemas.d.ts +210 -0
  46. package/dist/referral/index.d.ts +3 -1
  47. package/dist/referral/internal/service.d.ts +7 -2
  48. package/dist/referral/schema.d.ts +116 -0
  49. package/dist/referral/share/dto.schemas.d.ts +34 -0
  50. package/dist/referral/share/router.d.ts +527 -0
  51. package/dist/referral/share/service.d.ts +23 -0
  52. package/dist/referral/user/dto.schemas.d.ts +2 -1
  53. package/dist/referral/user/router.d.ts +2 -1
  54. package/dist/referral/user/service.d.ts +3 -2
  55. package/dist/team/admin/dto.schemas.d.ts +0 -85
  56. package/dist/team/admin/router.d.ts +13 -4
  57. package/dist/team/user/dto.schemas.d.ts +0 -1
  58. package/dist/team/user/router.d.ts +0 -1
  59. package/dist/user/admin/dto.schemas.d.ts +0 -34
  60. package/dist/user/admin/router.d.ts +0 -3
  61. package/dist/user/admin/service.d.ts +0 -3
  62. package/dist/user/db.schemas.d.ts +0 -34
  63. package/dist/user/internal/service.d.ts +0 -1
  64. package/dist/user/schema.d.ts +0 -17
  65. package/dist/user/user/router.d.ts +0 -3
  66. package/dist/user/user/service.d.ts +0 -3
  67. package/package.json +1 -1
@@ -0,0 +1,3104 @@
1
+ export declare const binaryOptionAdminMarketCreateSchema: import("@sinclair/typebox").TObject<{
2
+ name: import("@sinclair/typebox").TString;
3
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
4
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
5
+ marketSymbolId: import("@sinclair/typebox").TString;
6
+ minStakeAmount: import("@sinclair/typebox").TString;
7
+ maxStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
8
+ isVisibleOnFrontend: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
+ isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
10
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
11
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
12
+ active: "active";
13
+ draft: "draft";
14
+ ended: "ended";
15
+ paused: "paused";
16
+ }>>;
17
+ }>;
18
+ export type BinaryOptionAdminMarketCreateInputType = typeof binaryOptionAdminMarketCreateSchema.static;
19
+ export declare const binaryOptionAdminMarketUpdateSchema: import("@sinclair/typebox").TObject<{
20
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
22
+ image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
23
+ marketSymbolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
+ minStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
25
+ maxStakeAmount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
26
+ isVisibleOnFrontend: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
27
+ isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
28
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
29
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
30
+ active: "active";
31
+ draft: "draft";
32
+ ended: "ended";
33
+ paused: "paused";
34
+ }>>;
35
+ }>;
36
+ export type BinaryOptionAdminMarketUpdateInputType = typeof binaryOptionAdminMarketUpdateSchema.static;
37
+ export declare const binaryOptionAdminMarketListQuerySchema: import("@sinclair/typebox").TObject<{
38
+ keyword: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
40
+ marketSymbolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
41
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
42
+ pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
43
+ pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
44
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
45
+ active: "active";
46
+ draft: "draft";
47
+ ended: "ended";
48
+ paused: "paused";
49
+ }>>;
50
+ }>;
51
+ export type BinaryOptionAdminMarketListQueryType = typeof binaryOptionAdminMarketListQuerySchema.static;
52
+ export declare const binaryOptionAdminMarketItemSchema: import("@sinclair/typebox").TObject<{
53
+ baseAssetIdSnapshot: import("@sinclair/typebox").TString;
54
+ createdAt: import("@sinclair/typebox").TDate;
55
+ description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
56
+ durationConfigs: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
57
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
58
+ name: "created_at";
59
+ tableName: "binary_option_market_duration_config";
60
+ dataType: "date";
61
+ columnType: "PgTimestamp";
62
+ data: Date;
63
+ driverParam: string;
64
+ notNull: true;
65
+ hasDefault: true;
66
+ isPrimaryKey: false;
67
+ isAutoincrement: false;
68
+ hasRuntimeDefault: false;
69
+ enumValues: undefined;
70
+ baseColumn: never;
71
+ identity: undefined;
72
+ generated: undefined;
73
+ }, {}, {}>;
74
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
75
+ name: "updated_at";
76
+ tableName: "binary_option_market_duration_config";
77
+ dataType: "date";
78
+ columnType: "PgTimestamp";
79
+ data: Date;
80
+ driverParam: string;
81
+ notNull: true;
82
+ hasDefault: true;
83
+ isPrimaryKey: false;
84
+ isAutoincrement: false;
85
+ hasRuntimeDefault: false;
86
+ enumValues: undefined;
87
+ baseColumn: never;
88
+ identity: undefined;
89
+ generated: undefined;
90
+ }, {}, {}>;
91
+ id: import("drizzle-orm/pg-core").PgColumn<{
92
+ name: "id";
93
+ tableName: "binary_option_market_duration_config";
94
+ dataType: "string";
95
+ columnType: "PgUUID";
96
+ data: string;
97
+ driverParam: string;
98
+ notNull: true;
99
+ hasDefault: true;
100
+ isPrimaryKey: true;
101
+ isAutoincrement: false;
102
+ hasRuntimeDefault: false;
103
+ enumValues: undefined;
104
+ baseColumn: never;
105
+ identity: undefined;
106
+ generated: undefined;
107
+ }, {}, {}>;
108
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
109
+ name: "market_id";
110
+ tableName: "binary_option_market_duration_config";
111
+ dataType: "string";
112
+ columnType: "PgUUID";
113
+ data: string;
114
+ driverParam: string;
115
+ notNull: true;
116
+ hasDefault: false;
117
+ isPrimaryKey: false;
118
+ isAutoincrement: false;
119
+ hasRuntimeDefault: false;
120
+ enumValues: undefined;
121
+ baseColumn: never;
122
+ identity: undefined;
123
+ generated: undefined;
124
+ }, {}, {}>;
125
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
126
+ name: "duration_seconds";
127
+ tableName: "binary_option_market_duration_config";
128
+ dataType: "number";
129
+ columnType: "PgInteger";
130
+ data: number;
131
+ driverParam: string | number;
132
+ notNull: true;
133
+ hasDefault: false;
134
+ isPrimaryKey: false;
135
+ isAutoincrement: false;
136
+ hasRuntimeDefault: false;
137
+ enumValues: undefined;
138
+ baseColumn: never;
139
+ identity: undefined;
140
+ generated: undefined;
141
+ }, {}, {}>;
142
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
143
+ name: "win_payout_multiplier";
144
+ tableName: "binary_option_market_duration_config";
145
+ dataType: "string";
146
+ columnType: "PgNumeric";
147
+ data: string;
148
+ driverParam: string;
149
+ notNull: true;
150
+ hasDefault: false;
151
+ isPrimaryKey: false;
152
+ isAutoincrement: false;
153
+ hasRuntimeDefault: false;
154
+ enumValues: undefined;
155
+ baseColumn: never;
156
+ identity: undefined;
157
+ generated: undefined;
158
+ }, {}, {}>;
159
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
160
+ name: "lose_payout_multiplier";
161
+ tableName: "binary_option_market_duration_config";
162
+ dataType: "string";
163
+ columnType: "PgNumeric";
164
+ data: string;
165
+ driverParam: string;
166
+ notNull: true;
167
+ hasDefault: false;
168
+ isPrimaryKey: false;
169
+ isAutoincrement: false;
170
+ hasRuntimeDefault: false;
171
+ enumValues: undefined;
172
+ baseColumn: never;
173
+ identity: undefined;
174
+ generated: undefined;
175
+ }, {}, {}>;
176
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
177
+ name: "is_enabled";
178
+ tableName: "binary_option_market_duration_config";
179
+ dataType: "boolean";
180
+ columnType: "PgBoolean";
181
+ data: boolean;
182
+ driverParam: boolean;
183
+ notNull: true;
184
+ hasDefault: true;
185
+ isPrimaryKey: false;
186
+ isAutoincrement: false;
187
+ hasRuntimeDefault: false;
188
+ enumValues: undefined;
189
+ baseColumn: never;
190
+ identity: undefined;
191
+ generated: undefined;
192
+ }, {}, {}>;
193
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
194
+ name: "sort_order";
195
+ tableName: "binary_option_market_duration_config";
196
+ dataType: "number";
197
+ columnType: "PgInteger";
198
+ data: number;
199
+ driverParam: string | number;
200
+ notNull: true;
201
+ hasDefault: true;
202
+ isPrimaryKey: false;
203
+ isAutoincrement: false;
204
+ hasRuntimeDefault: false;
205
+ enumValues: undefined;
206
+ baseColumn: never;
207
+ identity: undefined;
208
+ generated: undefined;
209
+ }, {}, {}>;
210
+ }, undefined>>;
211
+ id: import("@sinclair/typebox").TString;
212
+ image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
213
+ isHot: import("@sinclair/typebox").TBoolean;
214
+ isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
215
+ marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
216
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
217
+ name: "created_at";
218
+ tableName: "market_symbol";
219
+ dataType: "date";
220
+ columnType: "PgTimestamp";
221
+ data: Date;
222
+ driverParam: string;
223
+ notNull: true;
224
+ hasDefault: true;
225
+ isPrimaryKey: false;
226
+ isAutoincrement: false;
227
+ hasRuntimeDefault: false;
228
+ enumValues: undefined;
229
+ baseColumn: never;
230
+ identity: undefined;
231
+ generated: undefined;
232
+ }, {}, {}>;
233
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
234
+ name: "updated_at";
235
+ tableName: "market_symbol";
236
+ dataType: "date";
237
+ columnType: "PgTimestamp";
238
+ data: Date;
239
+ driverParam: string;
240
+ notNull: true;
241
+ hasDefault: true;
242
+ isPrimaryKey: false;
243
+ isAutoincrement: false;
244
+ hasRuntimeDefault: false;
245
+ enumValues: undefined;
246
+ baseColumn: never;
247
+ identity: undefined;
248
+ generated: undefined;
249
+ }, {}, {}>;
250
+ id: import("drizzle-orm/pg-core").PgColumn<{
251
+ name: "id";
252
+ tableName: "market_symbol";
253
+ dataType: "string";
254
+ columnType: "PgUUID";
255
+ data: string;
256
+ driverParam: string;
257
+ notNull: true;
258
+ hasDefault: true;
259
+ isPrimaryKey: true;
260
+ isAutoincrement: false;
261
+ hasRuntimeDefault: false;
262
+ enumValues: undefined;
263
+ baseColumn: never;
264
+ identity: undefined;
265
+ generated: undefined;
266
+ }, {}, {}>;
267
+ symbol: import("drizzle-orm/pg-core").PgColumn<{
268
+ name: "symbol";
269
+ tableName: "market_symbol";
270
+ dataType: "string";
271
+ columnType: "PgText";
272
+ data: string;
273
+ driverParam: string;
274
+ notNull: true;
275
+ hasDefault: false;
276
+ isPrimaryKey: false;
277
+ isAutoincrement: false;
278
+ hasRuntimeDefault: false;
279
+ enumValues: [string, ...string[]];
280
+ baseColumn: never;
281
+ identity: undefined;
282
+ generated: undefined;
283
+ }, {}, {}>;
284
+ baseAssetId: import("drizzle-orm/pg-core").PgColumn<{
285
+ name: "base_asset_id";
286
+ tableName: "market_symbol";
287
+ dataType: "string";
288
+ columnType: "PgUUID";
289
+ data: string;
290
+ driverParam: string;
291
+ notNull: true;
292
+ hasDefault: false;
293
+ isPrimaryKey: false;
294
+ isAutoincrement: false;
295
+ hasRuntimeDefault: false;
296
+ enumValues: undefined;
297
+ baseColumn: never;
298
+ identity: undefined;
299
+ generated: undefined;
300
+ }, {}, {}>;
301
+ quoteAssetId: import("drizzle-orm/pg-core").PgColumn<{
302
+ name: "quote_asset_id";
303
+ tableName: "market_symbol";
304
+ dataType: "string";
305
+ columnType: "PgUUID";
306
+ data: string;
307
+ driverParam: string;
308
+ notNull: true;
309
+ hasDefault: false;
310
+ isPrimaryKey: false;
311
+ isAutoincrement: false;
312
+ hasRuntimeDefault: false;
313
+ enumValues: undefined;
314
+ baseColumn: never;
315
+ identity: undefined;
316
+ generated: undefined;
317
+ }, {}, {}>;
318
+ status: import("drizzle-orm/pg-core").PgColumn<{
319
+ name: "status";
320
+ tableName: "market_symbol";
321
+ dataType: "string";
322
+ columnType: "PgEnumColumn";
323
+ data: "active" | "draft" | "ended" | "paused";
324
+ driverParam: string;
325
+ notNull: true;
326
+ hasDefault: true;
327
+ isPrimaryKey: false;
328
+ isAutoincrement: false;
329
+ hasRuntimeDefault: false;
330
+ enumValues: ["draft", "active", "paused", "ended"];
331
+ baseColumn: never;
332
+ identity: undefined;
333
+ generated: undefined;
334
+ }, {}, {}>;
335
+ chartEnabled: import("drizzle-orm/pg-core").PgColumn<{
336
+ name: "chart_enabled";
337
+ tableName: "market_symbol";
338
+ dataType: "boolean";
339
+ columnType: "PgBoolean";
340
+ data: boolean;
341
+ driverParam: boolean;
342
+ notNull: true;
343
+ hasDefault: true;
344
+ isPrimaryKey: false;
345
+ isAutoincrement: false;
346
+ hasRuntimeDefault: false;
347
+ enumValues: undefined;
348
+ baseColumn: never;
349
+ identity: undefined;
350
+ generated: undefined;
351
+ }, {}, {}>;
352
+ settlementEnabled: import("drizzle-orm/pg-core").PgColumn<{
353
+ name: "settlement_enabled";
354
+ tableName: "market_symbol";
355
+ dataType: "boolean";
356
+ columnType: "PgBoolean";
357
+ data: boolean;
358
+ driverParam: boolean;
359
+ notNull: true;
360
+ hasDefault: true;
361
+ isPrimaryKey: false;
362
+ isAutoincrement: false;
363
+ hasRuntimeDefault: false;
364
+ enumValues: undefined;
365
+ baseColumn: never;
366
+ identity: undefined;
367
+ generated: undefined;
368
+ }, {}, {}>;
369
+ sourceType: import("drizzle-orm/pg-core").PgColumn<{
370
+ name: "source_type";
371
+ tableName: "market_symbol";
372
+ dataType: "string";
373
+ columnType: "PgEnumColumn";
374
+ data: "manual" | "market_pricing" | "trade_market";
375
+ driverParam: string;
376
+ notNull: true;
377
+ hasDefault: false;
378
+ isPrimaryKey: false;
379
+ isAutoincrement: false;
380
+ hasRuntimeDefault: false;
381
+ enumValues: ["trade_market", "market_pricing", "manual"];
382
+ baseColumn: never;
383
+ identity: undefined;
384
+ generated: undefined;
385
+ }, {}, {}>;
386
+ }, undefined>;
387
+ marketSymbolId: import("@sinclair/typebox").TString;
388
+ maxStakeAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
389
+ minStakeAmount: import("@sinclair/typebox").TString;
390
+ name: import("@sinclair/typebox").TString;
391
+ quoteAssetIdSnapshot: import("@sinclair/typebox").TString;
392
+ sortOrder: import("@sinclair/typebox").TInteger;
393
+ status: import("@sinclair/typebox").TEnum<{
394
+ active: "active";
395
+ draft: "draft";
396
+ ended: "ended";
397
+ paused: "paused";
398
+ }>;
399
+ symbolSnapshot: import("@sinclair/typebox").TString;
400
+ updatedAt: import("@sinclair/typebox").TDate;
401
+ }>;
402
+ export type BinaryOptionAdminMarketItemType = typeof binaryOptionAdminMarketItemSchema.static;
403
+ export declare const binaryOptionAdminMarketListResponseSchema: import("@sinclair/typebox").TObject<{
404
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
405
+ baseAssetIdSnapshot: import("@sinclair/typebox").TString;
406
+ createdAt: import("@sinclair/typebox").TDate;
407
+ description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
408
+ durationConfigs: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
409
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
410
+ name: "created_at";
411
+ tableName: "binary_option_market_duration_config";
412
+ dataType: "date";
413
+ columnType: "PgTimestamp";
414
+ data: Date;
415
+ driverParam: string;
416
+ notNull: true;
417
+ hasDefault: true;
418
+ isPrimaryKey: false;
419
+ isAutoincrement: false;
420
+ hasRuntimeDefault: false;
421
+ enumValues: undefined;
422
+ baseColumn: never;
423
+ identity: undefined;
424
+ generated: undefined;
425
+ }, {}, {}>;
426
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
427
+ name: "updated_at";
428
+ tableName: "binary_option_market_duration_config";
429
+ dataType: "date";
430
+ columnType: "PgTimestamp";
431
+ data: Date;
432
+ driverParam: string;
433
+ notNull: true;
434
+ hasDefault: true;
435
+ isPrimaryKey: false;
436
+ isAutoincrement: false;
437
+ hasRuntimeDefault: false;
438
+ enumValues: undefined;
439
+ baseColumn: never;
440
+ identity: undefined;
441
+ generated: undefined;
442
+ }, {}, {}>;
443
+ id: import("drizzle-orm/pg-core").PgColumn<{
444
+ name: "id";
445
+ tableName: "binary_option_market_duration_config";
446
+ dataType: "string";
447
+ columnType: "PgUUID";
448
+ data: string;
449
+ driverParam: string;
450
+ notNull: true;
451
+ hasDefault: true;
452
+ isPrimaryKey: true;
453
+ isAutoincrement: false;
454
+ hasRuntimeDefault: false;
455
+ enumValues: undefined;
456
+ baseColumn: never;
457
+ identity: undefined;
458
+ generated: undefined;
459
+ }, {}, {}>;
460
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
461
+ name: "market_id";
462
+ tableName: "binary_option_market_duration_config";
463
+ dataType: "string";
464
+ columnType: "PgUUID";
465
+ data: string;
466
+ driverParam: string;
467
+ notNull: true;
468
+ hasDefault: false;
469
+ isPrimaryKey: false;
470
+ isAutoincrement: false;
471
+ hasRuntimeDefault: false;
472
+ enumValues: undefined;
473
+ baseColumn: never;
474
+ identity: undefined;
475
+ generated: undefined;
476
+ }, {}, {}>;
477
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
478
+ name: "duration_seconds";
479
+ tableName: "binary_option_market_duration_config";
480
+ dataType: "number";
481
+ columnType: "PgInteger";
482
+ data: number;
483
+ driverParam: string | number;
484
+ notNull: true;
485
+ hasDefault: false;
486
+ isPrimaryKey: false;
487
+ isAutoincrement: false;
488
+ hasRuntimeDefault: false;
489
+ enumValues: undefined;
490
+ baseColumn: never;
491
+ identity: undefined;
492
+ generated: undefined;
493
+ }, {}, {}>;
494
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
495
+ name: "win_payout_multiplier";
496
+ tableName: "binary_option_market_duration_config";
497
+ dataType: "string";
498
+ columnType: "PgNumeric";
499
+ data: string;
500
+ driverParam: string;
501
+ notNull: true;
502
+ hasDefault: false;
503
+ isPrimaryKey: false;
504
+ isAutoincrement: false;
505
+ hasRuntimeDefault: false;
506
+ enumValues: undefined;
507
+ baseColumn: never;
508
+ identity: undefined;
509
+ generated: undefined;
510
+ }, {}, {}>;
511
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
512
+ name: "lose_payout_multiplier";
513
+ tableName: "binary_option_market_duration_config";
514
+ dataType: "string";
515
+ columnType: "PgNumeric";
516
+ data: string;
517
+ driverParam: string;
518
+ notNull: true;
519
+ hasDefault: false;
520
+ isPrimaryKey: false;
521
+ isAutoincrement: false;
522
+ hasRuntimeDefault: false;
523
+ enumValues: undefined;
524
+ baseColumn: never;
525
+ identity: undefined;
526
+ generated: undefined;
527
+ }, {}, {}>;
528
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
529
+ name: "is_enabled";
530
+ tableName: "binary_option_market_duration_config";
531
+ dataType: "boolean";
532
+ columnType: "PgBoolean";
533
+ data: boolean;
534
+ driverParam: boolean;
535
+ notNull: true;
536
+ hasDefault: true;
537
+ isPrimaryKey: false;
538
+ isAutoincrement: false;
539
+ hasRuntimeDefault: false;
540
+ enumValues: undefined;
541
+ baseColumn: never;
542
+ identity: undefined;
543
+ generated: undefined;
544
+ }, {}, {}>;
545
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
546
+ name: "sort_order";
547
+ tableName: "binary_option_market_duration_config";
548
+ dataType: "number";
549
+ columnType: "PgInteger";
550
+ data: number;
551
+ driverParam: string | number;
552
+ notNull: true;
553
+ hasDefault: true;
554
+ isPrimaryKey: false;
555
+ isAutoincrement: false;
556
+ hasRuntimeDefault: false;
557
+ enumValues: undefined;
558
+ baseColumn: never;
559
+ identity: undefined;
560
+ generated: undefined;
561
+ }, {}, {}>;
562
+ }, undefined>>;
563
+ id: import("@sinclair/typebox").TString;
564
+ image: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
565
+ isHot: import("@sinclair/typebox").TBoolean;
566
+ isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
567
+ marketSymbol: import("drizzle-typebox").BuildSchema<"select", {
568
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
569
+ name: "created_at";
570
+ tableName: "market_symbol";
571
+ dataType: "date";
572
+ columnType: "PgTimestamp";
573
+ data: Date;
574
+ driverParam: string;
575
+ notNull: true;
576
+ hasDefault: true;
577
+ isPrimaryKey: false;
578
+ isAutoincrement: false;
579
+ hasRuntimeDefault: false;
580
+ enumValues: undefined;
581
+ baseColumn: never;
582
+ identity: undefined;
583
+ generated: undefined;
584
+ }, {}, {}>;
585
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
586
+ name: "updated_at";
587
+ tableName: "market_symbol";
588
+ dataType: "date";
589
+ columnType: "PgTimestamp";
590
+ data: Date;
591
+ driverParam: string;
592
+ notNull: true;
593
+ hasDefault: true;
594
+ isPrimaryKey: false;
595
+ isAutoincrement: false;
596
+ hasRuntimeDefault: false;
597
+ enumValues: undefined;
598
+ baseColumn: never;
599
+ identity: undefined;
600
+ generated: undefined;
601
+ }, {}, {}>;
602
+ id: import("drizzle-orm/pg-core").PgColumn<{
603
+ name: "id";
604
+ tableName: "market_symbol";
605
+ dataType: "string";
606
+ columnType: "PgUUID";
607
+ data: string;
608
+ driverParam: string;
609
+ notNull: true;
610
+ hasDefault: true;
611
+ isPrimaryKey: true;
612
+ isAutoincrement: false;
613
+ hasRuntimeDefault: false;
614
+ enumValues: undefined;
615
+ baseColumn: never;
616
+ identity: undefined;
617
+ generated: undefined;
618
+ }, {}, {}>;
619
+ symbol: import("drizzle-orm/pg-core").PgColumn<{
620
+ name: "symbol";
621
+ tableName: "market_symbol";
622
+ dataType: "string";
623
+ columnType: "PgText";
624
+ data: string;
625
+ driverParam: string;
626
+ notNull: true;
627
+ hasDefault: false;
628
+ isPrimaryKey: false;
629
+ isAutoincrement: false;
630
+ hasRuntimeDefault: false;
631
+ enumValues: [string, ...string[]];
632
+ baseColumn: never;
633
+ identity: undefined;
634
+ generated: undefined;
635
+ }, {}, {}>;
636
+ baseAssetId: import("drizzle-orm/pg-core").PgColumn<{
637
+ name: "base_asset_id";
638
+ tableName: "market_symbol";
639
+ dataType: "string";
640
+ columnType: "PgUUID";
641
+ data: string;
642
+ driverParam: string;
643
+ notNull: true;
644
+ hasDefault: false;
645
+ isPrimaryKey: false;
646
+ isAutoincrement: false;
647
+ hasRuntimeDefault: false;
648
+ enumValues: undefined;
649
+ baseColumn: never;
650
+ identity: undefined;
651
+ generated: undefined;
652
+ }, {}, {}>;
653
+ quoteAssetId: import("drizzle-orm/pg-core").PgColumn<{
654
+ name: "quote_asset_id";
655
+ tableName: "market_symbol";
656
+ dataType: "string";
657
+ columnType: "PgUUID";
658
+ data: string;
659
+ driverParam: string;
660
+ notNull: true;
661
+ hasDefault: false;
662
+ isPrimaryKey: false;
663
+ isAutoincrement: false;
664
+ hasRuntimeDefault: false;
665
+ enumValues: undefined;
666
+ baseColumn: never;
667
+ identity: undefined;
668
+ generated: undefined;
669
+ }, {}, {}>;
670
+ status: import("drizzle-orm/pg-core").PgColumn<{
671
+ name: "status";
672
+ tableName: "market_symbol";
673
+ dataType: "string";
674
+ columnType: "PgEnumColumn";
675
+ data: "active" | "draft" | "ended" | "paused";
676
+ driverParam: string;
677
+ notNull: true;
678
+ hasDefault: true;
679
+ isPrimaryKey: false;
680
+ isAutoincrement: false;
681
+ hasRuntimeDefault: false;
682
+ enumValues: ["draft", "active", "paused", "ended"];
683
+ baseColumn: never;
684
+ identity: undefined;
685
+ generated: undefined;
686
+ }, {}, {}>;
687
+ chartEnabled: import("drizzle-orm/pg-core").PgColumn<{
688
+ name: "chart_enabled";
689
+ tableName: "market_symbol";
690
+ dataType: "boolean";
691
+ columnType: "PgBoolean";
692
+ data: boolean;
693
+ driverParam: boolean;
694
+ notNull: true;
695
+ hasDefault: true;
696
+ isPrimaryKey: false;
697
+ isAutoincrement: false;
698
+ hasRuntimeDefault: false;
699
+ enumValues: undefined;
700
+ baseColumn: never;
701
+ identity: undefined;
702
+ generated: undefined;
703
+ }, {}, {}>;
704
+ settlementEnabled: import("drizzle-orm/pg-core").PgColumn<{
705
+ name: "settlement_enabled";
706
+ tableName: "market_symbol";
707
+ dataType: "boolean";
708
+ columnType: "PgBoolean";
709
+ data: boolean;
710
+ driverParam: boolean;
711
+ notNull: true;
712
+ hasDefault: true;
713
+ isPrimaryKey: false;
714
+ isAutoincrement: false;
715
+ hasRuntimeDefault: false;
716
+ enumValues: undefined;
717
+ baseColumn: never;
718
+ identity: undefined;
719
+ generated: undefined;
720
+ }, {}, {}>;
721
+ sourceType: import("drizzle-orm/pg-core").PgColumn<{
722
+ name: "source_type";
723
+ tableName: "market_symbol";
724
+ dataType: "string";
725
+ columnType: "PgEnumColumn";
726
+ data: "manual" | "market_pricing" | "trade_market";
727
+ driverParam: string;
728
+ notNull: true;
729
+ hasDefault: false;
730
+ isPrimaryKey: false;
731
+ isAutoincrement: false;
732
+ hasRuntimeDefault: false;
733
+ enumValues: ["trade_market", "market_pricing", "manual"];
734
+ baseColumn: never;
735
+ identity: undefined;
736
+ generated: undefined;
737
+ }, {}, {}>;
738
+ }, undefined>;
739
+ marketSymbolId: import("@sinclair/typebox").TString;
740
+ maxStakeAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
741
+ minStakeAmount: import("@sinclair/typebox").TString;
742
+ name: import("@sinclair/typebox").TString;
743
+ quoteAssetIdSnapshot: import("@sinclair/typebox").TString;
744
+ sortOrder: import("@sinclair/typebox").TInteger;
745
+ status: import("@sinclair/typebox").TEnum<{
746
+ active: "active";
747
+ draft: "draft";
748
+ ended: "ended";
749
+ paused: "paused";
750
+ }>;
751
+ symbolSnapshot: import("@sinclair/typebox").TString;
752
+ updatedAt: import("@sinclair/typebox").TDate;
753
+ }>>;
754
+ pagination: import("@sinclair/typebox").TObject<{
755
+ pageSize: import("@sinclair/typebox").TNumber;
756
+ pageIndex: import("@sinclair/typebox").TNumber;
757
+ total: import("@sinclair/typebox").TNumber;
758
+ totalPages: import("@sinclair/typebox").TNumber;
759
+ hasNextPage: import("@sinclair/typebox").TBoolean;
760
+ }>;
761
+ }>;
762
+ export declare const binaryOptionAdminDurationConfigCreateSchema: import("@sinclair/typebox").TObject<{
763
+ durationSeconds: import("@sinclair/typebox").TInteger;
764
+ winPayoutMultiplier: import("@sinclair/typebox").TString;
765
+ losePayoutMultiplier: import("@sinclair/typebox").TString;
766
+ isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
767
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
768
+ }>;
769
+ export type BinaryOptionAdminDurationConfigCreateInputType = typeof binaryOptionAdminDurationConfigCreateSchema.static;
770
+ export declare const binaryOptionAdminDurationConfigUpdateSchema: import("@sinclair/typebox").TObject<{
771
+ durationSeconds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
772
+ winPayoutMultiplier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
773
+ losePayoutMultiplier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
774
+ isEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
775
+ sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
776
+ }>;
777
+ export type BinaryOptionAdminDurationConfigUpdateInputType = typeof binaryOptionAdminDurationConfigUpdateSchema.static;
778
+ export declare const binaryOptionAdminDurationConfigListResponseSchema: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
779
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
780
+ name: "created_at";
781
+ tableName: "binary_option_market_duration_config";
782
+ dataType: "date";
783
+ columnType: "PgTimestamp";
784
+ data: Date;
785
+ driverParam: string;
786
+ notNull: true;
787
+ hasDefault: true;
788
+ isPrimaryKey: false;
789
+ isAutoincrement: false;
790
+ hasRuntimeDefault: false;
791
+ enumValues: undefined;
792
+ baseColumn: never;
793
+ identity: undefined;
794
+ generated: undefined;
795
+ }, {}, {}>;
796
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
797
+ name: "updated_at";
798
+ tableName: "binary_option_market_duration_config";
799
+ dataType: "date";
800
+ columnType: "PgTimestamp";
801
+ data: Date;
802
+ driverParam: string;
803
+ notNull: true;
804
+ hasDefault: true;
805
+ isPrimaryKey: false;
806
+ isAutoincrement: false;
807
+ hasRuntimeDefault: false;
808
+ enumValues: undefined;
809
+ baseColumn: never;
810
+ identity: undefined;
811
+ generated: undefined;
812
+ }, {}, {}>;
813
+ id: import("drizzle-orm/pg-core").PgColumn<{
814
+ name: "id";
815
+ tableName: "binary_option_market_duration_config";
816
+ dataType: "string";
817
+ columnType: "PgUUID";
818
+ data: string;
819
+ driverParam: string;
820
+ notNull: true;
821
+ hasDefault: true;
822
+ isPrimaryKey: true;
823
+ isAutoincrement: false;
824
+ hasRuntimeDefault: false;
825
+ enumValues: undefined;
826
+ baseColumn: never;
827
+ identity: undefined;
828
+ generated: undefined;
829
+ }, {}, {}>;
830
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
831
+ name: "market_id";
832
+ tableName: "binary_option_market_duration_config";
833
+ dataType: "string";
834
+ columnType: "PgUUID";
835
+ data: string;
836
+ driverParam: string;
837
+ notNull: true;
838
+ hasDefault: false;
839
+ isPrimaryKey: false;
840
+ isAutoincrement: false;
841
+ hasRuntimeDefault: false;
842
+ enumValues: undefined;
843
+ baseColumn: never;
844
+ identity: undefined;
845
+ generated: undefined;
846
+ }, {}, {}>;
847
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
848
+ name: "duration_seconds";
849
+ tableName: "binary_option_market_duration_config";
850
+ dataType: "number";
851
+ columnType: "PgInteger";
852
+ data: number;
853
+ driverParam: string | number;
854
+ notNull: true;
855
+ hasDefault: false;
856
+ isPrimaryKey: false;
857
+ isAutoincrement: false;
858
+ hasRuntimeDefault: false;
859
+ enumValues: undefined;
860
+ baseColumn: never;
861
+ identity: undefined;
862
+ generated: undefined;
863
+ }, {}, {}>;
864
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
865
+ name: "win_payout_multiplier";
866
+ tableName: "binary_option_market_duration_config";
867
+ dataType: "string";
868
+ columnType: "PgNumeric";
869
+ data: string;
870
+ driverParam: string;
871
+ notNull: true;
872
+ hasDefault: false;
873
+ isPrimaryKey: false;
874
+ isAutoincrement: false;
875
+ hasRuntimeDefault: false;
876
+ enumValues: undefined;
877
+ baseColumn: never;
878
+ identity: undefined;
879
+ generated: undefined;
880
+ }, {}, {}>;
881
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
882
+ name: "lose_payout_multiplier";
883
+ tableName: "binary_option_market_duration_config";
884
+ dataType: "string";
885
+ columnType: "PgNumeric";
886
+ data: string;
887
+ driverParam: string;
888
+ notNull: true;
889
+ hasDefault: false;
890
+ isPrimaryKey: false;
891
+ isAutoincrement: false;
892
+ hasRuntimeDefault: false;
893
+ enumValues: undefined;
894
+ baseColumn: never;
895
+ identity: undefined;
896
+ generated: undefined;
897
+ }, {}, {}>;
898
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
899
+ name: "is_enabled";
900
+ tableName: "binary_option_market_duration_config";
901
+ dataType: "boolean";
902
+ columnType: "PgBoolean";
903
+ data: boolean;
904
+ driverParam: boolean;
905
+ notNull: true;
906
+ hasDefault: true;
907
+ isPrimaryKey: false;
908
+ isAutoincrement: false;
909
+ hasRuntimeDefault: false;
910
+ enumValues: undefined;
911
+ baseColumn: never;
912
+ identity: undefined;
913
+ generated: undefined;
914
+ }, {}, {}>;
915
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
916
+ name: "sort_order";
917
+ tableName: "binary_option_market_duration_config";
918
+ dataType: "number";
919
+ columnType: "PgInteger";
920
+ data: number;
921
+ driverParam: string | number;
922
+ notNull: true;
923
+ hasDefault: true;
924
+ isPrimaryKey: false;
925
+ isAutoincrement: false;
926
+ hasRuntimeDefault: false;
927
+ enumValues: undefined;
928
+ baseColumn: never;
929
+ identity: undefined;
930
+ generated: undefined;
931
+ }, {}, {}>;
932
+ }, undefined>>;
933
+ export declare const binaryOptionAdminOrderListQuerySchema: import("@sinclair/typebox").TObject<{
934
+ direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
935
+ down: "down";
936
+ up: "up";
937
+ }>>;
938
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
939
+ marketId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
940
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
941
+ pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
942
+ pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
943
+ result: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
944
+ cancelled: "cancelled";
945
+ draw: "draw";
946
+ expired: "expired";
947
+ failed: "failed";
948
+ lose: "lose";
949
+ win: "win";
950
+ }>, import("@sinclair/typebox").TNull]>>;
951
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
952
+ active: "active";
953
+ cancelled: "cancelled";
954
+ created: "created";
955
+ expired: "expired";
956
+ failed: "failed";
957
+ settled: "settled";
958
+ }>>;
959
+ userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
960
+ }>;
961
+ export type BinaryOptionAdminOrderListQueryType = typeof binaryOptionAdminOrderListQuerySchema.static;
962
+ export declare const binaryOptionAdminOrderItemSchema: import("@sinclair/typebox").TObject<{
963
+ baseAssetIdSnapshot: import("@sinclair/typebox").TString;
964
+ createdAt: import("@sinclair/typebox").TDate;
965
+ direction: import("@sinclair/typebox").TEnum<{
966
+ down: "down";
967
+ up: "up";
968
+ }>;
969
+ durationConfig: import("drizzle-typebox").BuildSchema<"select", {
970
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
971
+ name: "created_at";
972
+ tableName: "binary_option_market_duration_config";
973
+ dataType: "date";
974
+ columnType: "PgTimestamp";
975
+ data: Date;
976
+ driverParam: string;
977
+ notNull: true;
978
+ hasDefault: true;
979
+ isPrimaryKey: false;
980
+ isAutoincrement: false;
981
+ hasRuntimeDefault: false;
982
+ enumValues: undefined;
983
+ baseColumn: never;
984
+ identity: undefined;
985
+ generated: undefined;
986
+ }, {}, {}>;
987
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
988
+ name: "updated_at";
989
+ tableName: "binary_option_market_duration_config";
990
+ dataType: "date";
991
+ columnType: "PgTimestamp";
992
+ data: Date;
993
+ driverParam: string;
994
+ notNull: true;
995
+ hasDefault: true;
996
+ isPrimaryKey: false;
997
+ isAutoincrement: false;
998
+ hasRuntimeDefault: false;
999
+ enumValues: undefined;
1000
+ baseColumn: never;
1001
+ identity: undefined;
1002
+ generated: undefined;
1003
+ }, {}, {}>;
1004
+ id: import("drizzle-orm/pg-core").PgColumn<{
1005
+ name: "id";
1006
+ tableName: "binary_option_market_duration_config";
1007
+ dataType: "string";
1008
+ columnType: "PgUUID";
1009
+ data: string;
1010
+ driverParam: string;
1011
+ notNull: true;
1012
+ hasDefault: true;
1013
+ isPrimaryKey: true;
1014
+ isAutoincrement: false;
1015
+ hasRuntimeDefault: false;
1016
+ enumValues: undefined;
1017
+ baseColumn: never;
1018
+ identity: undefined;
1019
+ generated: undefined;
1020
+ }, {}, {}>;
1021
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
1022
+ name: "market_id";
1023
+ tableName: "binary_option_market_duration_config";
1024
+ dataType: "string";
1025
+ columnType: "PgUUID";
1026
+ data: string;
1027
+ driverParam: string;
1028
+ notNull: true;
1029
+ hasDefault: false;
1030
+ isPrimaryKey: false;
1031
+ isAutoincrement: false;
1032
+ hasRuntimeDefault: false;
1033
+ enumValues: undefined;
1034
+ baseColumn: never;
1035
+ identity: undefined;
1036
+ generated: undefined;
1037
+ }, {}, {}>;
1038
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
1039
+ name: "duration_seconds";
1040
+ tableName: "binary_option_market_duration_config";
1041
+ dataType: "number";
1042
+ columnType: "PgInteger";
1043
+ data: number;
1044
+ driverParam: string | number;
1045
+ notNull: true;
1046
+ hasDefault: false;
1047
+ isPrimaryKey: false;
1048
+ isAutoincrement: false;
1049
+ hasRuntimeDefault: false;
1050
+ enumValues: undefined;
1051
+ baseColumn: never;
1052
+ identity: undefined;
1053
+ generated: undefined;
1054
+ }, {}, {}>;
1055
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1056
+ name: "win_payout_multiplier";
1057
+ tableName: "binary_option_market_duration_config";
1058
+ dataType: "string";
1059
+ columnType: "PgNumeric";
1060
+ data: string;
1061
+ driverParam: string;
1062
+ notNull: true;
1063
+ hasDefault: false;
1064
+ isPrimaryKey: false;
1065
+ isAutoincrement: false;
1066
+ hasRuntimeDefault: false;
1067
+ enumValues: undefined;
1068
+ baseColumn: never;
1069
+ identity: undefined;
1070
+ generated: undefined;
1071
+ }, {}, {}>;
1072
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1073
+ name: "lose_payout_multiplier";
1074
+ tableName: "binary_option_market_duration_config";
1075
+ dataType: "string";
1076
+ columnType: "PgNumeric";
1077
+ data: string;
1078
+ driverParam: string;
1079
+ notNull: true;
1080
+ hasDefault: false;
1081
+ isPrimaryKey: false;
1082
+ isAutoincrement: false;
1083
+ hasRuntimeDefault: false;
1084
+ enumValues: undefined;
1085
+ baseColumn: never;
1086
+ identity: undefined;
1087
+ generated: undefined;
1088
+ }, {}, {}>;
1089
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
1090
+ name: "is_enabled";
1091
+ tableName: "binary_option_market_duration_config";
1092
+ dataType: "boolean";
1093
+ columnType: "PgBoolean";
1094
+ data: boolean;
1095
+ driverParam: boolean;
1096
+ notNull: true;
1097
+ hasDefault: true;
1098
+ isPrimaryKey: false;
1099
+ isAutoincrement: false;
1100
+ hasRuntimeDefault: false;
1101
+ enumValues: undefined;
1102
+ baseColumn: never;
1103
+ identity: undefined;
1104
+ generated: undefined;
1105
+ }, {}, {}>;
1106
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
1107
+ name: "sort_order";
1108
+ tableName: "binary_option_market_duration_config";
1109
+ dataType: "number";
1110
+ columnType: "PgInteger";
1111
+ data: number;
1112
+ driverParam: string | number;
1113
+ notNull: true;
1114
+ hasDefault: true;
1115
+ isPrimaryKey: false;
1116
+ isAutoincrement: false;
1117
+ hasRuntimeDefault: false;
1118
+ enumValues: undefined;
1119
+ baseColumn: never;
1120
+ identity: undefined;
1121
+ generated: undefined;
1122
+ }, {}, {}>;
1123
+ }, undefined>;
1124
+ durationConfigId: import("@sinclair/typebox").TString;
1125
+ durationSeconds: import("@sinclair/typebox").TInteger;
1126
+ expireAt: import("@sinclair/typebox").TDate;
1127
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1128
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1129
+ id: import("@sinclair/typebox").TString;
1130
+ idempotencyKey: import("@sinclair/typebox").TString;
1131
+ losePayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
1132
+ market: import("@sinclair/typebox").TObject<{
1133
+ id: import("@sinclair/typebox").TString;
1134
+ name: import("@sinclair/typebox").TString;
1135
+ symbolSnapshot: import("@sinclair/typebox").TString;
1136
+ status: import("@sinclair/typebox").TEnum<{
1137
+ active: "active";
1138
+ draft: "draft";
1139
+ ended: "ended";
1140
+ paused: "paused";
1141
+ }>;
1142
+ }>;
1143
+ marketId: import("@sinclair/typebox").TString;
1144
+ marketNameSnapshot: import("@sinclair/typebox").TString;
1145
+ openPrice: import("@sinclair/typebox").TString;
1146
+ openPriceAt: import("@sinclair/typebox").TDate;
1147
+ orderNo: import("@sinclair/typebox").TString;
1148
+ payoutAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1149
+ quoteAssetIdSnapshot: import("@sinclair/typebox").TString;
1150
+ result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
1151
+ cancelled: "cancelled";
1152
+ draw: "draw";
1153
+ expired: "expired";
1154
+ failed: "failed";
1155
+ lose: "lose";
1156
+ win: "win";
1157
+ }>, import("@sinclair/typebox").TNull]>;
1158
+ settlementPrice: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1159
+ settlementPriceAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1160
+ stakeAmount: import("@sinclair/typebox").TString;
1161
+ stakeLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1162
+ status: import("@sinclair/typebox").TEnum<{
1163
+ active: "active";
1164
+ cancelled: "cancelled";
1165
+ created: "created";
1166
+ expired: "expired";
1167
+ failed: "failed";
1168
+ settled: "settled";
1169
+ }>;
1170
+ symbolSnapshot: import("@sinclair/typebox").TString;
1171
+ updatedAt: import("@sinclair/typebox").TDate;
1172
+ user: import("@sinclair/typebox").TObject<{
1173
+ id: import("@sinclair/typebox").TString;
1174
+ name: import("@sinclair/typebox").TString;
1175
+ email: import("@sinclair/typebox").TString;
1176
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1177
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1178
+ }>;
1179
+ userId: import("@sinclair/typebox").TString;
1180
+ winPayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
1181
+ }>;
1182
+ export declare const binaryOptionAdminOrderListResponseSchema: import("@sinclair/typebox").TObject<{
1183
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1184
+ baseAssetIdSnapshot: import("@sinclair/typebox").TString;
1185
+ createdAt: import("@sinclair/typebox").TDate;
1186
+ direction: import("@sinclair/typebox").TEnum<{
1187
+ down: "down";
1188
+ up: "up";
1189
+ }>;
1190
+ durationConfig: import("drizzle-typebox").BuildSchema<"select", {
1191
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1192
+ name: "created_at";
1193
+ tableName: "binary_option_market_duration_config";
1194
+ dataType: "date";
1195
+ columnType: "PgTimestamp";
1196
+ data: Date;
1197
+ driverParam: string;
1198
+ notNull: true;
1199
+ hasDefault: true;
1200
+ isPrimaryKey: false;
1201
+ isAutoincrement: false;
1202
+ hasRuntimeDefault: false;
1203
+ enumValues: undefined;
1204
+ baseColumn: never;
1205
+ identity: undefined;
1206
+ generated: undefined;
1207
+ }, {}, {}>;
1208
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1209
+ name: "updated_at";
1210
+ tableName: "binary_option_market_duration_config";
1211
+ dataType: "date";
1212
+ columnType: "PgTimestamp";
1213
+ data: Date;
1214
+ driverParam: string;
1215
+ notNull: true;
1216
+ hasDefault: true;
1217
+ isPrimaryKey: false;
1218
+ isAutoincrement: false;
1219
+ hasRuntimeDefault: false;
1220
+ enumValues: undefined;
1221
+ baseColumn: never;
1222
+ identity: undefined;
1223
+ generated: undefined;
1224
+ }, {}, {}>;
1225
+ id: import("drizzle-orm/pg-core").PgColumn<{
1226
+ name: "id";
1227
+ tableName: "binary_option_market_duration_config";
1228
+ dataType: "string";
1229
+ columnType: "PgUUID";
1230
+ data: string;
1231
+ driverParam: string;
1232
+ notNull: true;
1233
+ hasDefault: true;
1234
+ isPrimaryKey: true;
1235
+ isAutoincrement: false;
1236
+ hasRuntimeDefault: false;
1237
+ enumValues: undefined;
1238
+ baseColumn: never;
1239
+ identity: undefined;
1240
+ generated: undefined;
1241
+ }, {}, {}>;
1242
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
1243
+ name: "market_id";
1244
+ tableName: "binary_option_market_duration_config";
1245
+ dataType: "string";
1246
+ columnType: "PgUUID";
1247
+ data: string;
1248
+ driverParam: string;
1249
+ notNull: true;
1250
+ hasDefault: false;
1251
+ isPrimaryKey: false;
1252
+ isAutoincrement: false;
1253
+ hasRuntimeDefault: false;
1254
+ enumValues: undefined;
1255
+ baseColumn: never;
1256
+ identity: undefined;
1257
+ generated: undefined;
1258
+ }, {}, {}>;
1259
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
1260
+ name: "duration_seconds";
1261
+ tableName: "binary_option_market_duration_config";
1262
+ dataType: "number";
1263
+ columnType: "PgInteger";
1264
+ data: number;
1265
+ driverParam: string | number;
1266
+ notNull: true;
1267
+ hasDefault: false;
1268
+ isPrimaryKey: false;
1269
+ isAutoincrement: false;
1270
+ hasRuntimeDefault: false;
1271
+ enumValues: undefined;
1272
+ baseColumn: never;
1273
+ identity: undefined;
1274
+ generated: undefined;
1275
+ }, {}, {}>;
1276
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1277
+ name: "win_payout_multiplier";
1278
+ tableName: "binary_option_market_duration_config";
1279
+ dataType: "string";
1280
+ columnType: "PgNumeric";
1281
+ data: string;
1282
+ driverParam: string;
1283
+ notNull: true;
1284
+ hasDefault: false;
1285
+ isPrimaryKey: false;
1286
+ isAutoincrement: false;
1287
+ hasRuntimeDefault: false;
1288
+ enumValues: undefined;
1289
+ baseColumn: never;
1290
+ identity: undefined;
1291
+ generated: undefined;
1292
+ }, {}, {}>;
1293
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1294
+ name: "lose_payout_multiplier";
1295
+ tableName: "binary_option_market_duration_config";
1296
+ dataType: "string";
1297
+ columnType: "PgNumeric";
1298
+ data: string;
1299
+ driverParam: string;
1300
+ notNull: true;
1301
+ hasDefault: false;
1302
+ isPrimaryKey: false;
1303
+ isAutoincrement: false;
1304
+ hasRuntimeDefault: false;
1305
+ enumValues: undefined;
1306
+ baseColumn: never;
1307
+ identity: undefined;
1308
+ generated: undefined;
1309
+ }, {}, {}>;
1310
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
1311
+ name: "is_enabled";
1312
+ tableName: "binary_option_market_duration_config";
1313
+ dataType: "boolean";
1314
+ columnType: "PgBoolean";
1315
+ data: boolean;
1316
+ driverParam: boolean;
1317
+ notNull: true;
1318
+ hasDefault: true;
1319
+ isPrimaryKey: false;
1320
+ isAutoincrement: false;
1321
+ hasRuntimeDefault: false;
1322
+ enumValues: undefined;
1323
+ baseColumn: never;
1324
+ identity: undefined;
1325
+ generated: undefined;
1326
+ }, {}, {}>;
1327
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
1328
+ name: "sort_order";
1329
+ tableName: "binary_option_market_duration_config";
1330
+ dataType: "number";
1331
+ columnType: "PgInteger";
1332
+ data: number;
1333
+ driverParam: string | number;
1334
+ notNull: true;
1335
+ hasDefault: true;
1336
+ isPrimaryKey: false;
1337
+ isAutoincrement: false;
1338
+ hasRuntimeDefault: false;
1339
+ enumValues: undefined;
1340
+ baseColumn: never;
1341
+ identity: undefined;
1342
+ generated: undefined;
1343
+ }, {}, {}>;
1344
+ }, undefined>;
1345
+ durationConfigId: import("@sinclair/typebox").TString;
1346
+ durationSeconds: import("@sinclair/typebox").TInteger;
1347
+ expireAt: import("@sinclair/typebox").TDate;
1348
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1349
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1350
+ id: import("@sinclair/typebox").TString;
1351
+ idempotencyKey: import("@sinclair/typebox").TString;
1352
+ losePayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
1353
+ market: import("@sinclair/typebox").TObject<{
1354
+ id: import("@sinclair/typebox").TString;
1355
+ name: import("@sinclair/typebox").TString;
1356
+ symbolSnapshot: import("@sinclair/typebox").TString;
1357
+ status: import("@sinclair/typebox").TEnum<{
1358
+ active: "active";
1359
+ draft: "draft";
1360
+ ended: "ended";
1361
+ paused: "paused";
1362
+ }>;
1363
+ }>;
1364
+ marketId: import("@sinclair/typebox").TString;
1365
+ marketNameSnapshot: import("@sinclair/typebox").TString;
1366
+ openPrice: import("@sinclair/typebox").TString;
1367
+ openPriceAt: import("@sinclair/typebox").TDate;
1368
+ orderNo: import("@sinclair/typebox").TString;
1369
+ payoutAmount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1370
+ quoteAssetIdSnapshot: import("@sinclair/typebox").TString;
1371
+ result: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
1372
+ cancelled: "cancelled";
1373
+ draw: "draw";
1374
+ expired: "expired";
1375
+ failed: "failed";
1376
+ lose: "lose";
1377
+ win: "win";
1378
+ }>, import("@sinclair/typebox").TNull]>;
1379
+ settlementPrice: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1380
+ settlementPriceAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1381
+ stakeAmount: import("@sinclair/typebox").TString;
1382
+ stakeLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1383
+ status: import("@sinclair/typebox").TEnum<{
1384
+ active: "active";
1385
+ cancelled: "cancelled";
1386
+ created: "created";
1387
+ expired: "expired";
1388
+ failed: "failed";
1389
+ settled: "settled";
1390
+ }>;
1391
+ symbolSnapshot: import("@sinclair/typebox").TString;
1392
+ updatedAt: import("@sinclair/typebox").TDate;
1393
+ user: import("@sinclair/typebox").TObject<{
1394
+ id: import("@sinclair/typebox").TString;
1395
+ name: import("@sinclair/typebox").TString;
1396
+ email: import("@sinclair/typebox").TString;
1397
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1398
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1399
+ }>;
1400
+ userId: import("@sinclair/typebox").TString;
1401
+ winPayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
1402
+ }>>;
1403
+ pagination: import("@sinclair/typebox").TObject<{
1404
+ pageSize: import("@sinclair/typebox").TNumber;
1405
+ pageIndex: import("@sinclair/typebox").TNumber;
1406
+ total: import("@sinclair/typebox").TNumber;
1407
+ totalPages: import("@sinclair/typebox").TNumber;
1408
+ hasNextPage: import("@sinclair/typebox").TBoolean;
1409
+ }>;
1410
+ }>;
1411
+ export declare const binaryOptionAdminSettlementListQuerySchema: import("@sinclair/typebox").TObject<{
1412
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1413
+ marketId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1414
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1415
+ pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1416
+ pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1417
+ result: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
1418
+ cancelled: "cancelled";
1419
+ draw: "draw";
1420
+ expired: "expired";
1421
+ failed: "failed";
1422
+ lose: "lose";
1423
+ win: "win";
1424
+ }>>;
1425
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
1426
+ completed: "completed";
1427
+ failed: "failed";
1428
+ pending: "pending";
1429
+ }>>;
1430
+ userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1431
+ }>;
1432
+ export type BinaryOptionAdminSettlementListQueryType = typeof binaryOptionAdminSettlementListQuerySchema.static;
1433
+ export declare const binaryOptionAdminSettlementItemSchema: import("@sinclair/typebox").TObject<{
1434
+ createdAt: import("@sinclair/typebox").TDate;
1435
+ directionSnapshot: import("@sinclair/typebox").TEnum<{
1436
+ down: "down";
1437
+ up: "up";
1438
+ }>;
1439
+ durationConfigIdSnapshot: import("@sinclair/typebox").TString;
1440
+ durationConfigSnapshot: import("drizzle-typebox").BuildSchema<"select", {
1441
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1442
+ name: "created_at";
1443
+ tableName: "binary_option_market_duration_config";
1444
+ dataType: "date";
1445
+ columnType: "PgTimestamp";
1446
+ data: Date;
1447
+ driverParam: string;
1448
+ notNull: true;
1449
+ hasDefault: true;
1450
+ isPrimaryKey: false;
1451
+ isAutoincrement: false;
1452
+ hasRuntimeDefault: false;
1453
+ enumValues: undefined;
1454
+ baseColumn: never;
1455
+ identity: undefined;
1456
+ generated: undefined;
1457
+ }, {}, {}>;
1458
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1459
+ name: "updated_at";
1460
+ tableName: "binary_option_market_duration_config";
1461
+ dataType: "date";
1462
+ columnType: "PgTimestamp";
1463
+ data: Date;
1464
+ driverParam: string;
1465
+ notNull: true;
1466
+ hasDefault: true;
1467
+ isPrimaryKey: false;
1468
+ isAutoincrement: false;
1469
+ hasRuntimeDefault: false;
1470
+ enumValues: undefined;
1471
+ baseColumn: never;
1472
+ identity: undefined;
1473
+ generated: undefined;
1474
+ }, {}, {}>;
1475
+ id: import("drizzle-orm/pg-core").PgColumn<{
1476
+ name: "id";
1477
+ tableName: "binary_option_market_duration_config";
1478
+ dataType: "string";
1479
+ columnType: "PgUUID";
1480
+ data: string;
1481
+ driverParam: string;
1482
+ notNull: true;
1483
+ hasDefault: true;
1484
+ isPrimaryKey: true;
1485
+ isAutoincrement: false;
1486
+ hasRuntimeDefault: false;
1487
+ enumValues: undefined;
1488
+ baseColumn: never;
1489
+ identity: undefined;
1490
+ generated: undefined;
1491
+ }, {}, {}>;
1492
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
1493
+ name: "market_id";
1494
+ tableName: "binary_option_market_duration_config";
1495
+ dataType: "string";
1496
+ columnType: "PgUUID";
1497
+ data: string;
1498
+ driverParam: string;
1499
+ notNull: true;
1500
+ hasDefault: false;
1501
+ isPrimaryKey: false;
1502
+ isAutoincrement: false;
1503
+ hasRuntimeDefault: false;
1504
+ enumValues: undefined;
1505
+ baseColumn: never;
1506
+ identity: undefined;
1507
+ generated: undefined;
1508
+ }, {}, {}>;
1509
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
1510
+ name: "duration_seconds";
1511
+ tableName: "binary_option_market_duration_config";
1512
+ dataType: "number";
1513
+ columnType: "PgInteger";
1514
+ data: number;
1515
+ driverParam: string | number;
1516
+ notNull: true;
1517
+ hasDefault: false;
1518
+ isPrimaryKey: false;
1519
+ isAutoincrement: false;
1520
+ hasRuntimeDefault: false;
1521
+ enumValues: undefined;
1522
+ baseColumn: never;
1523
+ identity: undefined;
1524
+ generated: undefined;
1525
+ }, {}, {}>;
1526
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1527
+ name: "win_payout_multiplier";
1528
+ tableName: "binary_option_market_duration_config";
1529
+ dataType: "string";
1530
+ columnType: "PgNumeric";
1531
+ data: string;
1532
+ driverParam: string;
1533
+ notNull: true;
1534
+ hasDefault: false;
1535
+ isPrimaryKey: false;
1536
+ isAutoincrement: false;
1537
+ hasRuntimeDefault: false;
1538
+ enumValues: undefined;
1539
+ baseColumn: never;
1540
+ identity: undefined;
1541
+ generated: undefined;
1542
+ }, {}, {}>;
1543
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
1544
+ name: "lose_payout_multiplier";
1545
+ tableName: "binary_option_market_duration_config";
1546
+ dataType: "string";
1547
+ columnType: "PgNumeric";
1548
+ data: string;
1549
+ driverParam: string;
1550
+ notNull: true;
1551
+ hasDefault: false;
1552
+ isPrimaryKey: false;
1553
+ isAutoincrement: false;
1554
+ hasRuntimeDefault: false;
1555
+ enumValues: undefined;
1556
+ baseColumn: never;
1557
+ identity: undefined;
1558
+ generated: undefined;
1559
+ }, {}, {}>;
1560
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
1561
+ name: "is_enabled";
1562
+ tableName: "binary_option_market_duration_config";
1563
+ dataType: "boolean";
1564
+ columnType: "PgBoolean";
1565
+ data: boolean;
1566
+ driverParam: boolean;
1567
+ notNull: true;
1568
+ hasDefault: true;
1569
+ isPrimaryKey: false;
1570
+ isAutoincrement: false;
1571
+ hasRuntimeDefault: false;
1572
+ enumValues: undefined;
1573
+ baseColumn: never;
1574
+ identity: undefined;
1575
+ generated: undefined;
1576
+ }, {}, {}>;
1577
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
1578
+ name: "sort_order";
1579
+ tableName: "binary_option_market_duration_config";
1580
+ dataType: "number";
1581
+ columnType: "PgInteger";
1582
+ data: number;
1583
+ driverParam: string | number;
1584
+ notNull: true;
1585
+ hasDefault: true;
1586
+ isPrimaryKey: false;
1587
+ isAutoincrement: false;
1588
+ hasRuntimeDefault: false;
1589
+ enumValues: undefined;
1590
+ baseColumn: never;
1591
+ identity: undefined;
1592
+ generated: undefined;
1593
+ }, {}, {}>;
1594
+ }, undefined>;
1595
+ durationSecondsSnapshot: import("@sinclair/typebox").TInteger;
1596
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1597
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1598
+ id: import("@sinclair/typebox").TString;
1599
+ idempotencyKey: import("@sinclair/typebox").TString;
1600
+ losePayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
1601
+ market: import("@sinclair/typebox").TObject<{
1602
+ id: import("@sinclair/typebox").TString;
1603
+ name: import("@sinclair/typebox").TString;
1604
+ symbolSnapshot: import("@sinclair/typebox").TString;
1605
+ status: import("@sinclair/typebox").TEnum<{
1606
+ active: "active";
1607
+ draft: "draft";
1608
+ ended: "ended";
1609
+ paused: "paused";
1610
+ }>;
1611
+ }>;
1612
+ marketId: import("@sinclair/typebox").TString;
1613
+ marketNameSnapshot: import("@sinclair/typebox").TString;
1614
+ order: import("drizzle-typebox").BuildSchema<"select", {
1615
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1616
+ name: "created_at";
1617
+ tableName: "binary_option_order";
1618
+ dataType: "date";
1619
+ columnType: "PgTimestamp";
1620
+ data: Date;
1621
+ driverParam: string;
1622
+ notNull: true;
1623
+ hasDefault: true;
1624
+ isPrimaryKey: false;
1625
+ isAutoincrement: false;
1626
+ hasRuntimeDefault: false;
1627
+ enumValues: undefined;
1628
+ baseColumn: never;
1629
+ identity: undefined;
1630
+ generated: undefined;
1631
+ }, {}, {}>;
1632
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1633
+ name: "updated_at";
1634
+ tableName: "binary_option_order";
1635
+ dataType: "date";
1636
+ columnType: "PgTimestamp";
1637
+ data: Date;
1638
+ driverParam: string;
1639
+ notNull: true;
1640
+ hasDefault: true;
1641
+ isPrimaryKey: false;
1642
+ isAutoincrement: false;
1643
+ hasRuntimeDefault: false;
1644
+ enumValues: undefined;
1645
+ baseColumn: never;
1646
+ identity: undefined;
1647
+ generated: undefined;
1648
+ }, {}, {}>;
1649
+ id: import("drizzle-orm/pg-core").PgColumn<{
1650
+ name: "id";
1651
+ tableName: "binary_option_order";
1652
+ dataType: "string";
1653
+ columnType: "PgUUID";
1654
+ data: string;
1655
+ driverParam: string;
1656
+ notNull: true;
1657
+ hasDefault: true;
1658
+ isPrimaryKey: true;
1659
+ isAutoincrement: false;
1660
+ hasRuntimeDefault: false;
1661
+ enumValues: undefined;
1662
+ baseColumn: never;
1663
+ identity: undefined;
1664
+ generated: undefined;
1665
+ }, {}, {}>;
1666
+ orderNo: import("drizzle-orm/pg-core").PgColumn<{
1667
+ name: "order_no";
1668
+ tableName: "binary_option_order";
1669
+ dataType: "string";
1670
+ columnType: "PgText";
1671
+ data: string;
1672
+ driverParam: string;
1673
+ notNull: true;
1674
+ hasDefault: false;
1675
+ isPrimaryKey: false;
1676
+ isAutoincrement: false;
1677
+ hasRuntimeDefault: false;
1678
+ enumValues: [string, ...string[]];
1679
+ baseColumn: never;
1680
+ identity: undefined;
1681
+ generated: undefined;
1682
+ }, {}, {}>;
1683
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
1684
+ name: "idempotency_key";
1685
+ tableName: "binary_option_order";
1686
+ dataType: "string";
1687
+ columnType: "PgText";
1688
+ data: string;
1689
+ driverParam: string;
1690
+ notNull: true;
1691
+ hasDefault: false;
1692
+ isPrimaryKey: false;
1693
+ isAutoincrement: false;
1694
+ hasRuntimeDefault: false;
1695
+ enumValues: [string, ...string[]];
1696
+ baseColumn: never;
1697
+ identity: undefined;
1698
+ generated: undefined;
1699
+ }, {}, {}>;
1700
+ userId: import("drizzle-orm/pg-core").PgColumn<{
1701
+ name: "user_id";
1702
+ tableName: "binary_option_order";
1703
+ dataType: "string";
1704
+ columnType: "PgText";
1705
+ data: string;
1706
+ driverParam: string;
1707
+ notNull: true;
1708
+ hasDefault: false;
1709
+ isPrimaryKey: false;
1710
+ isAutoincrement: false;
1711
+ hasRuntimeDefault: false;
1712
+ enumValues: [string, ...string[]];
1713
+ baseColumn: never;
1714
+ identity: undefined;
1715
+ generated: undefined;
1716
+ }, {}, {}>;
1717
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
1718
+ name: "market_id";
1719
+ tableName: "binary_option_order";
1720
+ dataType: "string";
1721
+ columnType: "PgUUID";
1722
+ data: string;
1723
+ driverParam: string;
1724
+ notNull: true;
1725
+ hasDefault: false;
1726
+ isPrimaryKey: false;
1727
+ isAutoincrement: false;
1728
+ hasRuntimeDefault: false;
1729
+ enumValues: undefined;
1730
+ baseColumn: never;
1731
+ identity: undefined;
1732
+ generated: undefined;
1733
+ }, {}, {}>;
1734
+ durationConfigId: import("drizzle-orm/pg-core").PgColumn<{
1735
+ name: "duration_config_id";
1736
+ tableName: "binary_option_order";
1737
+ dataType: "string";
1738
+ columnType: "PgUUID";
1739
+ data: string;
1740
+ driverParam: string;
1741
+ notNull: true;
1742
+ hasDefault: false;
1743
+ isPrimaryKey: false;
1744
+ isAutoincrement: false;
1745
+ hasRuntimeDefault: false;
1746
+ enumValues: undefined;
1747
+ baseColumn: never;
1748
+ identity: undefined;
1749
+ generated: undefined;
1750
+ }, {}, {}>;
1751
+ marketNameSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1752
+ name: "market_name_snapshot";
1753
+ tableName: "binary_option_order";
1754
+ dataType: "string";
1755
+ columnType: "PgText";
1756
+ data: string;
1757
+ driverParam: string;
1758
+ notNull: true;
1759
+ hasDefault: false;
1760
+ isPrimaryKey: false;
1761
+ isAutoincrement: false;
1762
+ hasRuntimeDefault: false;
1763
+ enumValues: [string, ...string[]];
1764
+ baseColumn: never;
1765
+ identity: undefined;
1766
+ generated: undefined;
1767
+ }, {}, {}>;
1768
+ symbolSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1769
+ name: "symbol_snapshot";
1770
+ tableName: "binary_option_order";
1771
+ dataType: "string";
1772
+ columnType: "PgText";
1773
+ data: string;
1774
+ driverParam: string;
1775
+ notNull: true;
1776
+ hasDefault: false;
1777
+ isPrimaryKey: false;
1778
+ isAutoincrement: false;
1779
+ hasRuntimeDefault: false;
1780
+ enumValues: [string, ...string[]];
1781
+ baseColumn: never;
1782
+ identity: undefined;
1783
+ generated: undefined;
1784
+ }, {}, {}>;
1785
+ baseAssetIdSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1786
+ name: "base_asset_id_snapshot";
1787
+ tableName: "binary_option_order";
1788
+ dataType: "string";
1789
+ columnType: "PgUUID";
1790
+ data: string;
1791
+ driverParam: string;
1792
+ notNull: true;
1793
+ hasDefault: false;
1794
+ isPrimaryKey: false;
1795
+ isAutoincrement: false;
1796
+ hasRuntimeDefault: false;
1797
+ enumValues: undefined;
1798
+ baseColumn: never;
1799
+ identity: undefined;
1800
+ generated: undefined;
1801
+ }, {}, {}>;
1802
+ quoteAssetIdSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1803
+ name: "quote_asset_id_snapshot";
1804
+ tableName: "binary_option_order";
1805
+ dataType: "string";
1806
+ columnType: "PgUUID";
1807
+ data: string;
1808
+ driverParam: string;
1809
+ notNull: true;
1810
+ hasDefault: false;
1811
+ isPrimaryKey: false;
1812
+ isAutoincrement: false;
1813
+ hasRuntimeDefault: false;
1814
+ enumValues: undefined;
1815
+ baseColumn: never;
1816
+ identity: undefined;
1817
+ generated: undefined;
1818
+ }, {}, {}>;
1819
+ winPayoutMultiplierSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1820
+ name: "win_payout_multiplier_snapshot";
1821
+ tableName: "binary_option_order";
1822
+ dataType: "string";
1823
+ columnType: "PgNumeric";
1824
+ data: string;
1825
+ driverParam: string;
1826
+ notNull: true;
1827
+ hasDefault: false;
1828
+ isPrimaryKey: false;
1829
+ isAutoincrement: false;
1830
+ hasRuntimeDefault: false;
1831
+ enumValues: undefined;
1832
+ baseColumn: never;
1833
+ identity: undefined;
1834
+ generated: undefined;
1835
+ }, {}, {}>;
1836
+ losePayoutMultiplierSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1837
+ name: "lose_payout_multiplier_snapshot";
1838
+ tableName: "binary_option_order";
1839
+ dataType: "string";
1840
+ columnType: "PgNumeric";
1841
+ data: string;
1842
+ driverParam: string;
1843
+ notNull: true;
1844
+ hasDefault: false;
1845
+ isPrimaryKey: false;
1846
+ isAutoincrement: false;
1847
+ hasRuntimeDefault: false;
1848
+ enumValues: undefined;
1849
+ baseColumn: never;
1850
+ identity: undefined;
1851
+ generated: undefined;
1852
+ }, {}, {}>;
1853
+ direction: import("drizzle-orm/pg-core").PgColumn<{
1854
+ name: "direction";
1855
+ tableName: "binary_option_order";
1856
+ dataType: "string";
1857
+ columnType: "PgEnumColumn";
1858
+ data: "down" | "up";
1859
+ driverParam: string;
1860
+ notNull: true;
1861
+ hasDefault: false;
1862
+ isPrimaryKey: false;
1863
+ isAutoincrement: false;
1864
+ hasRuntimeDefault: false;
1865
+ enumValues: ["up", "down"];
1866
+ baseColumn: never;
1867
+ identity: undefined;
1868
+ generated: undefined;
1869
+ }, {}, {}>;
1870
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
1871
+ name: "duration_seconds";
1872
+ tableName: "binary_option_order";
1873
+ dataType: "number";
1874
+ columnType: "PgInteger";
1875
+ data: number;
1876
+ driverParam: string | number;
1877
+ notNull: true;
1878
+ hasDefault: false;
1879
+ isPrimaryKey: false;
1880
+ isAutoincrement: false;
1881
+ hasRuntimeDefault: false;
1882
+ enumValues: undefined;
1883
+ baseColumn: never;
1884
+ identity: undefined;
1885
+ generated: undefined;
1886
+ }, {}, {}>;
1887
+ stakeAmount: import("drizzle-orm/pg-core").PgColumn<{
1888
+ name: "stake_amount";
1889
+ tableName: "binary_option_order";
1890
+ dataType: "string";
1891
+ columnType: "PgNumeric";
1892
+ data: string;
1893
+ driverParam: string;
1894
+ notNull: true;
1895
+ hasDefault: false;
1896
+ isPrimaryKey: false;
1897
+ isAutoincrement: false;
1898
+ hasRuntimeDefault: false;
1899
+ enumValues: undefined;
1900
+ baseColumn: never;
1901
+ identity: undefined;
1902
+ generated: undefined;
1903
+ }, {}, {}>;
1904
+ openPrice: import("drizzle-orm/pg-core").PgColumn<{
1905
+ name: "open_price";
1906
+ tableName: "binary_option_order";
1907
+ dataType: "string";
1908
+ columnType: "PgNumeric";
1909
+ data: string;
1910
+ driverParam: string;
1911
+ notNull: true;
1912
+ hasDefault: false;
1913
+ isPrimaryKey: false;
1914
+ isAutoincrement: false;
1915
+ hasRuntimeDefault: false;
1916
+ enumValues: undefined;
1917
+ baseColumn: never;
1918
+ identity: undefined;
1919
+ generated: undefined;
1920
+ }, {}, {}>;
1921
+ openPriceAt: import("drizzle-orm/pg-core").PgColumn<{
1922
+ name: "open_price_at";
1923
+ tableName: "binary_option_order";
1924
+ dataType: "date";
1925
+ columnType: "PgTimestamp";
1926
+ data: Date;
1927
+ driverParam: string;
1928
+ notNull: true;
1929
+ hasDefault: false;
1930
+ isPrimaryKey: false;
1931
+ isAutoincrement: false;
1932
+ hasRuntimeDefault: false;
1933
+ enumValues: undefined;
1934
+ baseColumn: never;
1935
+ identity: undefined;
1936
+ generated: undefined;
1937
+ }, {}, {}>;
1938
+ expireAt: import("drizzle-orm/pg-core").PgColumn<{
1939
+ name: "expire_at";
1940
+ tableName: "binary_option_order";
1941
+ dataType: "date";
1942
+ columnType: "PgTimestamp";
1943
+ data: Date;
1944
+ driverParam: string;
1945
+ notNull: true;
1946
+ hasDefault: false;
1947
+ isPrimaryKey: false;
1948
+ isAutoincrement: false;
1949
+ hasRuntimeDefault: false;
1950
+ enumValues: undefined;
1951
+ baseColumn: never;
1952
+ identity: undefined;
1953
+ generated: undefined;
1954
+ }, {}, {}>;
1955
+ settlementPrice: import("drizzle-orm/pg-core").PgColumn<{
1956
+ name: "settlement_price";
1957
+ tableName: "binary_option_order";
1958
+ dataType: "string";
1959
+ columnType: "PgNumeric";
1960
+ data: string;
1961
+ driverParam: string;
1962
+ notNull: false;
1963
+ hasDefault: false;
1964
+ isPrimaryKey: false;
1965
+ isAutoincrement: false;
1966
+ hasRuntimeDefault: false;
1967
+ enumValues: undefined;
1968
+ baseColumn: never;
1969
+ identity: undefined;
1970
+ generated: undefined;
1971
+ }, {}, {}>;
1972
+ settlementPriceAt: import("drizzle-orm/pg-core").PgColumn<{
1973
+ name: "settlement_price_at";
1974
+ tableName: "binary_option_order";
1975
+ dataType: "date";
1976
+ columnType: "PgTimestamp";
1977
+ data: Date;
1978
+ driverParam: string;
1979
+ notNull: false;
1980
+ hasDefault: false;
1981
+ isPrimaryKey: false;
1982
+ isAutoincrement: false;
1983
+ hasRuntimeDefault: false;
1984
+ enumValues: undefined;
1985
+ baseColumn: never;
1986
+ identity: undefined;
1987
+ generated: undefined;
1988
+ }, {}, {}>;
1989
+ result: import("drizzle-orm/pg-core").PgColumn<{
1990
+ name: "result";
1991
+ tableName: "binary_option_order";
1992
+ dataType: "string";
1993
+ columnType: "PgEnumColumn";
1994
+ data: "cancelled" | "draw" | "expired" | "failed" | "lose" | "win";
1995
+ driverParam: string;
1996
+ notNull: false;
1997
+ hasDefault: false;
1998
+ isPrimaryKey: false;
1999
+ isAutoincrement: false;
2000
+ hasRuntimeDefault: false;
2001
+ enumValues: ["win", "lose", "draw", "cancelled", "failed", "expired"];
2002
+ baseColumn: never;
2003
+ identity: undefined;
2004
+ generated: undefined;
2005
+ }, {}, {}>;
2006
+ payoutAmount: import("drizzle-orm/pg-core").PgColumn<{
2007
+ name: "payout_amount";
2008
+ tableName: "binary_option_order";
2009
+ dataType: "string";
2010
+ columnType: "PgNumeric";
2011
+ data: string;
2012
+ driverParam: string;
2013
+ notNull: false;
2014
+ hasDefault: false;
2015
+ isPrimaryKey: false;
2016
+ isAutoincrement: false;
2017
+ hasRuntimeDefault: false;
2018
+ enumValues: undefined;
2019
+ baseColumn: never;
2020
+ identity: undefined;
2021
+ generated: undefined;
2022
+ }, {}, {}>;
2023
+ stakeLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
2024
+ name: "stake_ledger_entry_id";
2025
+ tableName: "binary_option_order";
2026
+ dataType: "string";
2027
+ columnType: "PgUUID";
2028
+ data: string;
2029
+ driverParam: string;
2030
+ notNull: false;
2031
+ hasDefault: false;
2032
+ isPrimaryKey: false;
2033
+ isAutoincrement: false;
2034
+ hasRuntimeDefault: false;
2035
+ enumValues: undefined;
2036
+ baseColumn: never;
2037
+ identity: undefined;
2038
+ generated: undefined;
2039
+ }, {}, {}>;
2040
+ status: import("drizzle-orm/pg-core").PgColumn<{
2041
+ name: "status";
2042
+ tableName: "binary_option_order";
2043
+ dataType: "string";
2044
+ columnType: "PgEnumColumn";
2045
+ data: "active" | "cancelled" | "created" | "expired" | "failed" | "settled";
2046
+ driverParam: string;
2047
+ notNull: true;
2048
+ hasDefault: true;
2049
+ isPrimaryKey: false;
2050
+ isAutoincrement: false;
2051
+ hasRuntimeDefault: false;
2052
+ enumValues: ["created", "active", "settled", "cancelled", "failed", "expired"];
2053
+ baseColumn: never;
2054
+ identity: undefined;
2055
+ generated: undefined;
2056
+ }, {}, {}>;
2057
+ failureCode: import("drizzle-orm/pg-core").PgColumn<{
2058
+ name: "failure_code";
2059
+ tableName: "binary_option_order";
2060
+ dataType: "string";
2061
+ columnType: "PgText";
2062
+ data: string;
2063
+ driverParam: string;
2064
+ notNull: false;
2065
+ hasDefault: false;
2066
+ isPrimaryKey: false;
2067
+ isAutoincrement: false;
2068
+ hasRuntimeDefault: false;
2069
+ enumValues: [string, ...string[]];
2070
+ baseColumn: never;
2071
+ identity: undefined;
2072
+ generated: undefined;
2073
+ }, {}, {}>;
2074
+ failureReason: import("drizzle-orm/pg-core").PgColumn<{
2075
+ name: "failure_reason";
2076
+ tableName: "binary_option_order";
2077
+ dataType: "string";
2078
+ columnType: "PgText";
2079
+ data: string;
2080
+ driverParam: string;
2081
+ notNull: false;
2082
+ hasDefault: false;
2083
+ isPrimaryKey: false;
2084
+ isAutoincrement: false;
2085
+ hasRuntimeDefault: false;
2086
+ enumValues: [string, ...string[]];
2087
+ baseColumn: never;
2088
+ identity: undefined;
2089
+ generated: undefined;
2090
+ }, {}, {}>;
2091
+ }, undefined>;
2092
+ orderId: import("@sinclair/typebox").TString;
2093
+ payoutAmount: import("@sinclair/typebox").TString;
2094
+ payoutLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2095
+ result: import("@sinclair/typebox").TEnum<{
2096
+ cancelled: "cancelled";
2097
+ draw: "draw";
2098
+ expired: "expired";
2099
+ failed: "failed";
2100
+ lose: "lose";
2101
+ win: "win";
2102
+ }>;
2103
+ settledAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
2104
+ settlementPrice: import("@sinclair/typebox").TString;
2105
+ settlementPriceAt: import("@sinclair/typebox").TDate;
2106
+ stakeAmountSnapshot: import("@sinclair/typebox").TString;
2107
+ status: import("@sinclair/typebox").TEnum<{
2108
+ completed: "completed";
2109
+ failed: "failed";
2110
+ pending: "pending";
2111
+ }>;
2112
+ symbolSnapshot: import("@sinclair/typebox").TString;
2113
+ updatedAt: import("@sinclair/typebox").TDate;
2114
+ user: import("@sinclair/typebox").TObject<{
2115
+ id: import("@sinclair/typebox").TString;
2116
+ name: import("@sinclair/typebox").TString;
2117
+ email: import("@sinclair/typebox").TString;
2118
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2119
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2120
+ }>;
2121
+ userId: import("@sinclair/typebox").TString;
2122
+ winPayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
2123
+ }>;
2124
+ export declare const binaryOptionAdminSettlementListResponseSchema: import("@sinclair/typebox").TObject<{
2125
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
2126
+ createdAt: import("@sinclair/typebox").TDate;
2127
+ directionSnapshot: import("@sinclair/typebox").TEnum<{
2128
+ down: "down";
2129
+ up: "up";
2130
+ }>;
2131
+ durationConfigIdSnapshot: import("@sinclair/typebox").TString;
2132
+ durationConfigSnapshot: import("drizzle-typebox").BuildSchema<"select", {
2133
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
2134
+ name: "created_at";
2135
+ tableName: "binary_option_market_duration_config";
2136
+ dataType: "date";
2137
+ columnType: "PgTimestamp";
2138
+ data: Date;
2139
+ driverParam: string;
2140
+ notNull: true;
2141
+ hasDefault: true;
2142
+ isPrimaryKey: false;
2143
+ isAutoincrement: false;
2144
+ hasRuntimeDefault: false;
2145
+ enumValues: undefined;
2146
+ baseColumn: never;
2147
+ identity: undefined;
2148
+ generated: undefined;
2149
+ }, {}, {}>;
2150
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
2151
+ name: "updated_at";
2152
+ tableName: "binary_option_market_duration_config";
2153
+ dataType: "date";
2154
+ columnType: "PgTimestamp";
2155
+ data: Date;
2156
+ driverParam: string;
2157
+ notNull: true;
2158
+ hasDefault: true;
2159
+ isPrimaryKey: false;
2160
+ isAutoincrement: false;
2161
+ hasRuntimeDefault: false;
2162
+ enumValues: undefined;
2163
+ baseColumn: never;
2164
+ identity: undefined;
2165
+ generated: undefined;
2166
+ }, {}, {}>;
2167
+ id: import("drizzle-orm/pg-core").PgColumn<{
2168
+ name: "id";
2169
+ tableName: "binary_option_market_duration_config";
2170
+ dataType: "string";
2171
+ columnType: "PgUUID";
2172
+ data: string;
2173
+ driverParam: string;
2174
+ notNull: true;
2175
+ hasDefault: true;
2176
+ isPrimaryKey: true;
2177
+ isAutoincrement: false;
2178
+ hasRuntimeDefault: false;
2179
+ enumValues: undefined;
2180
+ baseColumn: never;
2181
+ identity: undefined;
2182
+ generated: undefined;
2183
+ }, {}, {}>;
2184
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
2185
+ name: "market_id";
2186
+ tableName: "binary_option_market_duration_config";
2187
+ dataType: "string";
2188
+ columnType: "PgUUID";
2189
+ data: string;
2190
+ driverParam: string;
2191
+ notNull: true;
2192
+ hasDefault: false;
2193
+ isPrimaryKey: false;
2194
+ isAutoincrement: false;
2195
+ hasRuntimeDefault: false;
2196
+ enumValues: undefined;
2197
+ baseColumn: never;
2198
+ identity: undefined;
2199
+ generated: undefined;
2200
+ }, {}, {}>;
2201
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
2202
+ name: "duration_seconds";
2203
+ tableName: "binary_option_market_duration_config";
2204
+ dataType: "number";
2205
+ columnType: "PgInteger";
2206
+ data: number;
2207
+ driverParam: string | number;
2208
+ notNull: true;
2209
+ hasDefault: false;
2210
+ isPrimaryKey: false;
2211
+ isAutoincrement: false;
2212
+ hasRuntimeDefault: false;
2213
+ enumValues: undefined;
2214
+ baseColumn: never;
2215
+ identity: undefined;
2216
+ generated: undefined;
2217
+ }, {}, {}>;
2218
+ winPayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
2219
+ name: "win_payout_multiplier";
2220
+ tableName: "binary_option_market_duration_config";
2221
+ dataType: "string";
2222
+ columnType: "PgNumeric";
2223
+ data: string;
2224
+ driverParam: string;
2225
+ notNull: true;
2226
+ hasDefault: false;
2227
+ isPrimaryKey: false;
2228
+ isAutoincrement: false;
2229
+ hasRuntimeDefault: false;
2230
+ enumValues: undefined;
2231
+ baseColumn: never;
2232
+ identity: undefined;
2233
+ generated: undefined;
2234
+ }, {}, {}>;
2235
+ losePayoutMultiplier: import("drizzle-orm/pg-core").PgColumn<{
2236
+ name: "lose_payout_multiplier";
2237
+ tableName: "binary_option_market_duration_config";
2238
+ dataType: "string";
2239
+ columnType: "PgNumeric";
2240
+ data: string;
2241
+ driverParam: string;
2242
+ notNull: true;
2243
+ hasDefault: false;
2244
+ isPrimaryKey: false;
2245
+ isAutoincrement: false;
2246
+ hasRuntimeDefault: false;
2247
+ enumValues: undefined;
2248
+ baseColumn: never;
2249
+ identity: undefined;
2250
+ generated: undefined;
2251
+ }, {}, {}>;
2252
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
2253
+ name: "is_enabled";
2254
+ tableName: "binary_option_market_duration_config";
2255
+ dataType: "boolean";
2256
+ columnType: "PgBoolean";
2257
+ data: boolean;
2258
+ driverParam: boolean;
2259
+ notNull: true;
2260
+ hasDefault: true;
2261
+ isPrimaryKey: false;
2262
+ isAutoincrement: false;
2263
+ hasRuntimeDefault: false;
2264
+ enumValues: undefined;
2265
+ baseColumn: never;
2266
+ identity: undefined;
2267
+ generated: undefined;
2268
+ }, {}, {}>;
2269
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
2270
+ name: "sort_order";
2271
+ tableName: "binary_option_market_duration_config";
2272
+ dataType: "number";
2273
+ columnType: "PgInteger";
2274
+ data: number;
2275
+ driverParam: string | number;
2276
+ notNull: true;
2277
+ hasDefault: true;
2278
+ isPrimaryKey: false;
2279
+ isAutoincrement: false;
2280
+ hasRuntimeDefault: false;
2281
+ enumValues: undefined;
2282
+ baseColumn: never;
2283
+ identity: undefined;
2284
+ generated: undefined;
2285
+ }, {}, {}>;
2286
+ }, undefined>;
2287
+ durationSecondsSnapshot: import("@sinclair/typebox").TInteger;
2288
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2289
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2290
+ id: import("@sinclair/typebox").TString;
2291
+ idempotencyKey: import("@sinclair/typebox").TString;
2292
+ losePayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
2293
+ market: import("@sinclair/typebox").TObject<{
2294
+ id: import("@sinclair/typebox").TString;
2295
+ name: import("@sinclair/typebox").TString;
2296
+ symbolSnapshot: import("@sinclair/typebox").TString;
2297
+ status: import("@sinclair/typebox").TEnum<{
2298
+ active: "active";
2299
+ draft: "draft";
2300
+ ended: "ended";
2301
+ paused: "paused";
2302
+ }>;
2303
+ }>;
2304
+ marketId: import("@sinclair/typebox").TString;
2305
+ marketNameSnapshot: import("@sinclair/typebox").TString;
2306
+ order: import("drizzle-typebox").BuildSchema<"select", {
2307
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
2308
+ name: "created_at";
2309
+ tableName: "binary_option_order";
2310
+ dataType: "date";
2311
+ columnType: "PgTimestamp";
2312
+ data: Date;
2313
+ driverParam: string;
2314
+ notNull: true;
2315
+ hasDefault: true;
2316
+ isPrimaryKey: false;
2317
+ isAutoincrement: false;
2318
+ hasRuntimeDefault: false;
2319
+ enumValues: undefined;
2320
+ baseColumn: never;
2321
+ identity: undefined;
2322
+ generated: undefined;
2323
+ }, {}, {}>;
2324
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
2325
+ name: "updated_at";
2326
+ tableName: "binary_option_order";
2327
+ dataType: "date";
2328
+ columnType: "PgTimestamp";
2329
+ data: Date;
2330
+ driverParam: string;
2331
+ notNull: true;
2332
+ hasDefault: true;
2333
+ isPrimaryKey: false;
2334
+ isAutoincrement: false;
2335
+ hasRuntimeDefault: false;
2336
+ enumValues: undefined;
2337
+ baseColumn: never;
2338
+ identity: undefined;
2339
+ generated: undefined;
2340
+ }, {}, {}>;
2341
+ id: import("drizzle-orm/pg-core").PgColumn<{
2342
+ name: "id";
2343
+ tableName: "binary_option_order";
2344
+ dataType: "string";
2345
+ columnType: "PgUUID";
2346
+ data: string;
2347
+ driverParam: string;
2348
+ notNull: true;
2349
+ hasDefault: true;
2350
+ isPrimaryKey: true;
2351
+ isAutoincrement: false;
2352
+ hasRuntimeDefault: false;
2353
+ enumValues: undefined;
2354
+ baseColumn: never;
2355
+ identity: undefined;
2356
+ generated: undefined;
2357
+ }, {}, {}>;
2358
+ orderNo: import("drizzle-orm/pg-core").PgColumn<{
2359
+ name: "order_no";
2360
+ tableName: "binary_option_order";
2361
+ dataType: "string";
2362
+ columnType: "PgText";
2363
+ data: string;
2364
+ driverParam: string;
2365
+ notNull: true;
2366
+ hasDefault: false;
2367
+ isPrimaryKey: false;
2368
+ isAutoincrement: false;
2369
+ hasRuntimeDefault: false;
2370
+ enumValues: [string, ...string[]];
2371
+ baseColumn: never;
2372
+ identity: undefined;
2373
+ generated: undefined;
2374
+ }, {}, {}>;
2375
+ idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
2376
+ name: "idempotency_key";
2377
+ tableName: "binary_option_order";
2378
+ dataType: "string";
2379
+ columnType: "PgText";
2380
+ data: string;
2381
+ driverParam: string;
2382
+ notNull: true;
2383
+ hasDefault: false;
2384
+ isPrimaryKey: false;
2385
+ isAutoincrement: false;
2386
+ hasRuntimeDefault: false;
2387
+ enumValues: [string, ...string[]];
2388
+ baseColumn: never;
2389
+ identity: undefined;
2390
+ generated: undefined;
2391
+ }, {}, {}>;
2392
+ userId: import("drizzle-orm/pg-core").PgColumn<{
2393
+ name: "user_id";
2394
+ tableName: "binary_option_order";
2395
+ dataType: "string";
2396
+ columnType: "PgText";
2397
+ data: string;
2398
+ driverParam: string;
2399
+ notNull: true;
2400
+ hasDefault: false;
2401
+ isPrimaryKey: false;
2402
+ isAutoincrement: false;
2403
+ hasRuntimeDefault: false;
2404
+ enumValues: [string, ...string[]];
2405
+ baseColumn: never;
2406
+ identity: undefined;
2407
+ generated: undefined;
2408
+ }, {}, {}>;
2409
+ marketId: import("drizzle-orm/pg-core").PgColumn<{
2410
+ name: "market_id";
2411
+ tableName: "binary_option_order";
2412
+ dataType: "string";
2413
+ columnType: "PgUUID";
2414
+ data: string;
2415
+ driverParam: string;
2416
+ notNull: true;
2417
+ hasDefault: false;
2418
+ isPrimaryKey: false;
2419
+ isAutoincrement: false;
2420
+ hasRuntimeDefault: false;
2421
+ enumValues: undefined;
2422
+ baseColumn: never;
2423
+ identity: undefined;
2424
+ generated: undefined;
2425
+ }, {}, {}>;
2426
+ durationConfigId: import("drizzle-orm/pg-core").PgColumn<{
2427
+ name: "duration_config_id";
2428
+ tableName: "binary_option_order";
2429
+ dataType: "string";
2430
+ columnType: "PgUUID";
2431
+ data: string;
2432
+ driverParam: string;
2433
+ notNull: true;
2434
+ hasDefault: false;
2435
+ isPrimaryKey: false;
2436
+ isAutoincrement: false;
2437
+ hasRuntimeDefault: false;
2438
+ enumValues: undefined;
2439
+ baseColumn: never;
2440
+ identity: undefined;
2441
+ generated: undefined;
2442
+ }, {}, {}>;
2443
+ marketNameSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2444
+ name: "market_name_snapshot";
2445
+ tableName: "binary_option_order";
2446
+ dataType: "string";
2447
+ columnType: "PgText";
2448
+ data: string;
2449
+ driverParam: string;
2450
+ notNull: true;
2451
+ hasDefault: false;
2452
+ isPrimaryKey: false;
2453
+ isAutoincrement: false;
2454
+ hasRuntimeDefault: false;
2455
+ enumValues: [string, ...string[]];
2456
+ baseColumn: never;
2457
+ identity: undefined;
2458
+ generated: undefined;
2459
+ }, {}, {}>;
2460
+ symbolSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2461
+ name: "symbol_snapshot";
2462
+ tableName: "binary_option_order";
2463
+ dataType: "string";
2464
+ columnType: "PgText";
2465
+ data: string;
2466
+ driverParam: string;
2467
+ notNull: true;
2468
+ hasDefault: false;
2469
+ isPrimaryKey: false;
2470
+ isAutoincrement: false;
2471
+ hasRuntimeDefault: false;
2472
+ enumValues: [string, ...string[]];
2473
+ baseColumn: never;
2474
+ identity: undefined;
2475
+ generated: undefined;
2476
+ }, {}, {}>;
2477
+ baseAssetIdSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2478
+ name: "base_asset_id_snapshot";
2479
+ tableName: "binary_option_order";
2480
+ dataType: "string";
2481
+ columnType: "PgUUID";
2482
+ data: string;
2483
+ driverParam: string;
2484
+ notNull: true;
2485
+ hasDefault: false;
2486
+ isPrimaryKey: false;
2487
+ isAutoincrement: false;
2488
+ hasRuntimeDefault: false;
2489
+ enumValues: undefined;
2490
+ baseColumn: never;
2491
+ identity: undefined;
2492
+ generated: undefined;
2493
+ }, {}, {}>;
2494
+ quoteAssetIdSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2495
+ name: "quote_asset_id_snapshot";
2496
+ tableName: "binary_option_order";
2497
+ dataType: "string";
2498
+ columnType: "PgUUID";
2499
+ data: string;
2500
+ driverParam: string;
2501
+ notNull: true;
2502
+ hasDefault: false;
2503
+ isPrimaryKey: false;
2504
+ isAutoincrement: false;
2505
+ hasRuntimeDefault: false;
2506
+ enumValues: undefined;
2507
+ baseColumn: never;
2508
+ identity: undefined;
2509
+ generated: undefined;
2510
+ }, {}, {}>;
2511
+ winPayoutMultiplierSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2512
+ name: "win_payout_multiplier_snapshot";
2513
+ tableName: "binary_option_order";
2514
+ dataType: "string";
2515
+ columnType: "PgNumeric";
2516
+ data: string;
2517
+ driverParam: string;
2518
+ notNull: true;
2519
+ hasDefault: false;
2520
+ isPrimaryKey: false;
2521
+ isAutoincrement: false;
2522
+ hasRuntimeDefault: false;
2523
+ enumValues: undefined;
2524
+ baseColumn: never;
2525
+ identity: undefined;
2526
+ generated: undefined;
2527
+ }, {}, {}>;
2528
+ losePayoutMultiplierSnapshot: import("drizzle-orm/pg-core").PgColumn<{
2529
+ name: "lose_payout_multiplier_snapshot";
2530
+ tableName: "binary_option_order";
2531
+ dataType: "string";
2532
+ columnType: "PgNumeric";
2533
+ data: string;
2534
+ driverParam: string;
2535
+ notNull: true;
2536
+ hasDefault: false;
2537
+ isPrimaryKey: false;
2538
+ isAutoincrement: false;
2539
+ hasRuntimeDefault: false;
2540
+ enumValues: undefined;
2541
+ baseColumn: never;
2542
+ identity: undefined;
2543
+ generated: undefined;
2544
+ }, {}, {}>;
2545
+ direction: import("drizzle-orm/pg-core").PgColumn<{
2546
+ name: "direction";
2547
+ tableName: "binary_option_order";
2548
+ dataType: "string";
2549
+ columnType: "PgEnumColumn";
2550
+ data: "down" | "up";
2551
+ driverParam: string;
2552
+ notNull: true;
2553
+ hasDefault: false;
2554
+ isPrimaryKey: false;
2555
+ isAutoincrement: false;
2556
+ hasRuntimeDefault: false;
2557
+ enumValues: ["up", "down"];
2558
+ baseColumn: never;
2559
+ identity: undefined;
2560
+ generated: undefined;
2561
+ }, {}, {}>;
2562
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
2563
+ name: "duration_seconds";
2564
+ tableName: "binary_option_order";
2565
+ dataType: "number";
2566
+ columnType: "PgInteger";
2567
+ data: number;
2568
+ driverParam: string | number;
2569
+ notNull: true;
2570
+ hasDefault: false;
2571
+ isPrimaryKey: false;
2572
+ isAutoincrement: false;
2573
+ hasRuntimeDefault: false;
2574
+ enumValues: undefined;
2575
+ baseColumn: never;
2576
+ identity: undefined;
2577
+ generated: undefined;
2578
+ }, {}, {}>;
2579
+ stakeAmount: import("drizzle-orm/pg-core").PgColumn<{
2580
+ name: "stake_amount";
2581
+ tableName: "binary_option_order";
2582
+ dataType: "string";
2583
+ columnType: "PgNumeric";
2584
+ data: string;
2585
+ driverParam: string;
2586
+ notNull: true;
2587
+ hasDefault: false;
2588
+ isPrimaryKey: false;
2589
+ isAutoincrement: false;
2590
+ hasRuntimeDefault: false;
2591
+ enumValues: undefined;
2592
+ baseColumn: never;
2593
+ identity: undefined;
2594
+ generated: undefined;
2595
+ }, {}, {}>;
2596
+ openPrice: import("drizzle-orm/pg-core").PgColumn<{
2597
+ name: "open_price";
2598
+ tableName: "binary_option_order";
2599
+ dataType: "string";
2600
+ columnType: "PgNumeric";
2601
+ data: string;
2602
+ driverParam: string;
2603
+ notNull: true;
2604
+ hasDefault: false;
2605
+ isPrimaryKey: false;
2606
+ isAutoincrement: false;
2607
+ hasRuntimeDefault: false;
2608
+ enumValues: undefined;
2609
+ baseColumn: never;
2610
+ identity: undefined;
2611
+ generated: undefined;
2612
+ }, {}, {}>;
2613
+ openPriceAt: import("drizzle-orm/pg-core").PgColumn<{
2614
+ name: "open_price_at";
2615
+ tableName: "binary_option_order";
2616
+ dataType: "date";
2617
+ columnType: "PgTimestamp";
2618
+ data: Date;
2619
+ driverParam: string;
2620
+ notNull: true;
2621
+ hasDefault: false;
2622
+ isPrimaryKey: false;
2623
+ isAutoincrement: false;
2624
+ hasRuntimeDefault: false;
2625
+ enumValues: undefined;
2626
+ baseColumn: never;
2627
+ identity: undefined;
2628
+ generated: undefined;
2629
+ }, {}, {}>;
2630
+ expireAt: import("drizzle-orm/pg-core").PgColumn<{
2631
+ name: "expire_at";
2632
+ tableName: "binary_option_order";
2633
+ dataType: "date";
2634
+ columnType: "PgTimestamp";
2635
+ data: Date;
2636
+ driverParam: string;
2637
+ notNull: true;
2638
+ hasDefault: false;
2639
+ isPrimaryKey: false;
2640
+ isAutoincrement: false;
2641
+ hasRuntimeDefault: false;
2642
+ enumValues: undefined;
2643
+ baseColumn: never;
2644
+ identity: undefined;
2645
+ generated: undefined;
2646
+ }, {}, {}>;
2647
+ settlementPrice: import("drizzle-orm/pg-core").PgColumn<{
2648
+ name: "settlement_price";
2649
+ tableName: "binary_option_order";
2650
+ dataType: "string";
2651
+ columnType: "PgNumeric";
2652
+ data: string;
2653
+ driverParam: string;
2654
+ notNull: false;
2655
+ hasDefault: false;
2656
+ isPrimaryKey: false;
2657
+ isAutoincrement: false;
2658
+ hasRuntimeDefault: false;
2659
+ enumValues: undefined;
2660
+ baseColumn: never;
2661
+ identity: undefined;
2662
+ generated: undefined;
2663
+ }, {}, {}>;
2664
+ settlementPriceAt: import("drizzle-orm/pg-core").PgColumn<{
2665
+ name: "settlement_price_at";
2666
+ tableName: "binary_option_order";
2667
+ dataType: "date";
2668
+ columnType: "PgTimestamp";
2669
+ data: Date;
2670
+ driverParam: string;
2671
+ notNull: false;
2672
+ hasDefault: false;
2673
+ isPrimaryKey: false;
2674
+ isAutoincrement: false;
2675
+ hasRuntimeDefault: false;
2676
+ enumValues: undefined;
2677
+ baseColumn: never;
2678
+ identity: undefined;
2679
+ generated: undefined;
2680
+ }, {}, {}>;
2681
+ result: import("drizzle-orm/pg-core").PgColumn<{
2682
+ name: "result";
2683
+ tableName: "binary_option_order";
2684
+ dataType: "string";
2685
+ columnType: "PgEnumColumn";
2686
+ data: "cancelled" | "draw" | "expired" | "failed" | "lose" | "win";
2687
+ driverParam: string;
2688
+ notNull: false;
2689
+ hasDefault: false;
2690
+ isPrimaryKey: false;
2691
+ isAutoincrement: false;
2692
+ hasRuntimeDefault: false;
2693
+ enumValues: ["win", "lose", "draw", "cancelled", "failed", "expired"];
2694
+ baseColumn: never;
2695
+ identity: undefined;
2696
+ generated: undefined;
2697
+ }, {}, {}>;
2698
+ payoutAmount: import("drizzle-orm/pg-core").PgColumn<{
2699
+ name: "payout_amount";
2700
+ tableName: "binary_option_order";
2701
+ dataType: "string";
2702
+ columnType: "PgNumeric";
2703
+ data: string;
2704
+ driverParam: string;
2705
+ notNull: false;
2706
+ hasDefault: false;
2707
+ isPrimaryKey: false;
2708
+ isAutoincrement: false;
2709
+ hasRuntimeDefault: false;
2710
+ enumValues: undefined;
2711
+ baseColumn: never;
2712
+ identity: undefined;
2713
+ generated: undefined;
2714
+ }, {}, {}>;
2715
+ stakeLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
2716
+ name: "stake_ledger_entry_id";
2717
+ tableName: "binary_option_order";
2718
+ dataType: "string";
2719
+ columnType: "PgUUID";
2720
+ data: string;
2721
+ driverParam: string;
2722
+ notNull: false;
2723
+ hasDefault: false;
2724
+ isPrimaryKey: false;
2725
+ isAutoincrement: false;
2726
+ hasRuntimeDefault: false;
2727
+ enumValues: undefined;
2728
+ baseColumn: never;
2729
+ identity: undefined;
2730
+ generated: undefined;
2731
+ }, {}, {}>;
2732
+ status: import("drizzle-orm/pg-core").PgColumn<{
2733
+ name: "status";
2734
+ tableName: "binary_option_order";
2735
+ dataType: "string";
2736
+ columnType: "PgEnumColumn";
2737
+ data: "active" | "cancelled" | "created" | "expired" | "failed" | "settled";
2738
+ driverParam: string;
2739
+ notNull: true;
2740
+ hasDefault: true;
2741
+ isPrimaryKey: false;
2742
+ isAutoincrement: false;
2743
+ hasRuntimeDefault: false;
2744
+ enumValues: ["created", "active", "settled", "cancelled", "failed", "expired"];
2745
+ baseColumn: never;
2746
+ identity: undefined;
2747
+ generated: undefined;
2748
+ }, {}, {}>;
2749
+ failureCode: import("drizzle-orm/pg-core").PgColumn<{
2750
+ name: "failure_code";
2751
+ tableName: "binary_option_order";
2752
+ dataType: "string";
2753
+ columnType: "PgText";
2754
+ data: string;
2755
+ driverParam: string;
2756
+ notNull: false;
2757
+ hasDefault: false;
2758
+ isPrimaryKey: false;
2759
+ isAutoincrement: false;
2760
+ hasRuntimeDefault: false;
2761
+ enumValues: [string, ...string[]];
2762
+ baseColumn: never;
2763
+ identity: undefined;
2764
+ generated: undefined;
2765
+ }, {}, {}>;
2766
+ failureReason: import("drizzle-orm/pg-core").PgColumn<{
2767
+ name: "failure_reason";
2768
+ tableName: "binary_option_order";
2769
+ dataType: "string";
2770
+ columnType: "PgText";
2771
+ data: string;
2772
+ driverParam: string;
2773
+ notNull: false;
2774
+ hasDefault: false;
2775
+ isPrimaryKey: false;
2776
+ isAutoincrement: false;
2777
+ hasRuntimeDefault: false;
2778
+ enumValues: [string, ...string[]];
2779
+ baseColumn: never;
2780
+ identity: undefined;
2781
+ generated: undefined;
2782
+ }, {}, {}>;
2783
+ }, undefined>;
2784
+ orderId: import("@sinclair/typebox").TString;
2785
+ payoutAmount: import("@sinclair/typebox").TString;
2786
+ payoutLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2787
+ result: import("@sinclair/typebox").TEnum<{
2788
+ cancelled: "cancelled";
2789
+ draw: "draw";
2790
+ expired: "expired";
2791
+ failed: "failed";
2792
+ lose: "lose";
2793
+ win: "win";
2794
+ }>;
2795
+ settledAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
2796
+ settlementPrice: import("@sinclair/typebox").TString;
2797
+ settlementPriceAt: import("@sinclair/typebox").TDate;
2798
+ stakeAmountSnapshot: import("@sinclair/typebox").TString;
2799
+ status: import("@sinclair/typebox").TEnum<{
2800
+ completed: "completed";
2801
+ failed: "failed";
2802
+ pending: "pending";
2803
+ }>;
2804
+ symbolSnapshot: import("@sinclair/typebox").TString;
2805
+ updatedAt: import("@sinclair/typebox").TDate;
2806
+ user: import("@sinclair/typebox").TObject<{
2807
+ id: import("@sinclair/typebox").TString;
2808
+ name: import("@sinclair/typebox").TString;
2809
+ email: import("@sinclair/typebox").TString;
2810
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2811
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
2812
+ }>;
2813
+ userId: import("@sinclair/typebox").TString;
2814
+ winPayoutMultiplierSnapshot: import("@sinclair/typebox").TString;
2815
+ }>>;
2816
+ pagination: import("@sinclair/typebox").TObject<{
2817
+ pageSize: import("@sinclair/typebox").TNumber;
2818
+ pageIndex: import("@sinclair/typebox").TNumber;
2819
+ total: import("@sinclair/typebox").TNumber;
2820
+ totalPages: import("@sinclair/typebox").TNumber;
2821
+ hasNextPage: import("@sinclair/typebox").TBoolean;
2822
+ }>;
2823
+ }>;
2824
+ export declare const binaryOptionAdminOrderControlCreateSchema: import("@sinclair/typebox").TObject<{
2825
+ targetResult: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"win">, import("@sinclair/typebox").TLiteral<"lose">, import("@sinclair/typebox").TLiteral<"draw">]>;
2826
+ reason: import("@sinclair/typebox").TString;
2827
+ targetPriceBps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
2828
+ }>;
2829
+ export type BinaryOptionAdminOrderControlCreateInputType = typeof binaryOptionAdminOrderControlCreateSchema.static;
2830
+ export declare const binaryOptionAdminOrderControlResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
2831
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
2832
+ name: "created_at";
2833
+ tableName: "binary_option_order_control";
2834
+ dataType: "date";
2835
+ columnType: "PgTimestamp";
2836
+ data: Date;
2837
+ driverParam: string;
2838
+ notNull: true;
2839
+ hasDefault: true;
2840
+ isPrimaryKey: false;
2841
+ isAutoincrement: false;
2842
+ hasRuntimeDefault: false;
2843
+ enumValues: undefined;
2844
+ baseColumn: never;
2845
+ identity: undefined;
2846
+ generated: undefined;
2847
+ }, {}, {}>;
2848
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
2849
+ name: "updated_at";
2850
+ tableName: "binary_option_order_control";
2851
+ dataType: "date";
2852
+ columnType: "PgTimestamp";
2853
+ data: Date;
2854
+ driverParam: string;
2855
+ notNull: true;
2856
+ hasDefault: true;
2857
+ isPrimaryKey: false;
2858
+ isAutoincrement: false;
2859
+ hasRuntimeDefault: false;
2860
+ enumValues: undefined;
2861
+ baseColumn: never;
2862
+ identity: undefined;
2863
+ generated: undefined;
2864
+ }, {}, {}>;
2865
+ id: import("drizzle-orm/pg-core").PgColumn<{
2866
+ name: "id";
2867
+ tableName: "binary_option_order_control";
2868
+ dataType: "string";
2869
+ columnType: "PgUUID";
2870
+ data: string;
2871
+ driverParam: string;
2872
+ notNull: true;
2873
+ hasDefault: true;
2874
+ isPrimaryKey: true;
2875
+ isAutoincrement: false;
2876
+ hasRuntimeDefault: false;
2877
+ enumValues: undefined;
2878
+ baseColumn: never;
2879
+ identity: undefined;
2880
+ generated: undefined;
2881
+ }, {}, {}>;
2882
+ orderId: import("drizzle-orm/pg-core").PgColumn<{
2883
+ name: "order_id";
2884
+ tableName: "binary_option_order_control";
2885
+ dataType: "string";
2886
+ columnType: "PgUUID";
2887
+ data: string;
2888
+ driverParam: string;
2889
+ notNull: true;
2890
+ hasDefault: false;
2891
+ isPrimaryKey: false;
2892
+ isAutoincrement: false;
2893
+ hasRuntimeDefault: false;
2894
+ enumValues: undefined;
2895
+ baseColumn: never;
2896
+ identity: undefined;
2897
+ generated: undefined;
2898
+ }, {}, {}>;
2899
+ operatorId: import("drizzle-orm/pg-core").PgColumn<{
2900
+ name: "operator_id";
2901
+ tableName: "binary_option_order_control";
2902
+ dataType: "string";
2903
+ columnType: "PgText";
2904
+ data: string;
2905
+ driverParam: string;
2906
+ notNull: true;
2907
+ hasDefault: false;
2908
+ isPrimaryKey: false;
2909
+ isAutoincrement: false;
2910
+ hasRuntimeDefault: false;
2911
+ enumValues: [string, ...string[]];
2912
+ baseColumn: never;
2913
+ identity: undefined;
2914
+ generated: undefined;
2915
+ }, {}, {}>;
2916
+ targetResult: import("drizzle-orm/pg-core").PgColumn<{
2917
+ name: "target_result";
2918
+ tableName: "binary_option_order_control";
2919
+ dataType: "string";
2920
+ columnType: "PgEnumColumn";
2921
+ data: "draw" | "lose" | "win";
2922
+ driverParam: string;
2923
+ notNull: true;
2924
+ hasDefault: false;
2925
+ isPrimaryKey: false;
2926
+ isAutoincrement: false;
2927
+ hasRuntimeDefault: false;
2928
+ enumValues: ["win", "lose", "draw"];
2929
+ baseColumn: never;
2930
+ identity: undefined;
2931
+ generated: undefined;
2932
+ }, {}, {}>;
2933
+ targetTrendMode: import("drizzle-orm/pg-core").PgColumn<{
2934
+ name: "target_trend_mode";
2935
+ tableName: "binary_option_order_control";
2936
+ dataType: "string";
2937
+ columnType: "PgEnumColumn";
2938
+ data: "down" | "flat" | "up";
2939
+ driverParam: string;
2940
+ notNull: true;
2941
+ hasDefault: false;
2942
+ isPrimaryKey: false;
2943
+ isAutoincrement: false;
2944
+ hasRuntimeDefault: false;
2945
+ enumValues: ["up", "flat", "down"];
2946
+ baseColumn: never;
2947
+ identity: undefined;
2948
+ generated: undefined;
2949
+ }, {}, {}>;
2950
+ targetPrice: import("drizzle-orm/pg-core").PgColumn<{
2951
+ name: "target_price";
2952
+ tableName: "binary_option_order_control";
2953
+ dataType: "string";
2954
+ columnType: "PgNumeric";
2955
+ data: string;
2956
+ driverParam: string;
2957
+ notNull: true;
2958
+ hasDefault: false;
2959
+ isPrimaryKey: false;
2960
+ isAutoincrement: false;
2961
+ hasRuntimeDefault: false;
2962
+ enumValues: undefined;
2963
+ baseColumn: never;
2964
+ identity: undefined;
2965
+ generated: undefined;
2966
+ }, {}, {}>;
2967
+ priceSource: import("drizzle-orm/pg-core").PgColumn<{
2968
+ name: "price_source";
2969
+ tableName: "binary_option_order_control";
2970
+ dataType: "string";
2971
+ columnType: "PgText";
2972
+ data: string;
2973
+ driverParam: string;
2974
+ notNull: true;
2975
+ hasDefault: false;
2976
+ isPrimaryKey: false;
2977
+ isAutoincrement: false;
2978
+ hasRuntimeDefault: false;
2979
+ enumValues: [string, ...string[]];
2980
+ baseColumn: never;
2981
+ identity: undefined;
2982
+ generated: undefined;
2983
+ }, {}, {}>;
2984
+ effectiveAt: import("drizzle-orm/pg-core").PgColumn<{
2985
+ name: "effective_at";
2986
+ tableName: "binary_option_order_control";
2987
+ dataType: "date";
2988
+ columnType: "PgTimestamp";
2989
+ data: Date;
2990
+ driverParam: string;
2991
+ notNull: true;
2992
+ hasDefault: false;
2993
+ isPrimaryKey: false;
2994
+ isAutoincrement: false;
2995
+ hasRuntimeDefault: false;
2996
+ enumValues: undefined;
2997
+ baseColumn: never;
2998
+ identity: undefined;
2999
+ generated: undefined;
3000
+ }, {}, {}>;
3001
+ appliedAssetPriceId: import("drizzle-orm/pg-core").PgColumn<{
3002
+ name: "applied_asset_price_id";
3003
+ tableName: "binary_option_order_control";
3004
+ dataType: "string";
3005
+ columnType: "PgUUID";
3006
+ data: string;
3007
+ driverParam: string;
3008
+ notNull: false;
3009
+ hasDefault: false;
3010
+ isPrimaryKey: false;
3011
+ isAutoincrement: false;
3012
+ hasRuntimeDefault: false;
3013
+ enumValues: undefined;
3014
+ baseColumn: never;
3015
+ identity: undefined;
3016
+ generated: undefined;
3017
+ }, {}, {}>;
3018
+ status: import("drizzle-orm/pg-core").PgColumn<{
3019
+ name: "status";
3020
+ tableName: "binary_option_order_control";
3021
+ dataType: "string";
3022
+ columnType: "PgEnumColumn";
3023
+ data: "applied" | "cancelled" | "failed" | "pending";
3024
+ driverParam: string;
3025
+ notNull: true;
3026
+ hasDefault: true;
3027
+ isPrimaryKey: false;
3028
+ isAutoincrement: false;
3029
+ hasRuntimeDefault: false;
3030
+ enumValues: ["pending", "applied", "failed", "cancelled"];
3031
+ baseColumn: never;
3032
+ identity: undefined;
3033
+ generated: undefined;
3034
+ }, {}, {}>;
3035
+ reason: import("drizzle-orm/pg-core").PgColumn<{
3036
+ name: "reason";
3037
+ tableName: "binary_option_order_control";
3038
+ dataType: "string";
3039
+ columnType: "PgText";
3040
+ data: string;
3041
+ driverParam: string;
3042
+ notNull: true;
3043
+ hasDefault: false;
3044
+ isPrimaryKey: false;
3045
+ isAutoincrement: false;
3046
+ hasRuntimeDefault: false;
3047
+ enumValues: [string, ...string[]];
3048
+ baseColumn: never;
3049
+ identity: undefined;
3050
+ generated: undefined;
3051
+ }, {}, {}>;
3052
+ failureCode: import("drizzle-orm/pg-core").PgColumn<{
3053
+ name: "failure_code";
3054
+ tableName: "binary_option_order_control";
3055
+ dataType: "string";
3056
+ columnType: "PgText";
3057
+ data: string;
3058
+ driverParam: string;
3059
+ notNull: false;
3060
+ hasDefault: false;
3061
+ isPrimaryKey: false;
3062
+ isAutoincrement: false;
3063
+ hasRuntimeDefault: false;
3064
+ enumValues: [string, ...string[]];
3065
+ baseColumn: never;
3066
+ identity: undefined;
3067
+ generated: undefined;
3068
+ }, {}, {}>;
3069
+ failureReason: import("drizzle-orm/pg-core").PgColumn<{
3070
+ name: "failure_reason";
3071
+ tableName: "binary_option_order_control";
3072
+ dataType: "string";
3073
+ columnType: "PgText";
3074
+ data: string;
3075
+ driverParam: string;
3076
+ notNull: false;
3077
+ hasDefault: false;
3078
+ isPrimaryKey: false;
3079
+ isAutoincrement: false;
3080
+ hasRuntimeDefault: false;
3081
+ enumValues: [string, ...string[]];
3082
+ baseColumn: never;
3083
+ identity: undefined;
3084
+ generated: undefined;
3085
+ }, {}, {}>;
3086
+ appliedAt: import("drizzle-orm/pg-core").PgColumn<{
3087
+ name: "applied_at";
3088
+ tableName: "binary_option_order_control";
3089
+ dataType: "date";
3090
+ columnType: "PgTimestamp";
3091
+ data: Date;
3092
+ driverParam: string;
3093
+ notNull: false;
3094
+ hasDefault: false;
3095
+ isPrimaryKey: false;
3096
+ isAutoincrement: false;
3097
+ hasRuntimeDefault: false;
3098
+ enumValues: undefined;
3099
+ baseColumn: never;
3100
+ identity: undefined;
3101
+ generated: undefined;
3102
+ }, {}, {}>;
3103
+ }, undefined>;
3104
+ export type BinaryOptionAdminOrderControlResponseType = typeof binaryOptionAdminOrderControlResponseSchema.static;