@coin-voyage/shared 2.2.5-beta.1 → 2.2.5-beta.3

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.
@@ -278,7 +278,7 @@ export declare class ApiClient {
278
278
  * Subscribe to an order's events after the connection is open:
279
279
  * ```ts
280
280
  * const socket = apiClient.subscribeOrderStatus()
281
- * socket.onOpen(() => socket.subscribe(orderId)) // omit orderId to subscribe to all org orders
281
+ * socket.onOpen(() => socket.subscribe(orderId))
282
282
  * socket.onMessage((msg) => {
283
283
  * if (msg.type === 'event') console.log(msg.data)
284
284
  * })
@@ -471,7 +471,7 @@ export class ApiClient {
471
471
  * Subscribe to an order's events after the connection is open:
472
472
  * ```ts
473
473
  * const socket = apiClient.subscribeOrderStatus()
474
- * socket.onOpen(() => socket.subscribe(orderId)) // omit orderId to subscribe to all org orders
474
+ * socket.onOpen(() => socket.subscribe(orderId))
475
475
  * socket.onMessage((msg) => {
476
476
  * if (msg.type === 'event') console.log(msg.data)
477
477
  * })
@@ -1,7 +1,7 @@
1
1
  import { FiatCurrency } from "../common/currencies";
2
2
  import { ChainId, ChainType, PayOrderStatus } from "./enums";
3
3
  import { PayOrderEvent } from "./events";
4
- import { Currency, CurrencyAmount, CurrencyBase, CurrencyWithAmount, PaymentData, PayOrderMetadata, QuoteWithCurrency } from "./model";
4
+ import { CurrencyAmount, CurrencyBase, CurrencyWithAmount, PaymentData, PayOrderMetadata, QuoteWithCurrency } from "./model";
5
5
  export type PayOrderParams = {
6
6
  /**
7
7
  * Intent of the order.
@@ -26,22 +26,6 @@ export type PaymentDetailsParams = {
26
26
  export type PaymentDetails = {
27
27
  payorder_id: string;
28
28
  status: PayOrderStatus;
29
- /** @deprecated Use `data.expires_at` instead */
30
- expires_at: Date;
31
- /** @deprecated Use `data.refund_address` instead */
32
- refund_address: string;
33
- /** @deprecated Use `data.deposit_address` instead */
34
- deposit_address: string;
35
- /** @deprecated Use `data.receiving_address` instead */
36
- receiving_address: string;
37
- /** @deprecated Use `data.src` instead */
38
- source_currency: Currency;
39
- /** @deprecated Use `data.src.currency_amount` instead */
40
- source_amount: CurrencyAmount;
41
- /** @deprecated Use `data.dst` instead */
42
- destination_currency: Currency;
43
- /** @deprecated Use `data.dst.currency_amount` instead */
44
- destination_amount: CurrencyAmount;
45
29
  data: PaymentData;
46
30
  };
47
31
  export type PayOrderIntent = {
@@ -1,12 +1,14 @@
1
1
  import { ParsedPayOrderMetadata } from "./model";
2
2
  import { Hex } from "./crypto";
3
3
  import { PaymentData } from "./model";
4
+ import { PayOrderStatus } from "./enums";
4
5
  export type PayOrderCreationErrorEvent = {
5
6
  type: "payorder_creation_error";
6
7
  errorMessage: string;
7
8
  };
8
9
  type EventBase = {
9
10
  payorder_id: string;
11
+ status: PayOrderStatus;
10
12
  metadata?: ParsedPayOrderMetadata;
11
13
  };
12
14
  export type PayOrderCreatedEvent = EventBase & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coin-voyage/shared",
3
3
  "description": "Shared utilities for Coin Voyage",
4
- "version": "2.2.5-beta.1",
4
+ "version": "2.2.5-beta.3",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {