squarefi-bff-api-module 1.36.23 → 1.36.25

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.
@@ -917,17 +917,6 @@ export declare namespace API {
917
917
  }
918
918
  }
919
919
  namespace Orders {
920
- namespace Comment {
921
- type Request = {
922
- order_id: string;
923
- wallet_id: string;
924
- comment?: string | null;
925
- };
926
- type Response = {
927
- success: boolean;
928
- data: API.Orders.V2.List.ByWallet.OrderItem;
929
- };
930
- }
931
920
  namespace Create {
932
921
  namespace ByOrderType {
933
922
  namespace INTERNAL_TRANSFER {
@@ -1197,7 +1186,7 @@ export declare namespace API {
1197
1186
  };
1198
1187
  interface OrderInfo {
1199
1188
  id: string;
1200
- transaction_type: string;
1189
+ transaction_type: string | null;
1201
1190
  description: string | null;
1202
1191
  direction: 'deposit' | 'withdrawal';
1203
1192
  is_internal: boolean;
@@ -1530,7 +1519,7 @@ export declare namespace API {
1530
1519
  };
1531
1520
  interface OrderInfo {
1532
1521
  id: OrderType | string;
1533
- transaction_type: string;
1522
+ transaction_type: string | null;
1534
1523
  description: string | null;
1535
1524
  direction: string | null;
1536
1525
  is_internal: boolean;
@@ -1768,6 +1757,129 @@ export declare namespace API {
1768
1757
  type Response = OrderDetails;
1769
1758
  }
1770
1759
  }
1760
+ namespace Frontend {
1761
+ type OrderEnvelope = {
1762
+ success?: boolean;
1763
+ data?: componentsV1Frontend['schemas']['Order'];
1764
+ message?: string;
1765
+ };
1766
+ namespace Create {
1767
+ namespace Withdrawal {
1768
+ namespace Crypto {
1769
+ type Request = componentsV1Frontend['schemas']['FrontendCryptoTransferRequest'];
1770
+ type Response = OrderEnvelope;
1771
+ }
1772
+ namespace Internal {
1773
+ type Request = pathsV1Frontend['/frontend/orders/withdrawal/internal']['post']['requestBody']['content']['application/json'];
1774
+ type Response = OrderEnvelope;
1775
+ }
1776
+ namespace Wire {
1777
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1778
+ type Response = OrderEnvelope;
1779
+ }
1780
+ namespace Ach {
1781
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1782
+ type Response = OrderEnvelope;
1783
+ }
1784
+ namespace Sepa {
1785
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1786
+ type Response = OrderEnvelope;
1787
+ }
1788
+ namespace Swift {
1789
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1790
+ type Response = OrderEnvelope;
1791
+ }
1792
+ namespace Chaps {
1793
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1794
+ type Response = OrderEnvelope;
1795
+ }
1796
+ namespace Fps {
1797
+ type Request = componentsV1Frontend['schemas']['FrontendL2FOrderRequest'];
1798
+ type Response = OrderEnvelope;
1799
+ }
1800
+ namespace Card {
1801
+ type Request = pathsV1Frontend['/frontend/orders/withdrawal/card']['post']['requestBody']['content']['application/json'];
1802
+ type Response = OrderEnvelope;
1803
+ }
1804
+ }
1805
+ namespace Exchange {
1806
+ type Request = componentsV1Frontend['schemas']['FrontendExchangeOrderRequest'];
1807
+ type Response = OrderEnvelope;
1808
+ }
1809
+ }
1810
+ namespace Approve {
1811
+ type Request = {
1812
+ order_id: string;
1813
+ } & pathsV1Frontend['/frontend/orders/{order_id}/approve']['post']['requestBody']['content']['application/json'];
1814
+ type Response = OrderEnvelope;
1815
+ }
1816
+ namespace Cancel {
1817
+ type Request = {
1818
+ order_id: string;
1819
+ } & pathsV1Frontend['/frontend/orders/{order_id}/cancel']['post']['requestBody']['content']['application/json'];
1820
+ type Response = OrderEnvelope;
1821
+ }
1822
+ namespace Comment {
1823
+ type Request = {
1824
+ order_id: string;
1825
+ wallet_id: string;
1826
+ comment?: string | null;
1827
+ };
1828
+ type Response = {
1829
+ success: boolean;
1830
+ data: API.Orders.V2.List.ByWallet.OrderItem;
1831
+ };
1832
+ }
1833
+ namespace Calc {
1834
+ type Request = pathsV1Frontend['/frontend/orders/calc']['get']['parameters']['query'] & {
1835
+ signal?: AbortSignal;
1836
+ };
1837
+ type Response = API.Orders.Calc.Response;
1838
+ }
1839
+ namespace GetById {
1840
+ type Request = pathsV1Frontend['/frontend/orders/id/{order_id}']['get']['parameters']['path'];
1841
+ type Response = pathsV1Frontend['/frontend/orders/id/{order_id}']['get']['responses'][200]['content']['application/json'];
1842
+ }
1843
+ namespace GetByUuid {
1844
+ type Request = pathsV1Frontend['/frontend/orders/uuid/{order_uuid}']['get']['parameters']['path'];
1845
+ type Response = pathsV1Frontend['/frontend/orders/uuid/{order_uuid}']['get']['responses'][200]['content']['application/json'];
1846
+ }
1847
+ namespace List {
1848
+ namespace ByWallet {
1849
+ interface Request {
1850
+ wallet_uuid: string;
1851
+ offset?: number;
1852
+ limit?: number;
1853
+ sort_by?: string;
1854
+ sort_order?: 'asc' | 'desc';
1855
+ filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
1856
+ date_from?: string;
1857
+ date_to?: string;
1858
+ show_low_balance?: 'true' | 'false';
1859
+ }
1860
+ type Response = pathsV1Frontend['/frontend/orders/wallet/{wallet_uuid}']['get']['responses'][200]['content']['application/json'];
1861
+ }
1862
+ namespace Csv {
1863
+ interface Request {
1864
+ wallet_uuid: string;
1865
+ filters?: API.Orders.V2.List.ByWallet.OrderListFilter[];
1866
+ date_from?: string;
1867
+ date_to?: string;
1868
+ show_low_balance?: 'true' | 'false';
1869
+ }
1870
+ type Response = string;
1871
+ }
1872
+ }
1873
+ namespace Types {
1874
+ namespace List {
1875
+ type Response = API.Orders.OrderTypes.List.Response;
1876
+ }
1877
+ namespace GetById {
1878
+ type Request = pathsV1Frontend['/frontend/orders/types/{id}']['get']['parameters']['path'];
1879
+ type Response = API.Orders.OrderTypes.OrderInfo;
1880
+ }
1881
+ }
1882
+ }
1771
1883
  }
1772
1884
  namespace Tenant {
1773
1885
  type Config = components['schemas']['SystemConfigDto'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.36.23",
3
+ "version": "1.36.25",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",