squarefi-bff-api-module 1.32.30 → 1.32.32

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.
@@ -43,6 +43,9 @@ export declare const orders: {
43
43
  };
44
44
  list: {
45
45
  byWallet: ({ wallet_uuid, ...params }: API.Orders.V2.List.ByWallet.Request) => Promise<API.Orders.V2.List.ByWallet.Response>;
46
+ csv: {
47
+ getByWalletUuid: ({ wallet_uuid, ...params }: API.Orders.V2.List.Csv.Request) => Promise<API.Orders.V2.List.Csv.Response>;
48
+ };
46
49
  };
47
50
  getById: ({ order_uuid }: API.Orders.V2.GetById.Request) => Promise<API.Orders.V2.GetById.Response>;
48
51
  };
@@ -78,6 +78,11 @@ export const orders = {
78
78
  byWallet: ({ wallet_uuid, ...params }) => apiClientV1.getRequest(`/v2/orders/list/${wallet_uuid}`, {
79
79
  params,
80
80
  }),
81
+ csv: {
82
+ getByWalletUuid: ({ wallet_uuid, ...params }) => apiClientV1.getRequest(`/v2/orders/list/${wallet_uuid}/csv`, {
83
+ params,
84
+ }),
85
+ },
81
86
  },
82
87
  getById: ({ order_uuid }) => apiClientV1.getRequest(`/v2/orders/id/${order_uuid}`),
83
88
  },
@@ -1431,20 +1431,20 @@ export declare namespace API {
1431
1431
  }
1432
1432
  namespace List {
1433
1433
  namespace ByWallet {
1434
+ type OrderListStatusFilter = Record<'status', OrderStatuses[] | OrderStatuses>;
1435
+ type OrderListOrderTypeFilter = Record<'order_type', OrderType[] | OrderType>;
1436
+ type OrderListFromUuidFilter = Record<'from_uuid', string[] | string>;
1437
+ type OrderListToCurrencyIdFilter = Record<'to_currency_id', string[] | string>;
1438
+ type OrderListFilter = OrderListStatusFilter | OrderListOrderTypeFilter | OrderListFromUuidFilter | OrderListToCurrencyIdFilter;
1434
1439
  interface Request {
1435
1440
  wallet_uuid: string;
1436
1441
  offset?: number;
1437
1442
  limit?: number;
1438
1443
  sort_by?: string;
1439
1444
  sort_order?: 'asc' | 'desc';
1440
- filter: {
1441
- from_created_at?: string;
1442
- to_created_at?: string;
1443
- status?: OrderStatuses;
1444
- order_type?: OrderType;
1445
- from_currency_id?: string;
1446
- to_currency_id?: string;
1447
- };
1445
+ filters?: OrderListFilter[];
1446
+ date_from?: string;
1447
+ date_to?: string;
1448
1448
  }
1449
1449
  interface PaymentOriginatorAddress {
1450
1450
  address_line1?: string | null;
@@ -1530,6 +1530,15 @@ export declare namespace API {
1530
1530
  }
1531
1531
  type Response = OrderItem[];
1532
1532
  }
1533
+ namespace Csv {
1534
+ interface Request {
1535
+ wallet_uuid: string;
1536
+ filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
1537
+ date_from?: string;
1538
+ date_to?: string;
1539
+ }
1540
+ type Response = string;
1541
+ }
1533
1542
  }
1534
1543
  namespace GetById {
1535
1544
  interface Request {
@@ -2097,6 +2106,7 @@ export declare namespace API {
2097
2106
  interface Wallet {
2098
2107
  uuid: string;
2099
2108
  logo_url: string | null;
2109
+ name: string | null;
2100
2110
  created_at: string;
2101
2111
  fiat_total: number;
2102
2112
  crypto_total: number;
@@ -2118,6 +2128,7 @@ export declare namespace API {
2118
2128
  interface WalletsListItem {
2119
2129
  logo_url: string | null;
2120
2130
  uuid: string;
2131
+ name: string | null;
2121
2132
  created_at: string;
2122
2133
  role: API.Wallets.Wallet.WalletRole;
2123
2134
  kyc_info: API.Wallets.Wallet.WalletKYCInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.30",
3
+ "version": "1.32.32",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",