@r2wa-org/eden 0.0.64 → 0.0.66

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.
@@ -8,7 +8,7 @@ export declare abstract class AdminAssetConvertProductService {
8
8
  private static assertStatusTransitionAllowed;
9
9
  private static ensureProductReferencesValid;
10
10
  static createProduct(input: AssetConvertProductCreateInputType): Promise<{
11
- targetAssetInfo: {
11
+ targetAsset: {
12
12
  symbol: string;
13
13
  id: string;
14
14
  name: string;
@@ -21,7 +21,7 @@ export declare abstract class AdminAssetConvertProductService {
21
21
  typeId: string;
22
22
  precision: number;
23
23
  };
24
- payAssetInfo: {
24
+ payAsset: {
25
25
  symbol: string;
26
26
  id: string;
27
27
  name: string;
@@ -34,7 +34,7 @@ export declare abstract class AdminAssetConvertProductService {
34
34
  typeId: string;
35
35
  precision: number;
36
36
  };
37
- payAccountTypeInfo: {
37
+ payAccountType: {
38
38
  id: string;
39
39
  name: string;
40
40
  createdAt: Date;
@@ -59,7 +59,7 @@ export declare abstract class AdminAssetConvertProductService {
59
59
  expiryDays: number | null;
60
60
  sortOrder: number;
61
61
  };
62
- receiveAccountTypeInfo: {
62
+ receiveAccountType: {
63
63
  id: string;
64
64
  name: string;
65
65
  createdAt: Date;
@@ -112,7 +112,7 @@ export declare abstract class AdminAssetConvertProductService {
112
112
  receiveAccountTypeId: string;
113
113
  minPayAmount: string;
114
114
  settlementMode: "available" | "locked";
115
- targetAssetInfo: {
115
+ targetAsset: {
116
116
  symbol: string;
117
117
  id: string;
118
118
  name: string;
@@ -120,7 +120,7 @@ export declare abstract class AdminAssetConvertProductService {
120
120
  isActive: boolean;
121
121
  precision: number;
122
122
  };
123
- payAssetInfo: {
123
+ payAsset: {
124
124
  symbol: string;
125
125
  id: string;
126
126
  name: string;
@@ -128,13 +128,13 @@ export declare abstract class AdminAssetConvertProductService {
128
128
  isActive: boolean;
129
129
  precision: number;
130
130
  };
131
- payAccountTypeInfo: {
131
+ payAccountType: {
132
132
  id: string;
133
133
  name: string;
134
134
  key: string;
135
135
  isActive: boolean;
136
136
  };
137
- receiveAccountTypeInfo: {
137
+ receiveAccountType: {
138
138
  id: string;
139
139
  name: string;
140
140
  key: string;
@@ -155,7 +155,7 @@ export declare abstract class AdminAssetConvertProductService {
155
155
  receiveAccountTypeId: string;
156
156
  minPayAmount: string;
157
157
  settlementMode: "available" | "locked";
158
- targetAssetInfo: {
158
+ targetAsset: {
159
159
  symbol: string;
160
160
  id: string;
161
161
  name: string;
@@ -163,7 +163,7 @@ export declare abstract class AdminAssetConvertProductService {
163
163
  isActive: boolean;
164
164
  precision: number;
165
165
  };
166
- payAssetInfo: {
166
+ payAsset: {
167
167
  symbol: string;
168
168
  id: string;
169
169
  name: string;
@@ -171,13 +171,13 @@ export declare abstract class AdminAssetConvertProductService {
171
171
  isActive: boolean;
172
172
  precision: number;
173
173
  };
174
- payAccountTypeInfo: {
174
+ payAccountType: {
175
175
  id: string;
176
176
  name: string;
177
177
  key: string;
178
178
  isActive: boolean;
179
179
  };
180
- receiveAccountTypeInfo: {
180
+ receiveAccountType: {
181
181
  id: string;
182
182
  name: string;
183
183
  key: string;
@@ -198,7 +198,7 @@ export declare abstract class AdminAssetConvertProductService {
198
198
  receiveAccountTypeId: string;
199
199
  minPayAmount: string;
200
200
  settlementMode: "available" | "locked";
201
- targetAssetInfo: {
201
+ targetAsset: {
202
202
  symbol: string;
203
203
  id: string;
204
204
  name: string;
@@ -206,7 +206,7 @@ export declare abstract class AdminAssetConvertProductService {
206
206
  isActive: boolean;
207
207
  precision: number;
208
208
  };
209
- payAssetInfo: {
209
+ payAsset: {
210
210
  symbol: string;
211
211
  id: string;
212
212
  name: string;
@@ -214,13 +214,13 @@ export declare abstract class AdminAssetConvertProductService {
214
214
  isActive: boolean;
215
215
  precision: number;
216
216
  };
217
- payAccountTypeInfo: {
217
+ payAccountType: {
218
218
  id: string;
219
219
  name: string;
220
220
  key: string;
221
221
  isActive: boolean;
222
222
  };
223
- receiveAccountTypeInfo: {
223
+ receiveAccountType: {
224
224
  id: string;
225
225
  name: string;
226
226
  key: string;
@@ -241,7 +241,7 @@ export declare abstract class AdminAssetConvertProductService {
241
241
  receiveAccountTypeId: string;
242
242
  minPayAmount: string;
243
243
  settlementMode: "available" | "locked";
244
- targetAssetInfo: {
244
+ targetAsset: {
245
245
  symbol: string;
246
246
  id: string;
247
247
  name: string;
@@ -249,7 +249,7 @@ export declare abstract class AdminAssetConvertProductService {
249
249
  isActive: boolean;
250
250
  precision: number;
251
251
  };
252
- payAssetInfo: {
252
+ payAsset: {
253
253
  symbol: string;
254
254
  id: string;
255
255
  name: string;
@@ -257,13 +257,13 @@ export declare abstract class AdminAssetConvertProductService {
257
257
  isActive: boolean;
258
258
  precision: number;
259
259
  };
260
- payAccountTypeInfo: {
260
+ payAccountType: {
261
261
  id: string;
262
262
  name: string;
263
263
  key: string;
264
264
  isActive: boolean;
265
265
  };
266
- receiveAccountTypeInfo: {
266
+ receiveAccountType: {
267
267
  id: string;
268
268
  name: string;
269
269
  key: string;
@@ -284,7 +284,7 @@ export declare abstract class AdminAssetConvertProductService {
284
284
  receiveAccountTypeId: string;
285
285
  minPayAmount: string;
286
286
  settlementMode: "available" | "locked";
287
- targetAssetInfo: {
287
+ targetAsset: {
288
288
  symbol: string;
289
289
  id: string;
290
290
  name: string;
@@ -292,7 +292,7 @@ export declare abstract class AdminAssetConvertProductService {
292
292
  isActive: boolean;
293
293
  precision: number;
294
294
  };
295
- payAssetInfo: {
295
+ payAsset: {
296
296
  symbol: string;
297
297
  id: string;
298
298
  name: string;
@@ -300,13 +300,13 @@ export declare abstract class AdminAssetConvertProductService {
300
300
  isActive: boolean;
301
301
  precision: number;
302
302
  };
303
- payAccountTypeInfo: {
303
+ payAccountType: {
304
304
  id: string;
305
305
  name: string;
306
306
  key: string;
307
307
  isActive: boolean;
308
308
  };
309
- receiveAccountTypeInfo: {
309
+ receiveAccountType: {
310
310
  id: string;
311
311
  name: string;
312
312
  key: string;
@@ -328,7 +328,7 @@ export declare abstract class AdminAssetConvertProductService {
328
328
  receiveAccountTypeId: string;
329
329
  minPayAmount: string;
330
330
  settlementMode: "available" | "locked";
331
- targetAssetInfo: {
331
+ targetAsset: {
332
332
  symbol: string;
333
333
  id: string;
334
334
  name: string;
@@ -336,7 +336,7 @@ export declare abstract class AdminAssetConvertProductService {
336
336
  isActive: boolean;
337
337
  precision: number;
338
338
  };
339
- payAssetInfo: {
339
+ payAsset: {
340
340
  symbol: string;
341
341
  id: string;
342
342
  name: string;
@@ -344,13 +344,13 @@ export declare abstract class AdminAssetConvertProductService {
344
344
  isActive: boolean;
345
345
  precision: number;
346
346
  };
347
- payAccountTypeInfo: {
347
+ payAccountType: {
348
348
  id: string;
349
349
  name: string;
350
350
  key: string;
351
351
  isActive: boolean;
352
352
  };
353
- receiveAccountTypeInfo: {
353
+ receiveAccountType: {
354
354
  id: string;
355
355
  name: string;
356
356
  key: string;
@@ -366,18 +366,26 @@ export declare abstract class AdminAssetConvertProductService {
366
366
  };
367
367
  }>;
368
368
  static getOrderDetail(orderId: string): Promise<{
369
- debitLedgerEntryInfo?: {
369
+ debitLedgerEntry?: {
370
370
  id: string;
371
371
  createdAt: Date;
372
372
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
373
373
  amount: string;
374
374
  } | undefined;
375
- creditLedgerEntryInfo?: {
375
+ creditLedgerEntry?: {
376
376
  id: string;
377
377
  createdAt: Date;
378
378
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
379
379
  amount: string;
380
380
  } | undefined;
381
+ user: {
382
+ email: string;
383
+ id: string;
384
+ username: string | null;
385
+ displayUsername: string | null;
386
+ phoneNumber: string | null;
387
+ banned: boolean | null;
388
+ };
381
389
  id: string;
382
390
  createdAt: Date;
383
391
  updatedAt: Date;
@@ -400,7 +408,13 @@ export declare abstract class AdminAssetConvertProductService {
400
408
  creditLedgerEntryId: string | null;
401
409
  failureCode: string | null;
402
410
  failureReason: string | null;
403
- targetAssetInfo: {
411
+ product: {
412
+ id: string;
413
+ name: string;
414
+ status: "active" | "draft" | "paused" | "ended";
415
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
416
+ };
417
+ payAssetSnapshot: {
404
418
  symbol: string;
405
419
  id: string;
406
420
  name: string;
@@ -408,7 +422,7 @@ export declare abstract class AdminAssetConvertProductService {
408
422
  isActive: boolean;
409
423
  precision: number;
410
424
  };
411
- payAssetInfo: {
425
+ targetAssetSnapshot: {
412
426
  symbol: string;
413
427
  id: string;
414
428
  name: string;
@@ -416,21 +430,7 @@ export declare abstract class AdminAssetConvertProductService {
416
430
  isActive: boolean;
417
431
  precision: number;
418
432
  };
419
- userInfo: {
420
- email: string;
421
- id: string;
422
- username: string | null;
423
- displayUsername: string | null;
424
- phoneNumber: string | null;
425
- banned: boolean | null;
426
- };
427
- productInfo: {
428
- id: string;
429
- name: string;
430
- status: "active" | "draft" | "paused" | "ended";
431
- productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
432
- };
433
- quoteAssetInfo: {
433
+ quoteAssetSnapshot: {
434
434
  symbol: string;
435
435
  id: string;
436
436
  name: string;
@@ -438,13 +438,13 @@ export declare abstract class AdminAssetConvertProductService {
438
438
  isActive: boolean;
439
439
  precision: number;
440
440
  };
441
- sourcePayAccountInfo: {
441
+ sourcePayAccount: {
442
442
  id: string;
443
443
  status: "active" | "frozen" | "disabled";
444
444
  assetId: string;
445
445
  ledgerAccountTypeId: string;
446
446
  };
447
- receiveAccountInfo: {
447
+ receiveAccount: {
448
448
  id: string;
449
449
  status: "active" | "frozen" | "disabled";
450
450
  assetId: string;
@@ -452,18 +452,26 @@ export declare abstract class AdminAssetConvertProductService {
452
452
  };
453
453
  }>;
454
454
  static getOrderByOrderNo(orderNo: string): Promise<{
455
- debitLedgerEntryInfo?: {
455
+ debitLedgerEntry?: {
456
456
  id: string;
457
457
  createdAt: Date;
458
458
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
459
459
  amount: string;
460
460
  } | undefined;
461
- creditLedgerEntryInfo?: {
461
+ creditLedgerEntry?: {
462
462
  id: string;
463
463
  createdAt: Date;
464
464
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
465
465
  amount: string;
466
466
  } | undefined;
467
+ user: {
468
+ email: string;
469
+ id: string;
470
+ username: string | null;
471
+ displayUsername: string | null;
472
+ phoneNumber: string | null;
473
+ banned: boolean | null;
474
+ };
467
475
  id: string;
468
476
  createdAt: Date;
469
477
  updatedAt: Date;
@@ -486,7 +494,13 @@ export declare abstract class AdminAssetConvertProductService {
486
494
  creditLedgerEntryId: string | null;
487
495
  failureCode: string | null;
488
496
  failureReason: string | null;
489
- targetAssetInfo: {
497
+ product: {
498
+ id: string;
499
+ name: string;
500
+ status: "active" | "draft" | "paused" | "ended";
501
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
502
+ };
503
+ payAssetSnapshot: {
490
504
  symbol: string;
491
505
  id: string;
492
506
  name: string;
@@ -494,7 +508,7 @@ export declare abstract class AdminAssetConvertProductService {
494
508
  isActive: boolean;
495
509
  precision: number;
496
510
  };
497
- payAssetInfo: {
511
+ targetAssetSnapshot: {
498
512
  symbol: string;
499
513
  id: string;
500
514
  name: string;
@@ -502,21 +516,7 @@ export declare abstract class AdminAssetConvertProductService {
502
516
  isActive: boolean;
503
517
  precision: number;
504
518
  };
505
- userInfo: {
506
- email: string;
507
- id: string;
508
- username: string | null;
509
- displayUsername: string | null;
510
- phoneNumber: string | null;
511
- banned: boolean | null;
512
- };
513
- productInfo: {
514
- id: string;
515
- name: string;
516
- status: "active" | "draft" | "paused" | "ended";
517
- productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
518
- };
519
- quoteAssetInfo: {
519
+ quoteAssetSnapshot: {
520
520
  symbol: string;
521
521
  id: string;
522
522
  name: string;
@@ -524,13 +524,13 @@ export declare abstract class AdminAssetConvertProductService {
524
524
  isActive: boolean;
525
525
  precision: number;
526
526
  };
527
- sourcePayAccountInfo: {
527
+ sourcePayAccount: {
528
528
  id: string;
529
529
  status: "active" | "frozen" | "disabled";
530
530
  assetId: string;
531
531
  ledgerAccountTypeId: string;
532
532
  };
533
- receiveAccountInfo: {
533
+ receiveAccount: {
534
534
  id: string;
535
535
  status: "active" | "frozen" | "disabled";
536
536
  assetId: string;
@@ -539,18 +539,26 @@ export declare abstract class AdminAssetConvertProductService {
539
539
  }>;
540
540
  static listOrders(filters?: AssetConvertOrderListQueryType): Promise<{
541
541
  data: {
542
- debitLedgerEntryInfo?: {
542
+ debitLedgerEntry?: {
543
543
  id: string;
544
544
  createdAt: Date;
545
545
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
546
546
  amount: string;
547
547
  } | undefined;
548
- creditLedgerEntryInfo?: {
548
+ creditLedgerEntry?: {
549
549
  id: string;
550
550
  createdAt: Date;
551
551
  bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
552
552
  amount: string;
553
553
  } | undefined;
554
+ user: {
555
+ email: string;
556
+ id: string;
557
+ username: string | null;
558
+ displayUsername: string | null;
559
+ phoneNumber: string | null;
560
+ banned: boolean | null;
561
+ };
554
562
  id: string;
555
563
  createdAt: Date;
556
564
  updatedAt: Date;
@@ -573,7 +581,13 @@ export declare abstract class AdminAssetConvertProductService {
573
581
  creditLedgerEntryId: string | null;
574
582
  failureCode: string | null;
575
583
  failureReason: string | null;
576
- targetAssetInfo: {
584
+ product: {
585
+ id: string;
586
+ name: string;
587
+ status: "active" | "draft" | "paused" | "ended";
588
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
589
+ };
590
+ payAssetSnapshot: {
577
591
  symbol: string;
578
592
  id: string;
579
593
  name: string;
@@ -581,7 +595,7 @@ export declare abstract class AdminAssetConvertProductService {
581
595
  isActive: boolean;
582
596
  precision: number;
583
597
  };
584
- payAssetInfo: {
598
+ targetAssetSnapshot: {
585
599
  symbol: string;
586
600
  id: string;
587
601
  name: string;
@@ -589,21 +603,7 @@ export declare abstract class AdminAssetConvertProductService {
589
603
  isActive: boolean;
590
604
  precision: number;
591
605
  };
592
- userInfo: {
593
- email: string;
594
- id: string;
595
- username: string | null;
596
- displayUsername: string | null;
597
- phoneNumber: string | null;
598
- banned: boolean | null;
599
- };
600
- productInfo: {
601
- id: string;
602
- name: string;
603
- status: "active" | "draft" | "paused" | "ended";
604
- productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
605
- };
606
- quoteAssetInfo: {
606
+ quoteAssetSnapshot: {
607
607
  symbol: string;
608
608
  id: string;
609
609
  name: string;
@@ -611,13 +611,13 @@ export declare abstract class AdminAssetConvertProductService {
611
611
  isActive: boolean;
612
612
  precision: number;
613
613
  };
614
- sourcePayAccountInfo: {
614
+ sourcePayAccount: {
615
615
  id: string;
616
616
  status: "active" | "frozen" | "disabled";
617
617
  assetId: string;
618
618
  ledgerAccountTypeId: string;
619
619
  };
620
- receiveAccountInfo: {
620
+ receiveAccount: {
621
621
  id: string;
622
622
  status: "active" | "frozen" | "disabled";
623
623
  assetId: string;