wapi-client 0.9.5 → 0.10.0

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.
Files changed (290) hide show
  1. package/dist/api/base-client.browser.cjs +69 -60
  2. package/dist/api/base-client.browser.js +69 -60
  3. package/dist/api/base-client.cjs +69 -60
  4. package/dist/api/base-client.d.ts +67 -58
  5. package/dist/api/base-client.js +70 -61
  6. package/dist/api/connection/connection.enums.d.ts +0 -12
  7. package/dist/api/http-client.d.ts +1 -1
  8. package/dist/api/ws-client.cjs +1 -1
  9. package/dist/api/ws-client.d.ts +1 -1
  10. package/dist/api/ws-client.js +1 -1
  11. package/dist/client.browser.cjs +623 -441
  12. package/dist/client.browser.js +623 -441
  13. package/dist/client.cjs +624 -442
  14. package/dist/client.d.ts +851 -547
  15. package/dist/client.js +624 -442
  16. package/dist/db/consts.schema.json +3 -2
  17. package/dist/db/index.browser.cjs +5 -1
  18. package/dist/db/index.browser.js +5 -1
  19. package/dist/db/index.cjs +8 -2
  20. package/dist/db/index.d.ts +3 -0
  21. package/dist/db/index.js +5 -1
  22. package/dist/db/token/token.schema.input.json +5 -16
  23. package/dist/db/token/token.schema.json +8 -32
  24. package/dist/db/token/token.schema.optional.json +5 -16
  25. package/dist/db/transfer/transfer.schema.input.json +6 -21
  26. package/dist/db/transfer/transfer.schema.json +8 -28
  27. package/dist/db/transfer/transfer.schema.optional.json +7 -24
  28. package/dist/db/transfer-group/transfer-group.schema.input.json +6 -20
  29. package/dist/db/transfer-group/transfer-group.schema.json +8 -27
  30. package/dist/db/transfer-group/transfer-group.schema.optional.json +6 -20
  31. package/dist/db/transfer-log/transfer-log.schema.input.json +1 -1
  32. package/dist/db/transfer-log/transfer-log.schema.json +7 -29
  33. package/dist/db/transfer-log/transfer-log.schema.optional.json +6 -20
  34. package/dist/db/wallet/wallet.schema.input.json +4 -12
  35. package/dist/db/wallet/wallet.schema.json +8 -35
  36. package/dist/db/wallet/wallet.schema.optional.json +4 -12
  37. package/dist/db/wallet-token-setting/wallet-token-setting.schema.input.json +1 -1
  38. package/dist/db/wallet-token-setting/wallet-token-setting.schema.json +5 -17
  39. package/dist/db/wallet-token-setting/wallet-token-setting.schema.optional.json +2 -4
  40. package/dist/db/wapi-setting/wapi-setting.schema.input.json +2 -5
  41. package/dist/db/wapi-setting/wapi-setting.schema.json +5 -21
  42. package/dist/db/wapi-setting/wapi-setting.schema.optional.json +2 -4
  43. package/dist/{txs/export-database/export-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.browser.cjs} +3 -3
  44. package/dist/{txs/import-database/import-database.enums.cjs → db/wapi-statistic/wapi-statistic.enums.cjs} +3 -3
  45. package/dist/db/wapi-statistic/wapi-statistic.enums.d.ts +96 -0
  46. package/dist/db/wapi-statistic/wapi-statistic.schema.input.json +29 -0
  47. package/dist/db/wapi-statistic/wapi-statistic.schema.json +81 -0
  48. package/dist/db/wapi-statistic/wapi-statistic.schema.optional.json +43 -0
  49. package/dist/fns/export-balance-history/export-balance-history.browser.cjs +51 -0
  50. package/dist/fns/export-balance-history/export-balance-history.browser.js +30 -0
  51. package/dist/fns/export-balance-history/export-balance-history.cjs +55 -0
  52. package/dist/fns/export-balance-history/export-balance-history.d.ts +8 -0
  53. package/dist/fns/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
  54. package/dist/fns/export-balance-history/export-balance-history.enums.cjs +17 -0
  55. package/dist/fns/export-balance-history/export-balance-history.enums.d.ts +29 -0
  56. package/dist/fns/export-balance-history/export-balance-history.guards.browser.cjs +36 -0
  57. package/dist/fns/export-balance-history/export-balance-history.guards.browser.js +16 -0
  58. package/dist/fns/export-balance-history/export-balance-history.guards.cjs +41 -0
  59. package/dist/fns/export-balance-history/export-balance-history.guards.d.ts +4 -0
  60. package/dist/fns/export-balance-history/export-balance-history.guards.js +16 -0
  61. package/dist/fns/export-balance-history/export-balance-history.js +30 -0
  62. package/dist/fns/export-balance-history/export-balance-history.schema.input.json +33 -0
  63. package/dist/fns/export-balance-history/export-balance-history.schema.output.json +8 -0
  64. package/dist/fns/export-tokens/export-tokens.browser.cjs +91 -0
  65. package/dist/fns/export-tokens/export-tokens.browser.js +77 -0
  66. package/dist/fns/export-tokens/export-tokens.cjs +95 -0
  67. package/dist/fns/export-tokens/export-tokens.d.ts +19 -0
  68. package/dist/fns/export-tokens/export-tokens.enums.browser.cjs +17 -0
  69. package/dist/fns/export-tokens/export-tokens.enums.cjs +17 -0
  70. package/dist/fns/export-tokens/export-tokens.enums.d.ts +39 -0
  71. package/dist/fns/export-tokens/export-tokens.guards.browser.cjs +36 -0
  72. package/dist/fns/export-tokens/export-tokens.guards.browser.js +16 -0
  73. package/dist/fns/export-tokens/export-tokens.guards.cjs +41 -0
  74. package/dist/fns/export-tokens/export-tokens.guards.d.ts +4 -0
  75. package/dist/fns/export-tokens/export-tokens.guards.js +16 -0
  76. package/dist/fns/export-tokens/export-tokens.js +77 -0
  77. package/dist/fns/export-tokens/export-tokens.schema.input.json +43 -0
  78. package/dist/fns/export-tokens/export-tokens.schema.output.json +8 -0
  79. package/dist/fns/export-transfer-groups/export-transfer-groups.browser.cjs +94 -0
  80. package/dist/fns/export-transfer-groups/export-transfer-groups.browser.js +80 -0
  81. package/dist/fns/export-transfer-groups/export-transfer-groups.cjs +98 -0
  82. package/dist/fns/export-transfer-groups/export-transfer-groups.d.ts +19 -0
  83. package/dist/fns/export-transfer-groups/export-transfer-groups.enums.browser.cjs +17 -0
  84. package/dist/fns/export-transfer-groups/export-transfer-groups.enums.cjs +17 -0
  85. package/dist/fns/export-transfer-groups/export-transfer-groups.enums.d.ts +47 -0
  86. package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.cjs +36 -0
  87. package/dist/fns/export-transfer-groups/export-transfer-groups.guards.browser.js +16 -0
  88. package/dist/fns/export-transfer-groups/export-transfer-groups.guards.cjs +41 -0
  89. package/dist/fns/export-transfer-groups/export-transfer-groups.guards.d.ts +4 -0
  90. package/dist/fns/export-transfer-groups/export-transfer-groups.guards.js +16 -0
  91. package/dist/fns/export-transfer-groups/export-transfer-groups.js +80 -0
  92. package/dist/fns/export-transfer-groups/export-transfer-groups.schema.input.json +49 -0
  93. package/dist/fns/export-transfer-groups/export-transfer-groups.schema.output.json +8 -0
  94. package/dist/fns/export-transfers/export-transfers.browser.cjs +140 -0
  95. package/dist/fns/export-transfers/export-transfers.browser.js +127 -0
  96. package/dist/fns/export-transfers/export-transfers.cjs +144 -0
  97. package/dist/fns/export-transfers/export-transfers.d.ts +19 -0
  98. package/dist/{txs/export-database/export-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.browser.cjs} +3 -3
  99. package/dist/{txs/import-database/import-database.enums.browser.cjs → fns/export-transfers/export-transfers.enums.cjs} +3 -3
  100. package/dist/fns/export-transfers/export-transfers.enums.d.ts +54 -0
  101. package/dist/fns/export-transfers/export-transfers.guards.browser.cjs +36 -0
  102. package/dist/fns/export-transfers/export-transfers.guards.browser.js +16 -0
  103. package/dist/fns/export-transfers/export-transfers.guards.cjs +41 -0
  104. package/dist/fns/export-transfers/export-transfers.guards.d.ts +4 -0
  105. package/dist/fns/export-transfers/export-transfers.guards.js +16 -0
  106. package/dist/fns/export-transfers/export-transfers.js +127 -0
  107. package/dist/fns/export-transfers/export-transfers.schema.input.json +73 -0
  108. package/dist/fns/export-transfers/export-transfers.schema.output.json +8 -0
  109. package/dist/fns/export-wallets/export-wallets.browser.cjs +86 -0
  110. package/dist/fns/export-wallets/export-wallets.browser.js +72 -0
  111. package/dist/fns/export-wallets/export-wallets.cjs +90 -0
  112. package/dist/fns/export-wallets/export-wallets.d.ts +18 -0
  113. package/dist/fns/export-wallets/export-wallets.enums.browser.cjs +17 -0
  114. package/dist/fns/export-wallets/export-wallets.enums.cjs +17 -0
  115. package/dist/fns/export-wallets/export-wallets.enums.d.ts +45 -0
  116. package/dist/fns/export-wallets/export-wallets.guards.browser.cjs +36 -0
  117. package/dist/fns/export-wallets/export-wallets.guards.browser.js +16 -0
  118. package/dist/fns/export-wallets/export-wallets.guards.cjs +41 -0
  119. package/dist/fns/export-wallets/export-wallets.guards.d.ts +4 -0
  120. package/dist/fns/export-wallets/export-wallets.guards.js +16 -0
  121. package/dist/fns/export-wallets/export-wallets.js +72 -0
  122. package/dist/fns/export-wallets/export-wallets.schema.input.json +54 -0
  123. package/dist/fns/export-wallets/export-wallets.schema.output.json +8 -0
  124. package/dist/fns/get-export/get-export.browser.cjs +45 -0
  125. package/dist/fns/get-export/get-export.browser.js +24 -0
  126. package/dist/fns/get-export/get-export.cjs +49 -0
  127. package/dist/fns/get-export/get-export.d.ts +9 -0
  128. package/dist/{txs/query/query.enums.browser.cjs → fns/get-export/get-export.enums.browser.cjs} +3 -3
  129. package/dist/fns/get-export/get-export.enums.browser.js +0 -0
  130. package/dist/{txs/query/query.enums.cjs → fns/get-export/get-export.enums.cjs} +3 -3
  131. package/dist/fns/get-export/get-export.enums.d.ts +22 -0
  132. package/dist/fns/get-export/get-export.enums.js +0 -0
  133. package/dist/fns/get-export/get-export.guards.browser.cjs +36 -0
  134. package/dist/fns/get-export/get-export.guards.browser.js +16 -0
  135. package/dist/fns/get-export/get-export.guards.cjs +41 -0
  136. package/dist/fns/get-export/get-export.guards.d.ts +4 -0
  137. package/dist/fns/get-export/get-export.guards.js +16 -0
  138. package/dist/fns/get-export/get-export.js +24 -0
  139. package/dist/fns/get-export/get-export.schema.input.json +27 -0
  140. package/dist/fns/get-export/get-export.schema.output.json +8 -0
  141. package/dist/fns/index.browser.cjs +65 -0
  142. package/dist/fns/index.browser.js +65 -0
  143. package/dist/fns/index.cjs +86 -0
  144. package/dist/fns/index.d.ts +45 -1
  145. package/dist/fns/index.js +65 -0
  146. package/dist/fns/list-exports/list-exports.browser.cjs +51 -0
  147. package/dist/fns/list-exports/list-exports.browser.js +30 -0
  148. package/dist/fns/list-exports/list-exports.cjs +55 -0
  149. package/dist/fns/list-exports/list-exports.d.ts +10 -0
  150. package/dist/fns/list-exports/list-exports.enums.browser.cjs +17 -0
  151. package/dist/fns/list-exports/list-exports.enums.browser.js +0 -0
  152. package/dist/fns/list-exports/list-exports.enums.cjs +17 -0
  153. package/dist/fns/list-exports/list-exports.enums.d.ts +24 -0
  154. package/dist/fns/list-exports/list-exports.enums.js +0 -0
  155. package/dist/fns/list-exports/list-exports.guards.browser.cjs +36 -0
  156. package/dist/fns/list-exports/list-exports.guards.browser.js +16 -0
  157. package/dist/fns/list-exports/list-exports.guards.cjs +41 -0
  158. package/dist/fns/list-exports/list-exports.guards.d.ts +4 -0
  159. package/dist/fns/list-exports/list-exports.guards.js +16 -0
  160. package/dist/fns/list-exports/list-exports.js +30 -0
  161. package/dist/fns/list-exports/list-exports.schema.input.json +22 -0
  162. package/dist/fns/list-exports/list-exports.schema.output.json +8 -0
  163. package/dist/lib/errors.browser.cjs +44 -22
  164. package/dist/lib/errors.browser.js +44 -22
  165. package/dist/lib/errors.cjs +44 -22
  166. package/dist/lib/errors.d.ts +6 -6
  167. package/dist/lib/errors.js +44 -22
  168. package/dist/lib/validator.browser.cjs +286 -90
  169. package/dist/lib/validator.browser.js +286 -90
  170. package/dist/lib/validator.cjs +286 -90
  171. package/dist/lib/validator.d.ts +32 -13
  172. package/dist/lib/validator.js +286 -90
  173. package/dist/txs/aggregate-transfer-many/aggregate-transfer-many.schema.input.json +1 -0
  174. package/dist/txs/create-access-token/create-access-token.schema.input.json +1 -0
  175. package/dist/txs/create-transfer-group/create-transfer-group.schema.input.json +0 -1
  176. package/dist/txs/export-balance-history/export-balance-history.enums.browser.cjs +17 -0
  177. package/dist/txs/export-balance-history/export-balance-history.enums.browser.js +0 -0
  178. package/dist/txs/export-balance-history/export-balance-history.enums.cjs +17 -0
  179. package/dist/txs/export-balance-history/export-balance-history.enums.d.ts +22 -0
  180. package/dist/txs/export-balance-history/export-balance-history.enums.js +0 -0
  181. package/dist/txs/export-balance-history/export-balance-history.schema.input.json +38 -0
  182. package/dist/txs/export-balance-history/export-balance-history.schema.output.json +14 -0
  183. package/dist/txs/export-token-many/export-token-many.enums.browser.cjs +17 -0
  184. package/dist/txs/export-token-many/export-token-many.enums.browser.js +0 -0
  185. package/dist/txs/export-token-many/export-token-many.enums.cjs +17 -0
  186. package/dist/txs/export-token-many/export-token-many.enums.d.ts +9 -0
  187. package/dist/txs/export-token-many/export-token-many.enums.js +0 -0
  188. package/dist/txs/export-token-many/export-token-many.schema.input.json +21 -0
  189. package/dist/txs/export-token-many/export-token-many.schema.output.json +14 -0
  190. package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.cjs +17 -0
  191. package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.browser.js +0 -0
  192. package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.cjs +17 -0
  193. package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.d.ts +9 -0
  194. package/dist/txs/export-transfer-group-many/export-transfer-group-many.enums.js +0 -0
  195. package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.input.json +21 -0
  196. package/dist/txs/export-transfer-group-many/export-transfer-group-many.schema.output.json +14 -0
  197. package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.cjs +17 -0
  198. package/dist/txs/export-transfer-many/export-transfer-many.enums.browser.js +0 -0
  199. package/dist/txs/export-transfer-many/export-transfer-many.enums.cjs +17 -0
  200. package/dist/txs/export-transfer-many/export-transfer-many.enums.d.ts +11 -0
  201. package/dist/txs/export-transfer-many/export-transfer-many.enums.js +0 -0
  202. package/dist/txs/export-transfer-many/export-transfer-many.schema.input.json +40 -0
  203. package/dist/txs/export-transfer-many/export-transfer-many.schema.output.json +14 -0
  204. package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.cjs +17 -0
  205. package/dist/txs/export-wallet-many/export-wallet-many.enums.browser.js +0 -0
  206. package/dist/txs/export-wallet-many/export-wallet-many.enums.cjs +17 -0
  207. package/dist/txs/export-wallet-many/export-wallet-many.enums.d.ts +9 -0
  208. package/dist/txs/export-wallet-many/export-wallet-many.enums.js +0 -0
  209. package/dist/txs/export-wallet-many/export-wallet-many.schema.input.json +21 -0
  210. package/dist/txs/export-wallet-many/export-wallet-many.schema.output.json +14 -0
  211. package/dist/txs/find-transfer-group-many/find-transfer-group-many.enums.d.ts +1 -1
  212. package/dist/txs/find-transfer-group-many/find-transfer-group-many.schema.input.json +0 -1
  213. package/dist/txs/find-transfer-many/find-transfer-many.enums.d.ts +1 -1
  214. package/dist/txs/find-transfer-many/find-transfer-many.schema.input.json +0 -1
  215. package/dist/txs/get-balance-history/get-balance-history.enums.d.ts +1 -1
  216. package/dist/txs/get-balance-history/get-balance-history.schema.input.json +1 -0
  217. package/dist/txs/get-export/get-export.enums.browser.cjs +17 -0
  218. package/dist/txs/get-export/get-export.enums.browser.js +0 -0
  219. package/dist/txs/get-export/get-export.enums.cjs +17 -0
  220. package/dist/txs/get-export/get-export.enums.d.ts +82 -0
  221. package/dist/txs/get-export/get-export.enums.js +0 -0
  222. package/dist/txs/get-export/get-export.schema.input.json +51 -0
  223. package/dist/txs/get-export/get-export.schema.output.json +70 -0
  224. package/dist/txs/get-wallet-many/get-wallet-many.enums.d.ts +1 -1
  225. package/dist/txs/get-wallet-many/get-wallet-many.schema.input.json +1 -0
  226. package/dist/txs/healthcheck/healthcheck.schema.input.json +0 -1
  227. package/dist/txs/index.browser.cjs +63 -58
  228. package/dist/txs/index.browser.js +61 -62
  229. package/dist/txs/index.cjs +77 -75
  230. package/dist/txs/index.d.ts +37 -33
  231. package/dist/txs/index.js +61 -62
  232. package/dist/txs/list-export-many/list-export-many.enums.browser.cjs +17 -0
  233. package/dist/txs/list-export-many/list-export-many.enums.browser.js +0 -0
  234. package/dist/txs/list-export-many/list-export-many.enums.cjs +17 -0
  235. package/dist/txs/list-export-many/list-export-many.enums.d.ts +23 -0
  236. package/dist/txs/list-export-many/list-export-many.enums.js +0 -0
  237. package/dist/txs/list-export-many/list-export-many.schema.input.json +76 -0
  238. package/dist/txs/list-export-many/list-export-many.schema.output.json +18 -0
  239. package/dist/txs/reverse-transfer-group/reverse-transfer-group.enums.d.ts +1 -1
  240. package/dist/txs/reverse-transfer-group/reverse-transfer-group.schema.input.json +1 -0
  241. package/dist/txs/update-token/update-token.enums.d.ts +1 -1
  242. package/dist/txs/update-token/update-token.schema.input.json +1 -1
  243. package/dist/txs/update-transfer/update-transfer.enums.d.ts +1 -1
  244. package/dist/txs/update-transfer/update-transfer.schema.input.json +1 -1
  245. package/dist/txs/update-transfer-group/update-transfer-group.enums.d.ts +1 -1
  246. package/dist/txs/update-transfer-group/update-transfer-group.schema.input.json +1 -1
  247. package/dist/txs/update-transfer-group-many/update-transfer-group-many.enums.d.ts +1 -1
  248. package/dist/txs/update-transfer-group-many/update-transfer-group-many.schema.input.json +1 -1
  249. package/dist/txs/update-wallet/update-wallet.enums.d.ts +1 -1
  250. package/dist/txs/update-wallet/update-wallet.schema.input.json +1 -1
  251. package/dist/types/index.d.ts +2260 -1333
  252. package/dist/wapi-client-web.iife.js +6 -6
  253. package/dist/wapi-client.iife.js +6 -6
  254. package/package.json +1 -1
  255. package/dist/txs/export-database/export-database.enums.d.ts +0 -20
  256. package/dist/txs/export-database/export-database.schema.input.json +0 -15
  257. package/dist/txs/export-database/export-database.schema.output.json +0 -13
  258. package/dist/txs/get-database-export-progress/get-database-export-progress.enums.browser.cjs +0 -17
  259. package/dist/txs/get-database-export-progress/get-database-export-progress.enums.cjs +0 -17
  260. package/dist/txs/get-database-export-progress/get-database-export-progress.enums.d.ts +0 -38
  261. package/dist/txs/get-database-export-progress/get-database-export-progress.schema.input.json +0 -31
  262. package/dist/txs/get-database-export-progress/get-database-export-progress.schema.output.json +0 -27
  263. package/dist/txs/get-database-import-progress/get-database-import-progress.enums.browser.cjs +0 -17
  264. package/dist/txs/get-database-import-progress/get-database-import-progress.enums.cjs +0 -17
  265. package/dist/txs/get-database-import-progress/get-database-import-progress.enums.d.ts +0 -33
  266. package/dist/txs/get-database-import-progress/get-database-import-progress.schema.input.json +0 -22
  267. package/dist/txs/get-database-import-progress/get-database-import-progress.schema.output.json +0 -27
  268. package/dist/txs/import-database/import-database.enums.d.ts +0 -17
  269. package/dist/txs/import-database/import-database.schema.input.json +0 -14
  270. package/dist/txs/import-database/import-database.schema.output.json +0 -13
  271. package/dist/txs/list-database-exports/list-database-exports.enums.browser.cjs +0 -17
  272. package/dist/txs/list-database-exports/list-database-exports.enums.cjs +0 -17
  273. package/dist/txs/list-database-exports/list-database-exports.enums.d.ts +0 -26
  274. package/dist/txs/list-database-exports/list-database-exports.schema.input.json +0 -10
  275. package/dist/txs/list-database-exports/list-database-exports.schema.output.json +0 -33
  276. package/dist/txs/query/query.enums.d.ts +0 -30
  277. package/dist/txs/query/query.schema.input.json +0 -31
  278. package/dist/txs/query/query.schema.output.json +0 -15
  279. /package/dist/{txs/export-database/export-database.enums.browser.js → db/wapi-statistic/wapi-statistic.enums.browser.js} +0 -0
  280. /package/dist/{txs/export-database/export-database.enums.js → db/wapi-statistic/wapi-statistic.enums.js} +0 -0
  281. /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.browser.js → fns/export-balance-history/export-balance-history.enums.browser.js} +0 -0
  282. /package/dist/{txs/get-database-export-progress/get-database-export-progress.enums.js → fns/export-balance-history/export-balance-history.enums.js} +0 -0
  283. /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.browser.js → fns/export-tokens/export-tokens.enums.browser.js} +0 -0
  284. /package/dist/{txs/get-database-import-progress/get-database-import-progress.enums.js → fns/export-tokens/export-tokens.enums.js} +0 -0
  285. /package/dist/{txs/import-database/import-database.enums.browser.js → fns/export-transfer-groups/export-transfer-groups.enums.browser.js} +0 -0
  286. /package/dist/{txs/import-database/import-database.enums.js → fns/export-transfer-groups/export-transfer-groups.enums.js} +0 -0
  287. /package/dist/{txs/list-database-exports/list-database-exports.enums.browser.js → fns/export-transfers/export-transfers.enums.browser.js} +0 -0
  288. /package/dist/{txs/list-database-exports/list-database-exports.enums.js → fns/export-transfers/export-transfers.enums.js} +0 -0
  289. /package/dist/{txs/query/query.enums.browser.js → fns/export-wallets/export-wallets.enums.browser.js} +0 -0
  290. /package/dist/{txs/query/query.enums.js → fns/export-wallets/export-wallets.enums.js} +0 -0
