squarefi-bff-api-module 1.32.31 → 1.32.33

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;
@@ -1528,7 +1528,20 @@ export declare namespace API {
1528
1528
  meta: OrderMeta;
1529
1529
  info?: string | null;
1530
1530
  }
1531
- type Response = OrderItem[];
1531
+ type Response = {
1532
+ data: OrderItem[];
1533
+ count: number;
1534
+ has_more: boolean;
1535
+ };
1536
+ }
1537
+ namespace Csv {
1538
+ interface Request {
1539
+ wallet_uuid: string;
1540
+ filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
1541
+ date_from?: string;
1542
+ date_to?: string;
1543
+ }
1544
+ type Response = string;
1532
1545
  }
1533
1546
  }
1534
1547
  namespace GetById {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.32.31",
3
+ "version": "1.32.33",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",