quidax-node 3.0.4 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -441,7 +441,7 @@ var SwapModule = class {
441
441
  }
442
442
  /**
443
443
  * Generates a temporary swap quotation for previewing a swap before creation.
444
- *
444
+ *
445
445
  * @param userId - The unique ID of the user.
446
446
  * @param data - The swap quotation parameters.
447
447
  * @returns A promise resolving to the temporary swap quotation details.
@@ -451,7 +451,7 @@ var SwapModule = class {
451
451
  }
452
452
  /**
453
453
  * Creates an Instant Swap quotation linked to the user account.
454
- *
454
+ *
455
455
  * @param userId - The unique ID of the user.
456
456
  * @param data - The swap creation payload.
457
457
  * @returns A promise resolving to a SwapTransaction object in an unconfirmed state.
@@ -461,7 +461,7 @@ var SwapModule = class {
461
461
  }
462
462
  /**
463
463
  * Confirms a previously created Instant Swap quotation.
464
- *
464
+ *
465
465
  * @param userId - The unique ID of the user.
466
466
  * @param quotationId - The ID of the swap quotation to confirm.
467
467
  * @returns A promise resolving to the confirmed SwapTransaction.
@@ -471,7 +471,7 @@ var SwapModule = class {
471
471
  }
472
472
  /**
473
473
  * Refreshes an expired Instant Swap quotation to get updated market rates.
474
- *
474
+ *
475
475
  * @param userId - The unique ID of the user.
476
476
  * @param quotationId - The ID of the expired swap quotation.
477
477
  * @returns A promise resolving to the refreshed SwapTransaction.
@@ -481,7 +481,7 @@ var SwapModule = class {
481
481
  }
482
482
  /**
483
483
  * Fetches the details of a specific Swap Transaction.
484
- *
484
+ *
485
485
  * @param userId - The unique ID of the user.
486
486
  * @param swapTransactionId - The ID of the swap transaction.
487
487
  * @returns A promise resolving to the SwapTransaction details.
@@ -491,7 +491,7 @@ var SwapModule = class {
491
491
  }
492
492
  /**
493
493
  * Retrieves a paginated list of all swap transactions for a user.
494
- *
494
+ *
495
495
  * @param userId - The unique ID of the user.
496
496
  * @returns A promise resolving to a paginated list of SwapTransactions.
497
497
  */
package/dist/index.d.cts CHANGED
@@ -486,7 +486,7 @@ declare class SwapModule {
486
486
  source_currency: Currency;
487
487
  destination_currency: Currency;
488
488
  amount: string;
489
- type: 'source' | 'destination';
489
+ type: "source" | "destination";
490
490
  }): Promise<QuidaxResponse<any>>;
491
491
  /**
492
492
  * Creates an Instant Swap quotation linked to the user account.
@@ -496,10 +496,10 @@ declare class SwapModule {
496
496
  * @returns A promise resolving to a SwapTransaction object in an unconfirmed state.
497
497
  */
498
498
  create(userId: string, data: {
499
- source_currency: Currency;
500
- destination_currency: Currency;
501
- source_amount?: string;
502
- destination_amount?: string;
499
+ from_currency: Currency;
500
+ to_currency: Currency;
501
+ from_amount?: string;
502
+ to_amount?: string;
503
503
  }): Promise<QuidaxResponse<SwapTransaction>>;
504
504
  /**
505
505
  * Confirms a previously created Instant Swap quotation.
package/dist/index.d.mts CHANGED
@@ -486,7 +486,7 @@ declare class SwapModule {
486
486
  source_currency: Currency;
487
487
  destination_currency: Currency;
488
488
  amount: string;
489
- type: 'source' | 'destination';
489
+ type: "source" | "destination";
490
490
  }): Promise<QuidaxResponse<any>>;
491
491
  /**
492
492
  * Creates an Instant Swap quotation linked to the user account.
@@ -496,10 +496,10 @@ declare class SwapModule {
496
496
  * @returns A promise resolving to a SwapTransaction object in an unconfirmed state.
497
497
  */
498
498
  create(userId: string, data: {
499
- source_currency: Currency;
500
- destination_currency: Currency;
501
- source_amount?: string;
502
- destination_amount?: string;
499
+ from_currency: Currency;
500
+ to_currency: Currency;
501
+ from_amount?: string;
502
+ to_amount?: string;
503
503
  }): Promise<QuidaxResponse<SwapTransaction>>;
504
504
  /**
505
505
  * Confirms a previously created Instant Swap quotation.
package/dist/index.mjs CHANGED
@@ -414,7 +414,7 @@ var SwapModule = class {
414
414
  }
415
415
  /**
416
416
  * Generates a temporary swap quotation for previewing a swap before creation.
417
- *
417
+ *
418
418
  * @param userId - The unique ID of the user.
419
419
  * @param data - The swap quotation parameters.
420
420
  * @returns A promise resolving to the temporary swap quotation details.
@@ -424,7 +424,7 @@ var SwapModule = class {
424
424
  }
425
425
  /**
426
426
  * Creates an Instant Swap quotation linked to the user account.
427
- *
427
+ *
428
428
  * @param userId - The unique ID of the user.
429
429
  * @param data - The swap creation payload.
430
430
  * @returns A promise resolving to a SwapTransaction object in an unconfirmed state.
@@ -434,7 +434,7 @@ var SwapModule = class {
434
434
  }
435
435
  /**
436
436
  * Confirms a previously created Instant Swap quotation.
437
- *
437
+ *
438
438
  * @param userId - The unique ID of the user.
439
439
  * @param quotationId - The ID of the swap quotation to confirm.
440
440
  * @returns A promise resolving to the confirmed SwapTransaction.
@@ -444,7 +444,7 @@ var SwapModule = class {
444
444
  }
445
445
  /**
446
446
  * Refreshes an expired Instant Swap quotation to get updated market rates.
447
- *
447
+ *
448
448
  * @param userId - The unique ID of the user.
449
449
  * @param quotationId - The ID of the expired swap quotation.
450
450
  * @returns A promise resolving to the refreshed SwapTransaction.
@@ -454,7 +454,7 @@ var SwapModule = class {
454
454
  }
455
455
  /**
456
456
  * Fetches the details of a specific Swap Transaction.
457
- *
457
+ *
458
458
  * @param userId - The unique ID of the user.
459
459
  * @param swapTransactionId - The ID of the swap transaction.
460
460
  * @returns A promise resolving to the SwapTransaction details.
@@ -464,7 +464,7 @@ var SwapModule = class {
464
464
  }
465
465
  /**
466
466
  * Retrieves a paginated list of all swap transactions for a user.
467
- *
467
+ *
468
468
  * @param userId - The unique ID of the user.
469
469
  * @returns A promise resolving to a paginated list of SwapTransactions.
470
470
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidax-node",
3
- "version": "3.0.4",
3
+ "version": "3.0.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "files": [