package/dist/client.d.ts CHANGED
@@ -3,51 +3,62 @@ import { ClientHooks, ISocketId } from './api/base-client';
3
3
  import { AggregateQueryBuilder, UpdateQueryBuilder, ReverseQueryBuilder, QueryBuilder } from './lib/query-builder';
4
4
  import { StreamPromise } from './lib/stream-promise';
5
5
  import { StreamPromiseInput } from './lib/stream-promise-input';
6
- import { AggregateTransfersFnFields, AggregateTransfersFnGroupFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields } from './fns/aggregate-transfers/aggregate-transfers';
7
- import { AggregateTransfersFnOutput, AggregateTransfersFnInput, AggregateTransfersFnOptions } from './fns/aggregate-transfers/aggregate-transfers.enums';
8
- import { CreateAccessTokenFnInput, CreateAccessTokenFnOptions, CreateAccessTokenFnOutput } from './fns/create-access-token/create-access-token.enums';
9
- import { CreateContractFnInput, CreateContractFnOptions, CreateContractFnOutput } from './fns/create-contract/create-contract.enums';
10
- import { CreateDepositFnInput, CreateDepositFnOptions, CreateDepositFnOutput } from './fns/create-deposit/create-deposit.enums';
11
- import { CreateExchangeFnInput, CreateExchangeFnOptions, CreateExchangeFnOutput } from './fns/create-exchange/create-exchange.enums';
12
- import { CreateTokenFnInput, CreateTokenFnOptions, CreateTokenFnOutput } from './fns/create-token/create-token.enums';
13
- import { CreateTransferGroupFnInput, CreateTransferGroupFnOptions, CreateTransferGroupFnOutput } from './fns/create-transfer-group/create-transfer-group.enums';
14
- import { CreateTransferFnInput, CreateTransferFnOptions, CreateTransferFnOutput } from './fns/create-transfer/create-transfer.enums';
15
- import { CreateTransfersFnInput, CreateTransfersFnOptions, CreateTransfersFnOutput } from './fns/create-transfers/create-transfers.enums';
16
- import { CreateWalletFnInput, CreateWalletFnOptions, CreateWalletFnOutput } from './fns/create-wallet/create-wallet.enums';
17
- import { CreateWithdrawalFnInput, CreateWithdrawalFnOptions, CreateWithdrawalFnOutput } from './fns/create-withdrawal/create-withdrawal.enums';
18
- import { FindBalancesFnFields, FindBalancesFnStringFields, FindBalancesFnMetadataFields, FindBalancesFnResultFields } from './fns/find-balances/find-balances';
19
- import { FindBalancesFnOptions, FindBalancesFnOutput, FindBalancesFnInput } from './fns/find-balances/find-balances.enums';
20
- import { FindTokensFnFields, FindTokensFnStringFields, FindTokensFnMetadataFields, FindTokensFnResultFields } from './fns/find-tokens/find-tokens';
21
- import { FindTokensFnOptions, FindTokensFnOutput, FindTokensFnInput } from './fns/find-tokens/find-tokens.enums';
22
- import { FindTransferGroupsFnFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnResultFields } from './fns/find-transfer-groups/find-transfer-groups';
23
- import { FindTransferGroupsFnOptions, FindTransferGroupsFnOutput, FindTransferGroupsFnInput } from './fns/find-transfer-groups/find-transfer-groups.enums';
24
- import { FindTransfersFnFields, FindTransfersFnStringFields, FindTransfersFnMetadataFields, FindTransfersFnResultFields } from './fns/find-transfers/find-transfers';
25
- import { FindTransfersFnOptions, FindTransfersFnOutput, FindTransfersFnInput } from './fns/find-transfers/find-transfers.enums';
26
- import { FindWalletsFnFields, FindWalletsFnStringFields, FindWalletsFnMetadataFields, FindWalletsFnResultFields } from './fns/find-wallets/find-wallets';
27
- import { FindWalletsFnOptions, FindWalletsFnOutput, FindWalletsFnInput } from './fns/find-wallets/find-wallets.enums';
28
- import { GetBalanceHistoryFnInput, GetBalanceHistoryFnOptions, GetBalanceHistoryFnOutput } from './fns/get-balance-history/get-balance-history.enums';
29
- import { GetBalanceFnInput, GetBalanceFnOptions, GetBalanceFnOutput } from './fns/get-balance/get-balance.enums';
30
- import { GetFlagsFnInput, GetFlagsFnOptions, GetFlagsFnOutput } from './fns/get-flags/get-flags.enums';
31
- import { GetStatisticsFnInput, GetStatisticsFnOptions, GetStatisticsFnOutput } from './fns/get-statistics/get-statistics.enums';
32
- import { GetTokenFnInput, GetTokenFnOptions, GetTokenFnOutput } from './fns/get-token/get-token.enums';
33
- import { GetTransferGroupFnInput, GetTransferGroupFnOptions, GetTransferGroupFnOutput } from './fns/get-transfer-group/get-transfer-group.enums';
34
- import { GetTransferFnInput, GetTransferFnOptions, GetTransferFnOutput } from './fns/get-transfer/get-transfer.enums';
35
- import { GetWalletFnInput, GetWalletFnOptions, GetWalletFnOutput } from './fns/get-wallet/get-wallet.enums';
36
- import { HealthcheckFnInput, HealthcheckFnOptions, HealthcheckFnOutput } from './fns/healthcheck/healthcheck.enums';
37
- import { ImportDataFnOptions, ImportDataFnOutput, ImportDataFnStreamChunk, ImportDataFnInput } from './fns/import-data/import-data.enums';
38
- import { ReverseTransferGroupFnInput, ReverseTransferGroupFnOptions, ReverseTransferGroupFnOutput } from './fns/reverse-transfer-group/reverse-transfer-group.enums';
39
- import { ReverseTransferFnInput, ReverseTransferFnOptions, ReverseTransferFnOutput } from './fns/reverse-transfer/reverse-transfer.enums';
40
- import { ReverseTransfersFnFields, ReverseTransfersFnStringFields, ReverseTransfersFnMetadataFields } from './fns/reverse-transfers/reverse-transfers';
41
- import { ReverseTransfersFnModifications, ReverseTransfersFnOutput, ReverseTransfersFnInput, ReverseTransfersFnOptions } from './fns/reverse-transfers/reverse-transfers.enums';
42
- import { SetFlagsFnInput, SetFlagsFnOptions, SetFlagsFnOutput } from './fns/set-flags/set-flags.enums';
43
- import { UpdateTokenFnInput, UpdateTokenFnOptions, UpdateTokenFnOutput } from './fns/update-token/update-token.enums';
44
- import { UpdateTransferGroupFnInput, UpdateTransferGroupFnOptions, UpdateTransferGroupFnOutput } from './fns/update-transfer-group/update-transfer-group.enums';
45
- import { UpdateTransferGroupsFnFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnResultFields } from './fns/update-transfer-groups/update-transfer-groups';
46
- import { UpdateTransferGroupsFnUpdateFields, UpdateTransferGroupsFnOutput, UpdateTransferGroupsFnInput, UpdateTransferGroupsFnOptions } from './fns/update-transfer-groups/update-transfer-groups.enums';
47
- import { UpdateTransferFnInput, UpdateTransferFnOptions, UpdateTransferFnOutput } from './fns/update-transfer/update-transfer.enums';
48
- import { UpdateTransfersFnFields, UpdateTransfersFnStringFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnResultFields } from './fns/update-transfers/update-transfers';
49
- import { UpdateTransfersFnUpdateFields, UpdateTransfersFnOutput, UpdateTransfersFnInput, UpdateTransfersFnOptions } from './fns/update-transfers/update-transfers.enums';
50
- import { UpdateWalletFnInput, UpdateWalletFnOptions, UpdateWalletFnOutput } from './fns/update-wallet/update-wallet.enums';
6
+ import { AggregateTransfersFnInput, AggregateTransfersFnOutput, AggregateTransfersFnOptions } from './fns/aggregate-transfers/aggregate-transfers.enums';
7
+ import { AggregateTransfersFnFields, AggregateTransfersFnMetadataFields, AggregateTransfersFnStringFields, AggregateTransfersFnGroupFields } from './fns/aggregate-transfers/aggregate-transfers';
8
+ import { CreateAccessTokenFnInput, CreateAccessTokenFnOutput, CreateAccessTokenFnOptions } from './fns/create-access-token/create-access-token.enums';
9
+ import { CreateContractFnInput, CreateContractFnOutput, CreateContractFnOptions } from './fns/create-contract/create-contract.enums';
10
+ import { CreateDepositFnInput, CreateDepositFnOutput, CreateDepositFnOptions } from './fns/create-deposit/create-deposit.enums';
11
+ import { CreateExchangeFnInput, CreateExchangeFnOutput, CreateExchangeFnOptions } from './fns/create-exchange/create-exchange.enums';
12
+ import { CreateTokenFnInput, CreateTokenFnOutput, CreateTokenFnOptions } from './fns/create-token/create-token.enums';
13
+ import { CreateTransferFnInput, CreateTransferFnOutput, CreateTransferFnOptions } from './fns/create-transfer/create-transfer.enums';
14
+ import { CreateTransferGroupFnInput, CreateTransferGroupFnOutput, CreateTransferGroupFnOptions } from './fns/create-transfer-group/create-transfer-group.enums';
15
+ import { CreateTransfersFnInput, CreateTransfersFnOutput, CreateTransfersFnOptions } from './fns/create-transfers/create-transfers.enums';
16
+ import { CreateWalletFnInput, CreateWalletFnOutput, CreateWalletFnOptions } from './fns/create-wallet/create-wallet.enums';
17
+ import { CreateWithdrawalFnInput, CreateWithdrawalFnOutput, CreateWithdrawalFnOptions } from './fns/create-withdrawal/create-withdrawal.enums';
18
+ import { ExportBalanceHistoryFnInput, ExportBalanceHistoryFnOutput, ExportBalanceHistoryFnOptions } from './fns/export-balance-history/export-balance-history.enums';
19
+ import { ExportTokensFnInput, ExportTokensFnOutput, ExportTokensFnOptions } from './fns/export-tokens/export-tokens.enums';
20
+ import { ExportTokensFnFields, ExportTokensFnMetadataFields, ExportTokensFnStringFields, ExportTokensFnResultFields } from './fns/export-tokens/export-tokens';
21
+ import { ExportTransferGroupsFnInput, ExportTransferGroupsFnOutput, ExportTransferGroupsFnOptions } from './fns/export-transfer-groups/export-transfer-groups.enums';
22
+ import { ExportTransferGroupsFnFields, ExportTransferGroupsFnMetadataFields, ExportTransferGroupsFnStringFields, ExportTransferGroupsFnResultFields } from './fns/export-transfer-groups/export-transfer-groups';
23
+ import { ExportTransfersFnInput, ExportTransfersFnOutput, ExportTransfersFnOptions } from './fns/export-transfers/export-transfers.enums';
24
+ import { ExportTransfersFnFields, ExportTransfersFnMetadataFields, ExportTransfersFnStringFields, ExportTransfersFnResultFields } from './fns/export-transfers/export-transfers';
25
+ import { ExportWalletsFnInput, ExportWalletsFnOutput, ExportWalletsFnOptions } from './fns/export-wallets/export-wallets.enums';
26
+ import { ExportWalletsFnFields, ExportWalletsFnMetadataFields, ExportWalletsFnStringFields, ExportWalletsFnResultFields } from './fns/export-wallets/export-wallets';
27
+ import { FindBalancesFnInput, FindBalancesFnOutput, FindBalancesFnOptions } from './fns/find-balances/find-balances.enums';
28
+ import { FindBalancesFnFields, FindBalancesFnMetadataFields, FindBalancesFnStringFields, FindBalancesFnResultFields } from './fns/find-balances/find-balances';
29
+ import { FindTokensFnInput, FindTokensFnOutput, FindTokensFnOptions } from './fns/find-tokens/find-tokens.enums';
30
+ import { FindTokensFnFields, FindTokensFnMetadataFields, FindTokensFnStringFields, FindTokensFnResultFields } from './fns/find-tokens/find-tokens';
31
+ import { FindTransferGroupsFnInput, FindTransferGroupsFnOutput, FindTransferGroupsFnOptions } from './fns/find-transfer-groups/find-transfer-groups.enums';
32
+ import { FindTransferGroupsFnFields, FindTransferGroupsFnMetadataFields, FindTransferGroupsFnStringFields, FindTransferGroupsFnResultFields } from './fns/find-transfer-groups/find-transfer-groups';
33
+ import { FindTransfersFnInput, FindTransfersFnOutput, FindTransfersFnOptions } from './fns/find-transfers/find-transfers.enums';
34
+ import { FindTransfersFnFields, FindTransfersFnMetadataFields, FindTransfersFnStringFields, FindTransfersFnResultFields } from './fns/find-transfers/find-transfers';
35
+ import { FindWalletsFnInput, FindWalletsFnOutput, FindWalletsFnOptions } from './fns/find-wallets/find-wallets.enums';
36
+ import { FindWalletsFnFields, FindWalletsFnMetadataFields, FindWalletsFnStringFields, FindWalletsFnResultFields } from './fns/find-wallets/find-wallets';
37
+ import { GetBalanceFnInput, GetBalanceFnOutput, GetBalanceFnOptions } from './fns/get-balance/get-balance.enums';
38
+ import { GetBalanceHistoryFnInput, GetBalanceHistoryFnOutput, GetBalanceHistoryFnOptions } from './fns/get-balance-history/get-balance-history.enums';
39
+ import { GetExportFnInput, GetExportFnOutput, GetExportFnOptions } from './fns/get-export/get-export.enums';
40
+ import { GetFlagsFnInput, GetFlagsFnOutput, GetFlagsFnOptions } from './fns/get-flags/get-flags.enums';
41
+ import { GetStatisticsFnInput, GetStatisticsFnOutput, GetStatisticsFnOptions } from './fns/get-statistics/get-statistics.enums';
42
+ import { GetTokenFnInput, GetTokenFnOutput, GetTokenFnOptions } from './fns/get-token/get-token.enums';
43
+ import { GetTransferFnInput, GetTransferFnOutput, GetTransferFnOptions } from './fns/get-transfer/get-transfer.enums';
44
+ import { GetTransferGroupFnInput, GetTransferGroupFnOutput, GetTransferGroupFnOptions } from './fns/get-transfer-group/get-transfer-group.enums';
45
+ import { GetWalletFnInput, GetWalletFnOutput, GetWalletFnOptions } from './fns/get-wallet/get-wallet.enums';
46
+ import { HealthcheckFnInput, HealthcheckFnOutput, HealthcheckFnOptions } from './fns/healthcheck/healthcheck.enums';
47
+ import { ImportDataFnInput, ImportDataFnOutput, ImportDataFnOptions, ImportDataFnStreamChunk } from './fns/import-data/import-data.enums';
48
+ import { ListExportsFnInput, ListExportsFnOutput, ListExportsFnOptions } from './fns/list-exports/list-exports.enums';
49
+ import { ReverseTransferFnInput, ReverseTransferFnOutput, ReverseTransferFnOptions } from './fns/reverse-transfer/reverse-transfer.enums';
50
+ import { ReverseTransferGroupFnInput, ReverseTransferGroupFnOutput, ReverseTransferGroupFnOptions } from './fns/reverse-transfer-group/reverse-transfer-group.enums';
51
+ import { ReverseTransfersFnInput, ReverseTransfersFnOutput, ReverseTransfersFnOptions, ReverseTransfersFnModifications } from './fns/reverse-transfers/reverse-transfers.enums';
52
+ import { ReverseTransfersFnFields, ReverseTransfersFnMetadataFields, ReverseTransfersFnStringFields } from './fns/reverse-transfers/reverse-transfers';
53
+ import { SetFlagsFnInput, SetFlagsFnOutput, SetFlagsFnOptions } from './fns/set-flags/set-flags.enums';
54
+ import { UpdateTokenFnInput, UpdateTokenFnOutput, UpdateTokenFnOptions } from './fns/update-token/update-token.enums';
55
+ import { UpdateTransferFnInput, UpdateTransferFnOutput, UpdateTransferFnOptions } from './fns/update-transfer/update-transfer.enums';
56
+ import { UpdateTransferGroupFnInput, UpdateTransferGroupFnOutput, UpdateTransferGroupFnOptions } from './fns/update-transfer-group/update-transfer-group.enums';
57
+ import { UpdateTransferGroupsFnInput, UpdateTransferGroupsFnOutput, UpdateTransferGroupsFnOptions, UpdateTransferGroupsFnUpdateFields } from './fns/update-transfer-groups/update-transfer-groups.enums';
58
+ import { UpdateTransferGroupsFnFields, UpdateTransferGroupsFnMetadataFields, UpdateTransferGroupsFnStringFields, UpdateTransferGroupsFnResultFields } from './fns/update-transfer-groups/update-transfer-groups';
59
+ import { UpdateTransfersFnInput, UpdateTransfersFnOutput, UpdateTransfersFnOptions, UpdateTransfersFnUpdateFields } from './fns/update-transfers/update-transfers.enums';
60
+ import { UpdateTransfersFnFields, UpdateTransfersFnMetadataFields, UpdateTransfersFnStringFields, UpdateTransfersFnResultFields } from './fns/update-transfers/update-transfers';
61
+ import { UpdateWalletFnInput, UpdateWalletFnOutput, UpdateWalletFnOptions } from './fns/update-wallet/update-wallet.enums';
51
62
  export interface ClientConfig {
52
63
  token?: number | string;
53
64
  hooks?: ClientHooks;
@@ -133,7 +144,8 @@ export declare class Client {
133
144
  *
134
145
  * ```javascript
135
146
  *
136
- * const result = await wapiClient.aggregateTransfers()
147
+ * const result = await wapiClient
148
+ * .aggregateTransfers()
137
149
  * .where({
138
150
  * type: 'deposit',
139
151
  * from_wallet: 'EUR',
@@ -142,16 +154,13 @@ export declare class Client {
142
154
  * .whereMetadata('example', 'test')
143
155
  * .sum('to.amount as amount')
144
156
  * .count()
145
- * .groupBy(
146
- * 'metadata.even as type',
147
- * 'hour',
148
- * )
157
+ * .groupBy('metadata.even as type', 'hour')
149
158
  * .options({
150
159
  * tracking_id: 'hello',
151
160
  * return_all_intervals: {
152
161
  * start_time: '2021-07-31 11:00:00',
153
- * end_time: '2021-07-31 13:00:00'
154
- * }
162
+ * end_time: '2021-07-31 13:00:00',
163
+ * },
155
164
  * });
156
165
  *
157
166
  * expect(result).toEqual({
@@ -231,7 +240,7 @@ export declare class Client {
231
240
  * token_foreign: 'EUR',
232
241
  * },
233
242
  * expiresIn: 60,
234
- * }
243
+ * },
235
244
  * });
236
245
  *
237
246
  * ```
@@ -279,25 +288,28 @@ export declare class Client {
279
288
  *
280
289
  * ```javascript
281
290
  *
282
- * const result = await wapiClient.createDeposit({
283
- * identifier: 'mycustomId',
284
- * token: 'ForeignForToken',
285
- * wallet: 'ForeignForWallet',
286
- * amount: 10.01,
287
- * metadata: {
288
- * customJsonBlob: true,
291
+ * const result = await wapiClient.createDeposit(
292
+ * {
293
+ * identifier: 'mycustomId',
294
+ * token: 'ForeignForToken',
295
+ * wallet: 'ForeignForWallet',
296
+ * amount: 10.01,
297
+ * metadata: {
298
+ * customJsonBlob: true,
299
+ * },
300
+ * status: 'finished',
301
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
289
302
  * },
290
- * status: 'finished',
291
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
292
- * }, {
293
- * tracking_id: 'mylogId',
294
- * // transaction_id: Transaction.identifier, // created transaction identifier
295
- * create_wallet_if_not_exists: true,
296
- * return_balance: true,
297
- * });
303
+ * {
304
+ * tracking_id: 'mylogId',
305
+ * // transaction_id: Transaction.identifier, // created transaction identifier
306
+ * create_wallet_if_not_exists: true,
307
+ * return_balance: true,
308
+ * },
309
+ * );
298
310
  *
299
311
  * expect(result).toEqual({
300
- * transfer: jasmine.objectContaining({
312
+ * transfer: expect.objectContaining({
301
313
  * identifier: 'mycustomId',
302
314
  * token_foreign: 'ForeignForToken',
303
315
  * to_wallet_foreign: 'ForeignForWallet',
@@ -308,7 +320,7 @@ export declare class Client {
308
320
  * status: 'finished',
309
321
  * // ... other fields
310
322
  * }),
311
- * to_balance: jasmine.objectContaining({
323
+ * to_balance: expect.objectContaining({
312
324
  * token_foreign: 'ForeignForToken',
313
325
  * wallet_foreign: 'ForeignForWallet',
314
326
  * pending_amount: 0,
@@ -333,32 +345,35 @@ export declare class Client {
333
345
  *
334
346
  * ```javascript
335
347
  *
336
- * const result = await wapiClient.createExchange({
337
- * identifier: 'exchange',
338
- * from_identifier: 'exchange1',
339
- * from_wallet: WALLETS.withEURFunds0.foreign,
340
- * from_token: 'EUR',
341
- * from_amount: 10,
342
- * to_identifier: 'exchange2',
343
- * to_token: 'USD',
344
- * to_wallet: WALLETS.withUSDFunds0.foreign,
345
- * to_amount: 20,
346
- * status: 'finished',
347
- * metadata: {
348
- * exchangeRate: 2,
348
+ * const result = await wapiClient.createExchange(
349
+ * {
350
+ * identifier: 'exchange',
351
+ * from_identifier: 'exchange1',
352
+ * from_wallet: WALLETS.withEURFunds0.foreign,
353
+ * from_token: 'EUR',
354
+ * from_amount: 10,
355
+ * to_identifier: 'exchange2',
356
+ * to_token: 'USD',
357
+ * to_wallet: WALLETS.withUSDFunds0.foreign,
358
+ * to_amount: 20,
359
+ * status: 'finished',
360
+ * metadata: {
361
+ * exchangeRate: 2,
362
+ * },
349
363
  * },
350
- * }, {
351
- * tracking_id: 'mylogId',
352
- * // transaction_id: Transaction.identifier, // created transaction identifier
353
- * });
364
+ * {
365
+ * tracking_id: 'mylogId',
366
+ * // transaction_id: Transaction.identifier, // created transaction identifier
367
+ * },
368
+ * );
354
369
  * expect(result).toEqual({
355
- * transfer_group: jasmine.objectContaining({
370
+ * transfer_group: expect.objectContaining({
356
371
  * identifier: 'exchange',
357
372
  * status: 'closed',
358
373
  * transfer_status: 'finished',
359
374
  * }),
360
375
  * transfers: [
361
- * jasmine.objectContaining({
376
+ * expect.objectContaining({
362
377
  * status: 'finished',
363
378
  * amount: 10,
364
379
  * from_wallet_id: WALLETS.withEURFunds0.id,
@@ -369,7 +384,7 @@ export declare class Client {
369
384
  * },
370
385
  * identifier: 'exchange1',
371
386
  * }),
372
- * jasmine.objectContaining({
387
+ * expect.objectContaining({
373
388
  * status: 'finished',
374
389
  * amount: 20,
375
390
  * to_wallet_id: WALLETS.withEURFunds0.id,
@@ -415,14 +430,14 @@ export declare class Client {
415
430
  * );
416
431
  *
417
432
  * expect(result).toEqual({
418
- * token: jasmine.objectContaining({
433
+ * token: expect.objectContaining({
419
434
  * foreign: 'EURO',
420
435
  * public: true,
421
436
  * metadata: {
422
437
  * customMetadata: true,
423
438
  * },
424
439
  * }),
425
- * wallet: jasmine.objectContaining({
440
+ * wallet: expect.objectContaining({
426
441
  * default_allow_positive: false,
427
442
  * default_allow_negative: true,
428
443
  * foreign: 'EURO',
@@ -445,26 +460,29 @@ export declare class Client {
445
460
  *
446
461
  * ```javascript
447
462
  *
448
- * const result = await wapiClient.createTransfer({
449
- * identifier: 'mynewtransferid',
450
- * token: 'EUR',
451
- * from_wallet: WALLETS.withEURFunds0.foreign,
452
- * to_wallet: 'foreignForMbyExistingWallet',
453
- * amount: 10.01,
454
- * metadata: {
455
- * customJSON: true,
463
+ * const result = await wapiClient.createTransfer(
464
+ * {
465
+ * identifier: 'mynewtransferid',
466
+ * token: 'EUR',
467
+ * from_wallet: WALLETS.withEURFunds0.foreign,
468
+ * to_wallet: 'foreignForMbyExistingWallet',
469
+ * amount: 10.01,
470
+ * metadata: {
471
+ * customJSON: true,
472
+ * },
473
+ * type: 'transfer',
474
+ * status: 'pending',
475
+ * // transfer_group: TransferGroup.identifier,
456
476
  * },
457
- * type: 'transfer',
458
- * status: 'pending',
459
- * // transfer_group: TransferGroup.identifier,
460
- * }, {
461
- * create_to_wallet_if_not_exists: true,
462
- * tracking_id: 'mylogId',
463
- * // transaction_id: Transaction.identifier, // created transaction identifier
464
- * });
477
+ * {
478
+ * create_to_wallet_if_not_exists: true,
479
+ * tracking_id: 'mylogId',
480
+ * // transaction_id: Transaction.identifier, // created transaction identifier
481
+ * },
482
+ * );
465
483
  *
466
484
  * expect(result).toEqual({
467
- * transfer: jasmine.objectContaining({
485
+ * transfer: expect.objectContaining({
468
486
  * identifier: 'mynewtransferid',
469
487
  * token_foreign: 'EUR',
470
488
  * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
@@ -481,12 +499,12 @@ export declare class Client {
481
499
  *
482
500
  * ```
483
501
  *
484
- * @param {CreateTransferFnInput} [input]
502
+ * @param {CreateTransferFnInput} input
485
503
  * @param {CreateTransferFnOptions} [options]
486
504
  * @returns {StreamPromise<CreateTransferFnOutput>}
487
505
  *
488
506
  */
489
- createTransfer(input?: CreateTransferFnInput, options?: CreateTransferFnOptions): StreamPromise<CreateTransferFnOutput>;
507
+ createTransfer(input: CreateTransferFnInput, options?: CreateTransferFnOptions): StreamPromise<CreateTransferFnOutput>;
490
508
  /**
491
509
  *
492
510
  * Create a TransferGroup entity to group transfers into a logical or status locked group.
@@ -496,69 +514,75 @@ export declare class Client {
496
514
  *
497
515
  * ```javascript
498
516
  *
499
- * const result = await wapiClient.createTransferGroup({
500
- * identifier: 'mytgIdentifier',
501
- * status: 'closed',
502
- * metadata: {
503
- * customJSON: true,
504
- * },
505
- * transfer_status: 'finished',
506
- * // transfer_group: ParentTransferGroup.identifier,
507
- * children: [
508
- * {
509
- * identifier: 'txIdentifier',
510
- * from_wallet: WALLETS.withEURFunds0.foreign,
511
- * to_wallet: 'newWalletForeign',
512
- * token: 'EUR',
513
- * amount: 10,
514
- * type: 'transfer',
515
- * latest_control_hash: WALLETS.withEURFunds0.latest_control_hash,
516
- * },
517
- * {
518
- * identifier: 'childTgTransferId',
519
- * from_wallet: 'newWalletForeign',
520
- * to_wallet: WALLETS.withEURFunds0.foreign,
521
- * token: 'EUR',
522
- * amount: 9,
523
- * type: 'transfer',
524
- * latest_control_hash: null, // not needed because we just transferred money there,
525
- * },
526
- * ],
527
- * }, {
528
- * validate_final_balance_only: true,
529
- * create_to_wallet_if_not_exists: true,
530
- * tracking_id: 'mylogId',
531
- * // transaction_id: Transaction.identifier, // created transaction identifier
532
- * });
533
- *
534
- * expect(result).toEqual(jasmine.objectContaining({
535
- * transfer_group: jasmine.objectContaining({
517
+ * const result = await wapiClient.createTransferGroup(
518
+ * {
536
519
  * identifier: 'mytgIdentifier',
537
520
  * status: 'closed',
538
521
  * metadata: {
539
522
  * customJSON: true,
540
523
  * },
541
524
  * transfer_status: 'finished',
542
- * }),
543
- * transfers: [
544
- * jasmine.objectContaining({
545
- * identifier: 'txIdentifier',
546
- * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
547
- * to_wallet_foreign: 'newWalletForeign',
548
- * token_foreign: 'EUR',
549
- * amount: 10,
550
- * type: 'transfer',
551
- * }),
552
- * jasmine.objectContaining({
553
- * identifier: 'childTgTransferId',
554
- * from_wallet_foreign: 'newWalletForeign',
555
- * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
556
- * token_foreign: 'EUR',
557
- * amount: 9,
558
- * type: 'transfer',
525
+ * // transfer_group: ParentTransferGroup.identifier,
526
+ * children: [
527
+ * {
528
+ * identifier: 'txIdentifier',
529
+ * from_wallet: WALLETS.withEURFunds0.foreign,
530
+ * to_wallet: 'newWalletForeign',
531
+ * token: 'EUR',
532
+ * amount: 10,
533
+ * type: 'transfer',
534
+ * latest_control_hash:
535
+ * WALLETS.withEURFunds0.latest_control_hash,
536
+ * },
537
+ * {
538
+ * identifier: 'childTgTransferId',
539
+ * from_wallet: 'newWalletForeign',
540
+ * to_wallet: WALLETS.withEURFunds0.foreign,
541
+ * token: 'EUR',
542
+ * amount: 9,
543
+ * type: 'transfer',
544
+ * latest_control_hash: null, // not needed because we just transferred money there,
545
+ * },
546
+ * ],
547
+ * },
548
+ * {
549
+ * validate_final_balance_only: true,
550
+ * create_to_wallet_if_not_exists: true,
551
+ * tracking_id: 'mylogId',
552
+ * // transaction_id: Transaction.identifier, // created transaction identifier
553
+ * },
554
+ * );
555
+ *
556
+ * expect(result).toEqual(
557
+ * expect.objectContaining({
558
+ * transfer_group: expect.objectContaining({
559
+ * identifier: 'mytgIdentifier',
560
+ * status: 'closed',
561
+ * metadata: {
562
+ * customJSON: true,
563
+ * },
564
+ * transfer_status: 'finished',
559
565
  * }),
560
- * ],
561
- * }));
566
+ * transfers: [
567
+ * expect.objectContaining({
568
+ * identifier: 'txIdentifier',
569
+ * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
570
+ * to_wallet_foreign: 'newWalletForeign',
571
+ * token_foreign: 'EUR',
572
+ * amount: 10,
573
+ * type: 'transfer',
574
+ * }),
575
+ * expect.objectContaining({
576
+ * identifier: 'childTgTransferId',
577
+ * from_wallet_foreign: 'newWalletForeign',
578
+ * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
579
+ * token_foreign: 'EUR',
580
+ * amount: 9,
581
+ * type: 'transfer',
582
+ * }),
583
+ * ],
584
+ * }),
585
+ * );
562
586
  *
563
587
  *
564
588
  * ```
@@ -576,91 +600,100 @@ export declare class Client {
576
600
  *
577
601
  * ```javascript
578
602
  *
579
- * const result = await wapiClient.createTransfers({
580
- * transfers: [{
581
- * type: 'deposit',
582
- * wallet: WALLETS.validForeign2,
583
- * token: 'EURO',
584
- * amount: 10.01,
585
- * }, {
586
- * from_wallet: WALLETS.validForeign2,
587
- * to_wallet: 'newWalletForeignMby',
588
- * token: 'EURO',
589
- * amount: 10.01,
590
- * latest_control_hash: null, // not required as we just transferred funds
591
- * }, {
592
- * type: 'withdrawal',
593
- * wallet: 'newWalletForeignMby',
594
- * token: 'EURO',
595
- * amount: 10.01,
596
- * latest_control_hash: null, // not required as we just transferred funds
597
- * }],
598
- * }, {
599
- * create_to_wallet_if_not_exists: true,
600
- * return_from_balance: true,
601
- * return_to_balance: true,
602
- * tracking_id: 'mylogId',
603
- * // transaction_id: Transaction.identifier, // created transaction identifier
604
- * });
603
+ * const result = await wapiClient.createTransfers(
604
+ * {
605
+ * transfers: [
606
+ * {
607
+ * type: 'deposit',
608
+ * wallet: WALLETS.validForeign2,
609
+ * token: 'EURO',
610
+ * amount: 10.01,
611
+ * },
612
+ * {
613
+ * from_wallet: WALLETS.validForeign2,
614
+ * to_wallet: 'newWalletForeignMby',
615
+ * token: 'EURO',
616
+ * amount: 10.01,
617
+ * latest_control_hash: null, // not required as we just transferred funds
618
+ * },
619
+ * {
620
+ * type: 'withdrawal',
621
+ * wallet: 'newWalletForeignMby',
622
+ * token: 'EURO',
623
+ * amount: 10.01,
624
+ * latest_control_hash: null, // not required as we just transferred funds
625
+ * },
626
+ * ],
627
+ * },
628
+ * {
629
+ * create_to_wallet_if_not_exists: true,
630
+ * return_from_balance: true,
631
+ * return_to_balance: true,
632
+ * tracking_id: 'mylogId',
633
+ * // transaction_id: Transaction.identifier, // created transaction identifier
634
+ * },
635
+ * );
605
636
  *
606
- * expect(result).toEqual(jasmine.objectContaining({
607
- * transfers: [
608
- * jasmine.objectContaining({
609
- * type: 'deposit',
610
- * token_foreign: 'EURO',
611
- * to_wallet_foreign: WALLETS.validForeign2,
612
- * amount: 10.01,
613
- * }),
614
- * jasmine.objectContaining({
615
- * type: 'transfer',
616
- * token_foreign: 'EURO',
617
- * from_wallet_foreign: WALLETS.validForeign2,
618
- * to_wallet_foreign: 'newWalletForeignMby',
619
- * amount: 10.01,
620
- * }),
621
- * jasmine.objectContaining({
622
- * type: 'withdrawal',
623
- * token_foreign: 'EURO',
624
- * from_wallet_foreign: 'newWalletForeignMby',
625
- * amount: 10.01,
626
- * }),
627
- * ],
628
- * // We are doing a 0 sum with 3 transactions so everything is back to 0
629
- * from_balances: [
630
- * jasmine.objectContaining({
631
- * token_foreign: 'EURO',
632
- * wallet_foreign: 'EURO',
633
- * amount: 0,
634
- * }),
635
- * jasmine.objectContaining({
636
- * token_foreign: 'EURO',
637
- * wallet_foreign: WALLETS.validForeign2,
638
- * amount: 0,
639
- * }),
640
- * jasmine.objectContaining({
641
- * token_foreign: 'EURO',
642
- * wallet_foreign: 'newWalletForeignMby',
643
- * amount: 0,
644
- * }),
645
- * ],
646
- * to_balances: [
647
- * jasmine.objectContaining({
648
- * token_foreign: 'EURO',
649
- * wallet_foreign: WALLETS.validForeign2,
650
- * amount: 0,
651
- * }),
652
- * jasmine.objectContaining({
653
- * token_foreign: 'EURO',
654
- * wallet_foreign: 'newWalletForeignMby',
655
- * amount: 0,
656
- * }),
657
- * jasmine.objectContaining({
658
- * token_foreign: 'EURO',
659
- * wallet_foreign: 'EURO',
660
- * amount: 0,
661
- * }),
662
- * ],
663
- * }));
637
+ * expect(result).toEqual(
638
+ * expect.objectContaining({
639
+ * transfers: [
640
+ * expect.objectContaining({
641
+ * type: 'deposit',
642
+ * token_foreign: 'EURO',
643
+ * to_wallet_foreign: WALLETS.validForeign2,
644
+ * amount: 10.01,
645
+ * }),
646
+ * expect.objectContaining({
647
+ * type: 'transfer',
648
+ * token_foreign: 'EURO',
649
+ * from_wallet_foreign: WALLETS.validForeign2,
650
+ * to_wallet_foreign: 'newWalletForeignMby',
651
+ * amount: 10.01,
652
+ * }),
653
+ * expect.objectContaining({
654
+ * type: 'withdrawal',
655
+ * token_foreign: 'EURO',
656
+ * from_wallet_foreign: 'newWalletForeignMby',
657
+ * amount: 10.01,
658
+ * }),
659
+ * ],
660
+ * // We are doing a 0 sum with 3 transactions so everything is back to 0
661
+ * from_balances: [
662
+ * expect.objectContaining({
663
+ * token_foreign: 'EURO',
664
+ * wallet_foreign: 'EURO',
665
+ * amount: 0,
666
+ * }),
667
+ * expect.objectContaining({
668
+ * token_foreign: 'EURO',
669
+ * wallet_foreign: WALLETS.validForeign2,
670
+ * amount: 0,
671
+ * }),
672
+ * expect.objectContaining({
673
+ * token_foreign: 'EURO',
674
+ * wallet_foreign: 'newWalletForeignMby',
675
+ * amount: 0,
676
+ * }),
677
+ * ],
678
+ * to_balances: [
679
+ * expect.objectContaining({
680
+ * token_foreign: 'EURO',
681
+ * wallet_foreign: WALLETS.validForeign2,
682
+ * amount: 0,
683
+ * }),
684
+ * expect.objectContaining({
685
+ * token_foreign: 'EURO',
686
+ * wallet_foreign: 'newWalletForeignMby',
687
+ * amount: 0,
688
+ * }),
689
+ * expect.objectContaining({
690
+ * token_foreign: 'EURO',
691
+ * wallet_foreign: 'EURO',
692
+ * amount: 0,
693
+ * }),
694
+ * ],
695
+ * }),
696
+ * );
664
697
  *
665
698
  *
666
699
  * ```
@@ -677,20 +710,23 @@ export declare class Client {
677
710
  *
678
711
  * ```javascript
679
712
  *
680
- * const result = await wapiClient.createWallet({
681
- * foreign: 'test-wallet-2',
682
- * name: 'Irrelevant',
683
- * metadata: {
684
- * awesome: true,
685
- * invalid: false,
713
+ * const result = await wapiClient.createWallet(
714
+ * {
715
+ * foreign: 'test-wallet-2',
716
+ * name: 'Irrelevant',
717
+ * metadata: {
718
+ * awesome: true,
719
+ * invalid: false,
720
+ * },
686
721
  * },
687
- * }, {
688
- * tracking_id: 'mylogId',
689
- * // transaction_id: Transaction.identifier, // created transaction identifier
690
- * });
722
+ * {
723
+ * tracking_id: 'mylogId',
724
+ * // transaction_id: Transaction.identifier, // created transaction identifier
725
+ * },
726
+ * );
691
727
  *
692
728
  * expect(result).toEqual({
693
- * wallet: jasmine.objectContaining({
729
+ * wallet: expect.objectContaining({
694
730
  * foreign: 'test-wallet-2',
695
731
  * name: 'Irrelevant',
696
732
  * metadata: {
@@ -716,25 +752,28 @@ export declare class Client {
716
752
  *
717
753
  * ```javascript
718
754
  *
719
- * const result = await wapiClient.createWithdrawal({
720
- * identifier: 'mycustomId',
721
- * token: 'ForeignForToken',
722
- * wallet: 'ForeignForWallet',
723
- * amount: 10.01,
724
- * metadata: {
725
- * customJsonBlob: true,
755
+ * const result = await wapiClient.createWithdrawal(
756
+ * {
757
+ * identifier: 'mycustomId',
758
+ * token: 'ForeignForToken',
759
+ * wallet: 'ForeignForWallet',
760
+ * amount: 10.01,
761
+ * metadata: {
762
+ * customJsonBlob: true,
763
+ * },
764
+ * status: 'finished',
765
+ * latest_control_hash: null,
766
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
726
767
  * },
727
- * status: 'finished',
728
- * latest_control_hash: null,
729
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
730
- * }, {
731
- * tracking_id: 'mylogId',
732
- * // transaction_id: Transaction.identifier, // created transaction identifier
733
- * return_balance: true,
734
- * });
768
+ * {
769
+ * tracking_id: 'mylogId',
770
+ * // transaction_id: Transaction.identifier, // created transaction identifier
771
+ * return_balance: true,
772
+ * },
773
+ * );
735
774
  *
736
775
  * expect(result).toEqual({
737
- * transfer: jasmine.objectContaining({
776
+ * transfer: expect.objectContaining({
738
777
  * identifier: 'mycustomId',
739
778
  * token_foreign: 'ForeignForToken',
740
779
  * from_wallet_foreign: 'ForeignForWallet',
@@ -745,7 +784,7 @@ export declare class Client {
745
784
  * status: 'finished',
746
785
  * // ... other fields
747
786
  * }),
748
- * from_balance: jasmine.objectContaining({
787
+ * from_balance: expect.objectContaining({
749
788
  * token_foreign: 'ForeignForToken',
750
789
  * wallet_foreign: 'ForeignForWallet',
751
790
  * pending_amount: 0,
@@ -763,6 +802,150 @@ export declare class Client {
763
802
  *
764
803
  */
765
804
  createWithdrawal(input: CreateWithdrawalFnInput, options?: CreateWithdrawalFnOptions): StreamPromise<CreateWithdrawalFnOutput>;
805
+ /**
806
+ *
807
+ *
808
+ *
809
+ * @param {ExportBalanceHistoryFnInput} input
810
+ * @param {ExportBalanceHistoryFnOptions} [options]
811
+ * @returns {StreamPromise<ExportBalanceHistoryFnOutput>}
812
+ *
813
+ */
814
+ exportBalanceHistory(input: ExportBalanceHistoryFnInput, options?: ExportBalanceHistoryFnOptions): StreamPromise<ExportBalanceHistoryFnOutput>;
815
+ /**
816
+ *
817
+ * Search for Tokens using either a simple filter or queryBuilder
818
+ *
819
+ *
820
+ * ```javascript
821
+ *
822
+ * const result = await wapiClient
823
+ * .exportTokens()
824
+ * .whereMetadata('meta', '>', 2)
825
+ * .where((builder) => {
826
+ * builder.where('status', 'active').orWhere('type', 'value');
827
+ * })
828
+ * .limit(5)
829
+ * .offset(0)
830
+ * .orderBy('foreign')
831
+ * .select('id', 'foreign', 'metadata', 'balance_available_balance')
832
+ * .options({
833
+ * tracking_id: 'hello',
834
+ * include_balance: true,
835
+ * });
836
+ *
837
+ * ```
838
+ *
839
+ * @param {ExportTokensFnInput} [input]
840
+ * @param {ExportTokensFnOptions} [options]
841
+ * @returns {StreamPromise<ExportTokensFnOutput>}
842
+ *
843
+ */
844
+ exportTokens(): QueryBuilder<ExportTokensFnFields, ExportTokensFnStringFields, ExportTokensFnMetadataFields, ExportTokensFnResultFields, ExportTokensFnOptions, ExportTokensFnOutput>;
845
+ exportTokens(input: ExportTokensFnInput, options?: ExportTokensFnOptions): StreamPromise<ExportTokensFnOutput>;
846
+ /**
847
+ *
848
+ * Search for TransferGroups using either a simple filter or queryBuilder
849
+ *
850
+ *
851
+ * ```javascript
852
+ *
853
+ * const result = await wapiClient
854
+ * .exportTransferGroups()
855
+ * .whereMetadata('even', true)
856
+ * .where((builder) => {
857
+ * builder.where('status', 'closed').orWhere('transfer_status', 'pending');
858
+ * })
859
+ * .limit(5)
860
+ * .offset(0)
861
+ * .orderBy('identifier')
862
+ * .select('id', 'identifier', 'metadata', 'reverses_identifier')
863
+ * .options({
864
+ * tracking_id: 'hello',
865
+ * return_transfers_count: true,
866
+ * });
867
+ *
868
+ * ```
869
+ *
870
+ * @param {ExportTransferGroupsFnInput} [input]
871
+ * @param {ExportTransferGroupsFnOptions} [options]
872
+ * @returns {StreamPromise<ExportTransferGroupsFnOutput>}
873
+ *
874
+ */
875
+ exportTransferGroups(): QueryBuilder<ExportTransferGroupsFnFields, ExportTransferGroupsFnStringFields, ExportTransferGroupsFnMetadataFields, ExportTransferGroupsFnResultFields, ExportTransferGroupsFnOptions, ExportTransferGroupsFnOutput>;
876
+ exportTransferGroups(input: ExportTransferGroupsFnInput, options?: ExportTransferGroupsFnOptions): StreamPromise<ExportTransferGroupsFnOutput>;
877
+ /**
878
+ *
879
+ * Search for Transfers using either a simple filter or queryBuilder
880
+ *
881
+ *
882
+ * ```javascript
883
+ *
884
+ * const result = await wapiClient
885
+ * .exportTransfers()
886
+ * .where({
887
+ * metadata: {
888
+ * example: true,
889
+ * },
890
+ * })
891
+ * .where('id', '>', 1)
892
+ * .where((builder) => {
893
+ * builder.where('status', 'finished').orWhere('type', 'deposit');
894
+ * })
895
+ * .limit(5)
896
+ * .offset(0)
897
+ * .orderBy(['token_id', { column: 'id', order: 'desc' }])
898
+ * .select(
899
+ * 'id',
900
+ * 'type',
901
+ * 'from_wallet_foreign',
902
+ * 'to_wallet_foreign',
903
+ * 'amount',
904
+ * )
905
+ * .options({
906
+ * tracking_id: 'hello',
907
+ * });
908
+ *
909
+ * ```
910
+ *
911
+ * @param {ExportTransfersFnInput} [input]
912
+ * @param {ExportTransfersFnOptions} [options]
913
+ * @returns {StreamPromise<ExportTransfersFnOutput>}
914
+ *
915
+ */
916
+ exportTransfers(): QueryBuilder<ExportTransfersFnFields, ExportTransfersFnStringFields, ExportTransfersFnMetadataFields, ExportTransfersFnResultFields, ExportTransfersFnOptions, ExportTransfersFnOutput>;
917
+ exportTransfers(input: ExportTransfersFnInput, options?: ExportTransfersFnOptions): StreamPromise<ExportTransfersFnOutput>;
918
+ /**
919
+ *
920
+ * Search for Wallets using either a simple filter or queryBuilder
921
+ *
922
+ *
923
+ * ```javascript
924
+ *
925
+ * const result = await wapiClient
926
+ * .exportWallets()
927
+ * .whereMetadata('meta', '>', 2)
928
+ * .where((builder) => {
929
+ * builder.where('status', 'active').orWhere('type', 'regular');
930
+ * })
931
+ * .limit(5)
932
+ * .offset(0)
933
+ * .orderBy('foreign')
934
+ * .select('id', 'foreign', 'metadata', 'balance_available_balance')
935
+ * .options({
936
+ * tracking_id: 'hello',
937
+ * include_balance_for_token: 'EUR',
938
+ * });
939
+ *
940
+ * ```
941
+ *
942
+ * @param {ExportWalletsFnInput} [input]
943
+ * @param {ExportWalletsFnOptions} [options]
944
+ * @returns {StreamPromise<ExportWalletsFnOutput>}
945
+ *
946
+ */
947
+ exportWallets(): QueryBuilder<ExportWalletsFnFields, ExportWalletsFnStringFields, ExportWalletsFnMetadataFields, ExportWalletsFnResultFields, ExportWalletsFnOptions, ExportWalletsFnOutput>;
948
+ exportWallets(input: ExportWalletsFnInput, options?: ExportWalletsFnOptions): StreamPromise<ExportWalletsFnOutput>;
766
949
  /**
767
950
  *
768
951
  * Search for Balances using either a simple filter or queryBuilder
@@ -770,7 +953,8 @@ export declare class Client {
770
953
  *
771
954
  * ```javascript
772
955
  *
773
- * const result = await wapiClient.findBalances()
956
+ * const result = await wapiClient
957
+ * .findBalances()
774
958
  * .where({
775
959
  * wallet: WALLETS.validId0,
776
960
  * })
@@ -779,8 +963,9 @@ export declare class Client {
779
963
  * wallet: WALLETS.validId1,
780
964
  * token: 'USD',
781
965
  * })
782
- * .orWhere(builder => {
783
- * builder.where('updated_at', '<', '2020-01-01')
966
+ * .orWhere((builder) => {
967
+ * builder
968
+ * .where('updated_at', '<', '2020-01-01')
784
969
  * .where('amount', '<', -1000000);
785
970
  * })
786
971
  * .limit(5)
@@ -807,7 +992,8 @@ export declare class Client {
807
992
  *
808
993
  * ```javascript
809
994
  *
810
- * const result = await wapiClient.findTokens()
995
+ * const result = await wapiClient
996
+ * .findTokens()
811
997
  * .where({
812
998
  * metadata: {
813
999
  * even: true,
@@ -819,10 +1005,11 @@ export declare class Client {
819
1005
  * })
820
1006
  * .limit(5)
821
1007
  * .offset(0)
822
- * .orderBy(['foreign', {column: 'id', order: 'desc'}])
1008
+ * .orderBy(['foreign', { column: 'id', order: 'desc' }])
823
1009
  * .options({
824
1010
  * tracking_id: 'hello',
825
1011
  * return_metadata_total: true,
1012
+ * include_balance: true,
826
1013
  * });
827
1014
  *
828
1015
  * ```
@@ -841,7 +1028,8 @@ export declare class Client {
841
1028
  *
842
1029
  * ```javascript
843
1030
  *
844
- * const result = await wapiClient.findTransferGroups()
1031
+ * const result = await wapiClient
1032
+ * .findTransferGroups()
845
1033
  * .where({
846
1034
  * metadata: {
847
1035
  * even: true,
@@ -851,12 +1039,13 @@ export declare class Client {
851
1039
  * .orWhere({
852
1040
  * identifier: 'reverser-example',
853
1041
  * })
854
- * .orWhere(builder => {
855
- * builder.where({
856
- * metadata: {
857
- * kak: true,
858
- * },
859
- * })
1042
+ * .orWhere((builder) => {
1043
+ * builder
1044
+ * .where({
1045
+ * metadata: {
1046
+ * kak: true,
1047
+ * },
1048
+ * })
860
1049
  * .where('created_at', '>', '2020-01-01');
861
1050
  * })
862
1051
  * .limit(5)
@@ -866,6 +1055,7 @@ export declare class Client {
866
1055
  * .options({
867
1056
  * tracking_id: 'hello',
868
1057
  * return_metadata_total: true,
1058
+ * return_transfers_count: true,
869
1059
  * });
870
1060
  *
871
1061
  * ```
@@ -884,20 +1074,20 @@ export declare class Client {
884
1074
  *
885
1075
  * ```javascript
886
1076
  *
887
- * const result = await wapiClient.findTransfers()
1077
+ * const result = await wapiClient
1078
+ * .findTransfers()
888
1079
  * .where({
889
1080
  * metadata: {
890
1081
  * example: true,
891
1082
  * },
892
1083
  * })
893
1084
  * .where('id', '>', 1)
894
- * .where(builder => {
895
- * builder.where('status', 'finished')
896
- * .orWhere('type', 'deposit');
1085
+ * .where((builder) => {
1086
+ * builder.where('status', 'finished').orWhere('type', 'deposit');
897
1087
  * })
898
1088
  * .limit(5)
899
1089
  * .offset(0)
900
- * .orderBy(['token_id', {column: 'id', order: 'desc'}])
1090
+ * .orderBy(['token_id', { column: 'id', order: 'desc' }])
901
1091
  * .select('id', 'type', 'from_wallet_foreign', 'to_wallet_foreign')
902
1092
  * .options({
903
1093
  * tracking_id: 'hello',
@@ -919,21 +1109,20 @@ export declare class Client {
919
1109
  *
920
1110
  * ```javascript
921
1111
  *
922
- * const result = await wapiClient.findWallets()
1112
+ * const result = await wapiClient
1113
+ * .findWallets()
923
1114
  * .where({
924
1115
  * metadata: {
925
1116
  * general: true,
926
1117
  * },
927
1118
  * })
928
1119
  * .where('id', '>', 1)
929
- * .where(builder => {
930
- * builder
931
- * .whereMetadata('tost', 10)
932
- * .orWhereMetadata('test', 1);
1120
+ * .where((builder) => {
1121
+ * builder.whereMetadata('tost', 10).orWhereMetadata('test', 1);
933
1122
  * })
934
1123
  * .limit(5)
935
1124
  * .offset(0)
936
- * .orderBy(['status', {column: 'id', order: 'desc'}])
1125
+ * .orderBy(['status', { column: 'id', order: 'desc' }])
937
1126
  * .select('id')
938
1127
  * .options({
939
1128
  * tracking_id: 'hello',
@@ -954,20 +1143,23 @@ export declare class Client {
954
1143
  *
955
1144
  * ```javascript
956
1145
  *
957
- * const result = await wapiClient.getBalance({
958
- * wallet: 'myMbyExistingWallet',
959
- * token: 'MBYTOKEN',
960
- * datetime: '2020-01-01',
961
- * }, {
962
- * create_wallet_if_not_exists: true,
963
- * create_token_if_not_exists: true,
964
- * create_if_not_exists: true,
965
- * tracking_id: 'mylogId',
966
- * // transaction_id: Transaction.identifier, // created transaction identifier
967
- * });
1146
+ * const result = await wapiClient.getBalance(
1147
+ * {
1148
+ * wallet: 'myMbyExistingWallet',
1149
+ * token: 'MBYTOKEN',
1150
+ * datetime: '2020-01-01',
1151
+ * },
1152
+ * {
1153
+ * create_wallet_if_not_exists: true,
1154
+ * create_token_if_not_exists: true,
1155
+ * create_if_not_exists: true,
1156
+ * tracking_id: 'mylogId',
1157
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1158
+ * },
1159
+ * );
968
1160
  *
969
1161
  * expect(result).toEqual({
970
- * balance: jasmine.objectContaining({
1162
+ * balance: expect.objectContaining({
971
1163
  * wallet_foreign: 'myMbyExistingWallet',
972
1164
  * token_foreign: 'MBYTOKEN',
973
1165
  * pending_amount: 0,
@@ -995,66 +1187,72 @@ export declare class Client {
995
1187
  * ```javascript
996
1188
  *
997
1189
  * // setup
998
- * const deposit = await wapiClient.createDeposit({
999
- * wallet: 'newWallet',
1000
- * amount: 10,
1001
- * status: 'pending',
1002
- * identifier: 'depositUSD',
1003
- * token: 'USD',
1004
- * }, {
1005
- * create_wallet_if_not_exists: true,
1006
- * });
1190
+ * const deposit = await wapiClient.createDeposit(
1191
+ * {
1192
+ * wallet: 'newWallet',
1193
+ * amount: 10,
1194
+ * status: 'pending',
1195
+ * identifier: 'depositUSD',
1196
+ * token: 'USD',
1197
+ * },
1198
+ * {
1199
+ * create_wallet_if_not_exists: true,
1200
+ * },
1201
+ * );
1007
1202
  * const updatedTransfer = await wapiClient.updateTransfer({
1008
1203
  * transfer: 'depositUSD',
1009
1204
  * status: 'finished',
1010
1205
  * });
1011
1206
  *
1012
- * const result = await wapiClient.getBalanceHistory({
1013
- * wallet: 'newWallet',
1014
- * token: 'USD',
1015
- * }, {
1016
- * create_token_if_not_exists: true,
1017
- * create_wallet_if_not_exists: true,
1018
- * limit: 5,
1019
- * select: [
1020
- * 'transfer_identifier',
1021
- * 'pending_amount',
1022
- * 'finished_amount',
1023
- * 'pending_amount_from',
1024
- * 'pending_amount_to',
1025
- * 'amount',
1026
- * // 'balance_id',
1027
- * // 'transfer_id',
1028
- * // 'transfer_control_hash',
1029
- * // 'transfer_from_wallet_id',
1030
- * // 'transfer_from_wallet_foreign',
1031
- * // 'transfer_to_wallet_id',
1032
- * // 'transfer_to_wallet_foreign',
1033
- * // 'transfer_amount',
1034
- * // 'transfer_type',
1035
- * // 'transfer_status',
1036
- * // 'transfer_force',
1037
- * // 'transfer_created_at',
1038
- * // 'transfer_updated_at',
1039
- * // 'transfer_metadata',
1040
- * // 'transfer_transfer_group_id',
1041
- * // 'transfer_transfer_group_identifier',
1042
- * // 'transfer_reverses_id',
1043
- * // 'transfer_reverses_identifier',
1044
- * // 'transfer_status_finalized_at',
1045
- * // 'token_id',
1046
- * // 'token_foreign',
1047
- * // 'wallet_id',
1048
- * // 'wallet_foreign',
1049
- * // 'latest_control_hash',
1050
- * // 'updated_at',
1051
- * ],
1052
- * offset: 0,
1053
- * order: 'desc',
1054
- * return_metadata_total: true,
1055
- * tracking_id: 'mylogId',
1056
- * // transaction_id: Transaction.identifier, // created transaction identifier
1057
- * });
1207
+ * const result = await wapiClient.getBalanceHistory(
1208
+ * {
1209
+ * wallet: 'newWallet',
1210
+ * token: 'USD',
1211
+ * },
1212
+ * {
1213
+ * create_token_if_not_exists: true,
1214
+ * create_wallet_if_not_exists: true,
1215
+ * limit: 5,
1216
+ * select: [
1217
+ * 'transfer_identifier',
1218
+ * 'pending_amount',
1219
+ * 'finished_amount',
1220
+ * 'pending_amount_from',
1221
+ * 'pending_amount_to',
1222
+ * 'amount',
1223
+ * // 'balance_id',
1224
+ * // 'transfer_id',
1225
+ * // 'transfer_control_hash',
1226
+ * // 'transfer_from_wallet_id',
1227
+ * // 'transfer_from_wallet_foreign',
1228
+ * // 'transfer_to_wallet_id',
1229
+ * // 'transfer_to_wallet_foreign',
1230
+ * // 'transfer_amount',
1231
+ * // 'transfer_type',
1232
+ * // 'transfer_status',
1233
+ * // 'transfer_force',
1234
+ * // 'transfer_created_at',
1235
+ * // 'transfer_updated_at',
1236
+ * // 'transfer_metadata',
1237
+ * // 'transfer_transfer_group_id',
1238
+ * // 'transfer_transfer_group_identifier',
1239
+ * // 'transfer_reverses_id',
1240
+ * // 'transfer_reverses_identifier',
1241
+ * // 'transfer_status_finalized_at',
1242
+ * // 'token_id',
1243
+ * // 'token_foreign',
1244
+ * // 'wallet_id',
1245
+ * // 'wallet_foreign',
1246
+ * // 'latest_control_hash',
1247
+ * // 'updated_at',
1248
+ * ],
1249
+ * offset: 0,
1250
+ * order: 'desc',
1251
+ * return_metadata_total: true,
1252
+ * tracking_id: 'mylogId',
1253
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1254
+ * },
1255
+ * );
1058
1256
  * expect(result).toEqual({
1059
1257
  * balances: [
1060
1258
  * {
@@ -1090,6 +1288,30 @@ export declare class Client {
1090
1288
  *
1091
1289
  */
1092
1290
  getBalanceHistory(input: GetBalanceHistoryFnInput, options?: GetBalanceHistoryFnOptions): StreamPromise<GetBalanceHistoryFnOutput>;
1291
+ /**
1292
+ *
1293
+ * Get a specific token/wallet balance
1294
+ *
1295
+ * ```javascript
1296
+ *
1297
+ * const result = await wapiClient.getExport(
1298
+ * {
1299
+ * identifier: exportingResult.export.identifier,
1300
+ * },
1301
+ * {
1302
+ * return_signed_url: true,
1303
+ * tracking_id: 'myLogId',
1304
+ * },
1305
+ * );
1306
+ *
1307
+ * ```
1308
+ *
1309
+ * @param {GetExportFnInput} input
1310
+ * @param {GetExportFnOptions} [options]
1311
+ * @returns {StreamPromise<GetExportFnOutput>}
1312
+ *
1313
+ */
1314
+ getExport(input: GetExportFnInput, options?: GetExportFnOptions): StreamPromise<GetExportFnOutput>;
1093
1315
  /**
1094
1316
  *
1095
1317
  * Retrieve the current state of configurable Flags for your WAPI instance
@@ -1116,29 +1338,38 @@ export declare class Client {
1116
1338
  *
1117
1339
  * ```javascript
1118
1340
  *
1119
- * const result = await wapiClient.getStatistics({
1120
- * model: 'Transfer',
1121
- * aggregator: 'count',
1122
- * groups: [{
1123
- * type: 'period',
1124
- * field: {
1125
- * period: 'month',
1126
- * timezone: 'Europe/Tallinn',
1341
+ * const result = await wapiClient.getStatistics(
1342
+ * {
1343
+ * model: 'Transfer',
1344
+ * aggregator: 'count',
1345
+ * groups: [
1346
+ * {
1347
+ * type: 'period',
1348
+ * field: {
1349
+ * period: 'month',
1350
+ * timezone: 'Europe/Tallinn',
1351
+ * },
1352
+ * },
1353
+ * ],
1354
+ * filter: {
1355
+ * end_time: new Date(
1356
+ * `${new Date().getFullYear() + 1}-01-01`,
1357
+ * ).toISOString(),
1358
+ * start_time: new Date(
1359
+ * `${new Date().getFullYear()}-01-01`,
1360
+ * ).toISOString(),
1127
1361
  * },
1128
- * }],
1129
- * filter: {
1130
- * end_time: (new Date(`${new Date().getFullYear() + 1}-01-01`)).toISOString(),
1131
- * start_time: (new Date(`${new Date().getFullYear()}-01-01`)).toISOString(),
1132
1362
  * },
1133
- * }, {
1134
- * tracking_id: 'mylogId',
1135
- * // transaction_id: Transaction.identifier, // created transaction identifier
1136
- * });
1363
+ * {
1364
+ * tracking_id: 'mylogId',
1365
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1366
+ * },
1367
+ * );
1137
1368
  *
1138
1369
  * expect(result).toEqual({
1139
1370
  * rows: [
1140
1371
  * {
1141
- * aggregate: 3,
1372
+ * aggregate: 4,
1142
1373
  * period: `${new Date().getFullYear()}-${(new Date().getMonth() + 1 + '').padStart(2, '0')}`,
1143
1374
  * },
1144
1375
  * ],
@@ -1158,20 +1389,27 @@ export declare class Client {
1158
1389
  *
1159
1390
  * ```javascript
1160
1391
  *
1161
- * const result = await wapiClient.getToken({
1162
- * foreign: 'EURO',
1163
- * }, {
1164
- * create_if_not_exists: true,
1165
- * // return_only_id: true, // for example purposes we want more than id
1166
- * ignore_cache: true,
1167
- * tracking_id: 'mylogId',
1168
- * // transaction_id: Transaction.identifier, // created transaction identifier
1169
- * });
1392
+ * const result = await wapiClient.getToken(
1393
+ * {
1394
+ * foreign: 'EURO',
1395
+ * },
1396
+ * {
1397
+ * create_if_not_exists: true,
1398
+ * // return_only_id: true, // for example purposes we want more than id
1399
+ * ignore_cache: true,
1400
+ * include_balance: true,
1401
+ * tracking_id: 'mylogId',
1402
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1403
+ * },
1404
+ * );
1170
1405
  *
1171
1406
  * expect(result).toEqual({
1172
- * token: jasmine.objectContaining({
1407
+ * token: expect.objectContaining({
1173
1408
  * foreign: 'EURO',
1174
1409
  * metadata: null,
1410
+ * balance_amount: null,
1411
+ * balance_finished_amount: null,
1412
+ * balance_updated_at: null,
1175
1413
  * }),
1176
1414
  * });
1177
1415
  *
@@ -1189,14 +1427,17 @@ export declare class Client {
1189
1427
  *
1190
1428
  * ```javascript
1191
1429
  *
1192
- * const result = await wapiClient.getTransfer({
1193
- * transfer: 'get-transfer-test',
1194
- * }, {
1195
- * tracking_id: 'mylogId',
1196
- * // transaction_id: Transaction.identifier, // created transaction identifier
1197
- * });
1430
+ * const result = await wapiClient.getTransfer(
1431
+ * {
1432
+ * transfer: 'get-transfer-test',
1433
+ * },
1434
+ * {
1435
+ * tracking_id: 'mylogId',
1436
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1437
+ * },
1438
+ * );
1198
1439
  * expect(result).toEqual({
1199
- * transfer: jasmine.objectContaining({
1440
+ * transfer: expect.objectContaining({
1200
1441
  * identifier: 'get-transfer-test',
1201
1442
  * // ...
1202
1443
  * }),
@@ -1216,16 +1457,19 @@ export declare class Client {
1216
1457
  *
1217
1458
  * ```javascript
1218
1459
  *
1219
- * const result = await wapiClient.getTransferGroup({
1220
- * transfer_group: 'customIdentifier',
1221
- * }, {
1222
- * create_if_not_exists: true,
1223
- * // return_only_id: true, // example requires more than just ID
1224
- * tracking_id: 'mylogId',
1225
- * // transaction_id: Transaction.identifier, // created transaction identifier
1226
- * });
1460
+ * const result = await wapiClient.getTransferGroup(
1461
+ * {
1462
+ * transfer_group: 'customIdentifier',
1463
+ * },
1464
+ * {
1465
+ * create_if_not_exists: true,
1466
+ * // return_only_id: true, // example requires more than just ID
1467
+ * tracking_id: 'mylogId',
1468
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1469
+ * },
1470
+ * );
1227
1471
  * expect(result).toEqual({
1228
- * transfer_group: jasmine.objectContaining({
1472
+ * transfer_group: expect.objectContaining({
1229
1473
  * identifier: 'customIdentifier',
1230
1474
  * metadata: null,
1231
1475
  * status: 'open',
@@ -1250,17 +1494,20 @@ export declare class Client {
1250
1494
  *
1251
1495
  * ```javascript
1252
1496
  *
1253
- * const result = await wapiClient.getWallet({
1254
- * wallet: WALLETS.withEURFunds0.foreign,
1255
- * }, {
1256
- * tracking_id: 'mylogId',
1257
- * // transaction_id: Transaction.identifier, // created transaction identifier
1258
- * ignore_cache: true,
1259
- * create_if_not_exists: true,
1260
- * return_only_id: false,
1261
- * });
1497
+ * const result = await wapiClient.getWallet(
1498
+ * {
1499
+ * wallet: WALLETS.withEURFunds0.foreign,
1500
+ * },
1501
+ * {
1502
+ * tracking_id: 'mylogId',
1503
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1504
+ * ignore_cache: true,
1505
+ * create_if_not_exists: true,
1506
+ * return_only_id: false,
1507
+ * },
1508
+ * );
1262
1509
  * expect(result).toEqual({
1263
- * wallet: jasmine.objectContaining({
1510
+ * wallet: expect.objectContaining({
1264
1511
  * foreign: WALLETS.withEURFunds0.foreign,
1265
1512
  * }),
1266
1513
  * });
@@ -1275,24 +1522,19 @@ export declare class Client {
1275
1522
  getWallet(input: GetWalletFnInput, options?: GetWalletFnOptions): StreamPromise<GetWalletFnOutput>;
1276
1523
  /**
1277
1524
  *
1278
- * Get health information about service
1525
+ * Get information about wallet
1279
1526
  *
1280
1527
  * ```javascript
1281
1528
  *
1282
- * const result = await wapiClient.healthcheck({
1283
- * }, {
1284
- * tracking_id: 'mylogId',
1285
- * });
1286
- * expect(result).toEqual({
1287
- * status: 'green',
1288
- * database_size: '3240MB',
1289
- * indexes_size: '1234MB',
1290
- * connection_count: 1,
1291
- * });
1529
+ * const result = await wapiClient.healthcheck();
1530
+ * expect(result.status).toEqual('green');
1531
+ * expect(result.connection_count).toEqual(1);
1532
+ * expect(typeof result.database_size).toEqual('string');
1533
+ * expect(typeof result.indexes_size).toEqual('string');
1292
1534
  *
1293
1535
  * ```
1294
1536
  *
1295
- * @param {HealthcheckFnInput} input
1537
+ * @param {HealthcheckFnInput} [input]
1296
1538
  * @param {HealthcheckFnOptions} [options]
1297
1539
  * @returns {StreamPromise<HealthcheckFnOutput>}
1298
1540
  *
@@ -1304,11 +1546,13 @@ export declare class Client {
1304
1546
  * ```javascript
1305
1547
  *
1306
1548
  * const result = await wapiClient.importData().input(async (stream) => {
1307
- * const fileStream = createReadStream(join(__dirname, '../lib/short-import.txt'));
1549
+ * const fileStream = createReadStream(
1550
+ * join(__dirname, '../lib/short-import.txt'),
1551
+ * );
1308
1552
  *
1309
1553
  * const rl = createInterface({
1310
1554
  * input: fileStream,
1311
- * crlfDelay: Infinity
1555
+ * crlfDelay: Infinity,
1312
1556
  * });
1313
1557
  * for await (const line of rl) {
1314
1558
  * // Each line in input.txt will be successively available here as `line`.
@@ -1330,6 +1574,28 @@ export declare class Client {
1330
1574
  */
1331
1575
  importData(options?: ImportDataFnOptions): StreamPromiseInput<ImportDataFnOutput, ImportDataFnStreamChunk>;
1332
1576
  importData(input: ImportDataFnInput, options?: ImportDataFnOptions): StreamPromise<ImportDataFnOutput>;
1577
+ /**
1578
+ *
1579
+ * Search for Balances using either a simple filter or queryBuilder
1580
+ *
1581
+ *
1582
+ * ```javascript
1583
+ *
1584
+ * const result = await wapiClient.listExports(
1585
+ * {},
1586
+ * {
1587
+ * tracking_id: 'myLogId',
1588
+ * },
1589
+ * );
1590
+ *
1591
+ * ```
1592
+ *
1593
+ * @param {ListExportsFnInput} [input]
1594
+ * @param {ListExportsFnOptions} [options]
1595
+ * @returns {StreamPromise<ListExportsFnOutput>}
1596
+ *
1597
+ */
1598
+ listExports(input?: ListExportsFnInput, options?: ListExportsFnOptions): StreamPromise<ListExportsFnOutput>;
1333
1599
  /**
1334
1600
  *
1335
1601
  * Reverse a transfer of value between two wallets
@@ -1337,26 +1603,29 @@ export declare class Client {
1337
1603
  *
1338
1604
  * ```javascript
1339
1605
  *
1340
- * const result = await wapiClient.reverseTransfer({
1341
- * transfer: 'MYDEPOSIT',
1342
- * status: 'finished',
1343
- * identifier: 'MYREVERSEDEPOSIT',
1344
- * force: true,
1345
- * // metadata: {},
1346
- * metadata: {
1347
- * extraCustomJSON: true,
1606
+ * const result = await wapiClient.reverseTransfer(
1607
+ * {
1608
+ * transfer: 'MYDEPOSIT',
1609
+ * status: 'finished',
1610
+ * identifier: 'MYREVERSEDEPOSIT',
1611
+ * force: true,
1612
+ * // metadata: {},
1613
+ * metadata: {
1614
+ * extraCustomJSON: true,
1615
+ * },
1348
1616
  * },
1349
- * }, {
1350
- * reverse_deposit: true,
1351
- * reverse_withdrawal: true,
1352
- * return_to_balance: true,
1353
- * return_from_balance: true,
1354
- * metadata_action: 'extend',
1355
- * tracking_id: 'mylogId',
1356
- * // transaction_id: Transaction.identifier, // created transaction identifier
1357
- * });
1617
+ * {
1618
+ * reverse_deposit: true,
1619
+ * reverse_withdrawal: true,
1620
+ * return_to_balance: true,
1621
+ * return_from_balance: true,
1622
+ * metadata_action: 'extend',
1623
+ * tracking_id: 'mylogId',
1624
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1625
+ * },
1626
+ * );
1358
1627
  * expect(result).toEqual({
1359
- * transfer: jasmine.objectContaining({
1628
+ * transfer: expect.objectContaining({
1360
1629
  * identifier: 'MYREVERSEDEPOSIT',
1361
1630
  * amount: 10.01,
1362
1631
  * type: 'withdrawal',
@@ -1373,12 +1642,12 @@ export declare class Client {
1373
1642
  * token_foreign: DEPOSIT.token_foreign,
1374
1643
  * // ...
1375
1644
  * }),
1376
- * to_balance: jasmine.objectContaining({
1645
+ * to_balance: expect.objectContaining({
1377
1646
  * token_foreign: DEPOSIT.token_foreign,
1378
1647
  * wallet_foreign: DEPOSIT.from_wallet_foreign,
1379
1648
  * // ...
1380
1649
  * }),
1381
- * from_balance: jasmine.objectContaining({
1650
+ * from_balance: expect.objectContaining({
1382
1651
  * token_foreign: DEPOSIT.token_foreign,
1383
1652
  * wallet_foreign: DEPOSIT.to_wallet_foreign,
1384
1653
  * // ...
@@ -1401,26 +1670,29 @@ export declare class Client {
1401
1670
  * ```javascript
1402
1671
  *
1403
1672
  * // Should succeed if flag is set
1404
- * const result = await wapiClient.reverseTransferGroup({
1405
- * transfer_group: 'myCustom',
1406
- * identifier: 'myCustomReverse',
1407
- * metadata: {
1408
- * extraCustomJSON: true,
1673
+ * const result = await wapiClient.reverseTransferGroup(
1674
+ * {
1675
+ * transfer_group: 'myCustom',
1676
+ * identifier: 'myCustomReverse',
1677
+ * metadata: {
1678
+ * extraCustomJSON: true,
1679
+ * },
1680
+ * transfer_status: 'finished',
1409
1681
  * },
1410
- * transfer_status: 'finished',
1411
- * }, {
1412
- * validate_final_balance_only: true,
1413
- * reverse_deposit: true,
1414
- * reverse_withdrawal: true,
1415
- * return_transfers: true,
1416
- * metadata_action: 'extend',
1417
- * transfer_metadata_action: 'extend',
1418
- * tracking_id: 'mylogId',
1419
- * // transaction_id: Transaction.identifier, // created transaction identifier
1420
- * });
1682
+ * {
1683
+ * validate_final_balance_only: true,
1684
+ * reverse_deposit: true,
1685
+ * reverse_withdrawal: true,
1686
+ * return_transfers: true,
1687
+ * metadata_action: 'extend',
1688
+ * transfer_metadata_action: 'extend',
1689
+ * tracking_id: 'mylogId',
1690
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1691
+ * },
1692
+ * );
1421
1693
  *
1422
1694
  * expect(result).toEqual({
1423
- * transfer_group: jasmine.objectContaining({
1695
+ * transfer_group: expect.objectContaining({
1424
1696
  * identifier: 'myCustomReverse',
1425
1697
  * status: 'closed',
1426
1698
  * metadata: {
@@ -1430,7 +1702,7 @@ export declare class Client {
1430
1702
  * transfer_status: 'finished',
1431
1703
  * }),
1432
1704
  * transfers: [
1433
- * jasmine.objectContaining({
1705
+ * expect.objectContaining({
1434
1706
  * from_wallet_foreign: 'myWallet2',
1435
1707
  * to_wallet_foreign: 'myWallet1',
1436
1708
  * amount: 8,
@@ -1438,7 +1710,7 @@ export declare class Client {
1438
1710
  * status: 'finished',
1439
1711
  * token_foreign: 'EUR',
1440
1712
  * }),
1441
- * jasmine.objectContaining({
1713
+ * expect.objectContaining({
1442
1714
  * from_wallet_foreign: 'myWallet1',
1443
1715
  * to_wallet_foreign: 'EUR',
1444
1716
  * amount: 10,
@@ -1463,35 +1735,39 @@ export declare class Client {
1463
1735
  * ```javascript
1464
1736
  *
1465
1737
  * const [[finishedTransfer1], [finishedTransfer2]] = await Promise.all([
1466
- * TEST.knex('transfers').insert({
1467
- * identifier: getTxIdSync(),
1468
- * auto_hash: true,
1469
- * amount: toNumberInput(10.12),
1470
- * status: 'finished',
1471
- * metadata: {
1472
- * example: 'test'
1473
- * },
1474
- * from_wallet_id: WALLETS.withEURFunds0.id,
1475
- * to_wallet_id: WALLETS.validId1,
1476
- * token_id: TOKENS.EUR.id,
1477
- * }).returning('*'),
1478
- * TEST.knex('transfers').insert({
1479
- * identifier: getTxIdSync(),
1480
- * auto_hash: true,
1481
- * amount: toNumberInput(10.12),
1482
- * status: 'finished',
1483
- * metadata: {
1484
- * example: 'test'
1485
- * },
1486
- * from_wallet_id: WALLETS.withEURFunds0.id,
1487
- * to_wallet_id: WALLETS.validId1,
1488
- * token_id: TOKENS.EUR.id,
1489
- * }).returning('*'),
1738
+ * TEST.knex('transfers')
1739
+ * .insert({
1740
+ * identifier: getTxIdSync(),
1741
+ * auto_hash: true,
1742
+ * amount: toNumberInput(10.12),
1743
+ * status: 'finished',
1744
+ * metadata: {
1745
+ * example: 'test',
1746
+ * },
1747
+ * from_wallet_id: WALLETS.withEURFunds0.id,
1748
+ * to_wallet_id: WALLETS.validId1,
1749
+ * token_id: TOKENS.EUR.id,
1750
+ * })
1751
+ * .returning('*'),
1752
+ * TEST.knex('transfers')
1753
+ * .insert({
1754
+ * identifier: getTxIdSync(),
1755
+ * auto_hash: true,
1756
+ * amount: toNumberInput(10.12),
1757
+ * status: 'finished',
1758
+ * metadata: {
1759
+ * example: 'test',
1760
+ * },
1761
+ * from_wallet_id: WALLETS.withEURFunds0.id,
1762
+ * to_wallet_id: WALLETS.validId1,
1763
+ * token_id: TOKENS.EUR.id,
1764
+ * })
1765
+ * .returning('*'),
1490
1766
  * ]);
1491
1767
  *
1492
1768
  * const result = await wapiClient.reverseTransfers({
1493
1769
  * metadata: {
1494
- * example: 'test'
1770
+ * example: 'test',
1495
1771
  * },
1496
1772
  * });
1497
1773
  *
@@ -1499,14 +1775,26 @@ export declare class Client {
1499
1775
  * expect(transfers.length).toEqual(2);
1500
1776
  *
1501
1777
  * expect(transfers[0].identifier).not.toEqual(finishedTransfer1.identifier);
1502
- * expect(transfers[0].amount).toEqual(formatNumber(finishedTransfer1.amount));
1503
- * expect(transfers[0].from_wallet_id).toEqual(finishedTransfer1.to_wallet_id);
1504
- * expect(transfers[0].to_wallet_id).toEqual(finishedTransfer1.from_wallet_id);
1778
+ * expect(transfers[0].amount).toEqual(
1779
+ * formatNumber(finishedTransfer1.amount),
1780
+ * );
1781
+ * expect(transfers[0].from_wallet_id).toEqual(
1782
+ * finishedTransfer1.to_wallet_id,
1783
+ * );
1784
+ * expect(transfers[0].to_wallet_id).toEqual(
1785
+ * finishedTransfer1.from_wallet_id,
1786
+ * );
1505
1787
  *
1506
1788
  * expect(transfers[1].identifier).not.toEqual(finishedTransfer2.identifier);
1507
- * expect(transfers[1].amount).toEqual(formatNumber(finishedTransfer2.amount));
1508
- * expect(transfers[1].from_wallet_id).toEqual(finishedTransfer2.to_wallet_id);
1509
- * expect(transfers[1].to_wallet_id).toEqual(finishedTransfer2.from_wallet_id);
1789
+ * expect(transfers[1].amount).toEqual(
1790
+ * formatNumber(finishedTransfer2.amount),
1791
+ * );
1792
+ * expect(transfers[1].from_wallet_id).toEqual(
1793
+ * finishedTransfer2.to_wallet_id,
1794
+ * );
1795
+ * expect(transfers[1].to_wallet_id).toEqual(
1796
+ * finishedTransfer2.from_wallet_id,
1797
+ * );
1510
1798
  *
1511
1799
  * ```
1512
1800
  *
@@ -1523,12 +1811,15 @@ export declare class Client {
1523
1811
  *
1524
1812
  * ```javascript
1525
1813
  *
1526
- * const result = await wapiClient.setFlags({
1527
- * production: false,
1528
- * allow_timestamps: true,
1529
- * }, {
1530
- * tracking_id: 'mylog',
1531
- * });
1814
+ * const result = await wapiClient.setFlags(
1815
+ * {
1816
+ * production: false,
1817
+ * allow_timestamps: true,
1818
+ * },
1819
+ * {
1820
+ * tracking_id: 'mylog',
1821
+ * },
1822
+ * );
1532
1823
  * expect(result).toEqual({
1533
1824
  * flags: {
1534
1825
  * production: false,
@@ -1566,7 +1857,7 @@ export declare class Client {
1566
1857
  * },
1567
1858
  * );
1568
1859
  * expect(result).toEqual({
1569
- * token: jasmine.objectContaining({
1860
+ * token: expect.objectContaining({
1570
1861
  * belongs_to: TOKENS.EUR.belongs_to,
1571
1862
  * divisor: TOKENS.EUR.divisor,
1572
1863
  * id: TOKENS.EUR.id,
@@ -1596,23 +1887,26 @@ export declare class Client {
1596
1887
  *
1597
1888
  * ```javascript
1598
1889
  *
1599
- * const result = await wapiClient.updateTransfer({
1600
- * transfer: 'myPendingDeposit',
1601
- * status: 'cancelled',
1602
- * metadata: {
1603
- * meta: 'new',
1604
- * was: true,
1890
+ * const result = await wapiClient.updateTransfer(
1891
+ * {
1892
+ * transfer: 'myPendingDeposit',
1893
+ * status: 'cancelled',
1894
+ * metadata: {
1895
+ * meta: 'new',
1896
+ * was: true,
1897
+ * },
1605
1898
  * },
1606
- * }, {
1607
- * return_from_balance: true,
1608
- * return_to_balance: true,
1609
- * return_when_not_updated: true,
1610
- * metadata_action: 'extend',
1611
- * tracking_id: 'mylogId',
1612
- * // transaction_id: Transaction.identifier, // created transaction identifier
1613
- * });
1899
+ * {
1900
+ * return_from_balance: true,
1901
+ * return_to_balance: true,
1902
+ * return_when_not_updated: true,
1903
+ * metadata_action: 'extend',
1904
+ * tracking_id: 'mylogId',
1905
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1906
+ * },
1907
+ * );
1614
1908
  * expect(result).toEqual({
1615
- * transfer: jasmine.objectContaining({
1909
+ * transfer: expect.objectContaining({
1616
1910
  * identifier: 'myPendingDeposit',
1617
1911
  * amount: 10.01,
1618
1912
  * type: 'deposit',
@@ -1626,16 +1920,16 @@ export declare class Client {
1626
1920
  * meta: 'new',
1627
1921
  * is: true,
1628
1922
  * was: true,
1629
- * }
1923
+ * },
1630
1924
  * }),
1631
- * to_balance: jasmine.objectContaining({
1925
+ * to_balance: expect.objectContaining({
1632
1926
  * token_foreign: 'EURO',
1633
1927
  * wallet_foreign: 'myWallet',
1634
1928
  * pending_amount: 0,
1635
1929
  * finished_amount: 0,
1636
1930
  * amount: 0,
1637
1931
  * }),
1638
- * from_balance: jasmine.objectContaining({
1932
+ * from_balance: expect.objectContaining({
1639
1933
  * token_foreign: 'EURO',
1640
1934
  * wallet_foreign: 'EURO',
1641
1935
  * pending_amount: 0,
@@ -1659,24 +1953,33 @@ export declare class Client {
1659
1953
  *
1660
1954
  * ```javascript
1661
1955
  *
1662
- * const result = await wapiClient.updateTransferGroup({
1663
- * transfer_group: 'myCustom',
1664
- * status: 'closed',
1665
- * transfer_status: 'finished',
1666
- * }, {
1667
- * return_transfers: true,
1668
- * return_when_not_updated: true,
1669
- * tracking_id: 'mylogId',
1670
- * // transaction_id: Transaction.identifier, // created transaction identifier
1671
- * });
1956
+ * const result = await wapiClient.updateTransferGroup(
1957
+ * {
1958
+ * transfer_group: 'myCustom',
1959
+ * status: 'closed',
1960
+ * transfer_status: 'finished',
1961
+ * metadata: {
1962
+ * newCustomJson: true,
1963
+ * },
1964
+ * },
1965
+ * {
1966
+ * return_transfers: true,
1967
+ * return_when_not_updated: true,
1968
+ * tracking_id: 'mylogId',
1969
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1970
+ * },
1971
+ * );
1672
1972
  * expect(result).toEqual({
1673
- * transfer_group: jasmine.objectContaining({
1973
+ * transfer_group: expect.objectContaining({
1674
1974
  * identifier: 'myCustom',
1675
1975
  * status: 'closed',
1676
1976
  * transfer_status: 'finished',
1977
+ * metadata: expect.objectContaining({
1978
+ * newCustomJson: true,
1979
+ * }),
1677
1980
  * }),
1678
1981
  * transfers: [
1679
- * jasmine.objectContaining({
1982
+ * expect.objectContaining({
1680
1983
  * identifier: 'transferA',
1681
1984
  * type: 'deposit',
1682
1985
  * status: 'finished',
@@ -1684,7 +1987,7 @@ export declare class Client {
1684
1987
  * to_wallet_foreign: 'myWallet1',
1685
1988
  * token_foreign: 'EUR',
1686
1989
  * }),
1687
- * jasmine.objectContaining({
1990
+ * expect.objectContaining({
1688
1991
  * identifier: 'transferB',
1689
1992
  * type: 'transfer',
1690
1993
  * status: 'finished',
@@ -1709,7 +2012,8 @@ export declare class Client {
1709
2012
  *
1710
2013
  * ```javascript
1711
2014
  *
1712
- * const result = await wapiClient.updateTransferGroups()
2015
+ * const result = await wapiClient
2016
+ * .updateTransferGroups()
1713
2017
  * .where({
1714
2018
  * status: 'open',
1715
2019
  * })
@@ -1781,11 +2085,11 @@ export declare class Client {
1781
2085
  * },
1782
2086
  * );
1783
2087
  * expect(result).toEqual({
1784
- * wallet: jasmine.objectContaining({
2088
+ * wallet: expect.objectContaining({
1785
2089
  * id: WALLETS.withEURFunds0.id,
1786
2090
  * foreign: WALLETS.withEURFunds0.foreign,
1787
2091
  * name: 'WT4',
1788
- * metadata: {metadata_number: 2},
2092
+ * metadata: { metadata_number: 2 },
1789
2093
  * type: WALLETS.withEURFunds0.type,
1790
2094
  * status: 'disabled',
1791
2095
  * default_allow_negative: false,