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
@@ -185,7 +185,7 @@ var Client = class {
185
185
  * token_foreign: 'EUR',
186
186
  * },
187
187
  * expiresIn: 60,
188
- * }
188
+ * },
189
189
  * });
190
190
  *
191
191
  * ```
@@ -196,7 +196,11 @@ var Client = class {
196
196
  *
197
197
  */
198
198
  createAccessToken(input, options) {
199
- return import_fns.ClientFunctions.createAccessToken({ client: this }, input, options);
199
+ return import_fns.ClientFunctions.createAccessToken(
200
+ { client: this },
201
+ input != null ? input : {},
202
+ options
203
+ );
200
204
  }
201
205
  /**
202
206
  *
@@ -237,25 +241,28 @@ var Client = class {
237
241
  *
238
242
  * ```javascript
239
243
  *
240
- * const result = await wapiClient.createDeposit({
241
- * identifier: 'mycustomId',
242
- * token: 'ForeignForToken',
243
- * wallet: 'ForeignForWallet',
244
- * amount: 10.01,
245
- * metadata: {
246
- * customJsonBlob: true,
244
+ * const result = await wapiClient.createDeposit(
245
+ * {
246
+ * identifier: 'mycustomId',
247
+ * token: 'ForeignForToken',
248
+ * wallet: 'ForeignForWallet',
249
+ * amount: 10.01,
250
+ * metadata: {
251
+ * customJsonBlob: true,
252
+ * },
253
+ * status: 'finished',
254
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
247
255
  * },
248
- * status: 'finished',
249
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
250
- * }, {
251
- * tracking_id: 'mylogId',
252
- * // transaction_id: Transaction.identifier, // created transaction identifier
253
- * create_wallet_if_not_exists: true,
254
- * return_balance: true,
255
- * });
256
+ * {
257
+ * tracking_id: 'mylogId',
258
+ * // transaction_id: Transaction.identifier, // created transaction identifier
259
+ * create_wallet_if_not_exists: true,
260
+ * return_balance: true,
261
+ * },
262
+ * );
256
263
  *
257
264
  * expect(result).toEqual({
258
- * transfer: jasmine.objectContaining({
265
+ * transfer: expect.objectContaining({
259
266
  * identifier: 'mycustomId',
260
267
  * token_foreign: 'ForeignForToken',
261
268
  * to_wallet_foreign: 'ForeignForWallet',
@@ -266,7 +273,7 @@ var Client = class {
266
273
  * status: 'finished',
267
274
  * // ... other fields
268
275
  * }),
269
- * to_balance: jasmine.objectContaining({
276
+ * to_balance: expect.objectContaining({
270
277
  * token_foreign: 'ForeignForToken',
271
278
  * wallet_foreign: 'ForeignForWallet',
272
279
  * pending_amount: 0,
@@ -293,32 +300,35 @@ var Client = class {
293
300
  *
294
301
  * ```javascript
295
302
  *
296
- * const result = await wapiClient.createExchange({
297
- * identifier: 'exchange',
298
- * from_identifier: 'exchange1',
299
- * from_wallet: WALLETS.withEURFunds0.foreign,
300
- * from_token: 'EUR',
301
- * from_amount: 10,
302
- * to_identifier: 'exchange2',
303
- * to_token: 'USD',
304
- * to_wallet: WALLETS.withUSDFunds0.foreign,
305
- * to_amount: 20,
306
- * status: 'finished',
307
- * metadata: {
308
- * exchangeRate: 2,
303
+ * const result = await wapiClient.createExchange(
304
+ * {
305
+ * identifier: 'exchange',
306
+ * from_identifier: 'exchange1',
307
+ * from_wallet: WALLETS.withEURFunds0.foreign,
308
+ * from_token: 'EUR',
309
+ * from_amount: 10,
310
+ * to_identifier: 'exchange2',
311
+ * to_token: 'USD',
312
+ * to_wallet: WALLETS.withUSDFunds0.foreign,
313
+ * to_amount: 20,
314
+ * status: 'finished',
315
+ * metadata: {
316
+ * exchangeRate: 2,
317
+ * },
309
318
  * },
310
- * }, {
311
- * tracking_id: 'mylogId',
312
- * // transaction_id: Transaction.identifier, // created transaction identifier
313
- * });
319
+ * {
320
+ * tracking_id: 'mylogId',
321
+ * // transaction_id: Transaction.identifier, // created transaction identifier
322
+ * },
323
+ * );
314
324
  * expect(result).toEqual({
315
- * transfer_group: jasmine.objectContaining({
325
+ * transfer_group: expect.objectContaining({
316
326
  * identifier: 'exchange',
317
327
  * status: 'closed',
318
328
  * transfer_status: 'finished',
319
329
  * }),
320
330
  * transfers: [
321
- * jasmine.objectContaining({
331
+ * expect.objectContaining({
322
332
  * status: 'finished',
323
333
  * amount: 10,
324
334
  * from_wallet_id: WALLETS.withEURFunds0.id,
@@ -329,7 +339,7 @@ var Client = class {
329
339
  * },
330
340
  * identifier: 'exchange1',
331
341
  * }),
332
- * jasmine.objectContaining({
342
+ * expect.objectContaining({
333
343
  * status: 'finished',
334
344
  * amount: 20,
335
345
  * to_wallet_id: WALLETS.withEURFunds0.id,
@@ -377,14 +387,14 @@ var Client = class {
377
387
  * );
378
388
  *
379
389
  * expect(result).toEqual({
380
- * token: jasmine.objectContaining({
390
+ * token: expect.objectContaining({
381
391
  * foreign: 'EURO',
382
392
  * public: true,
383
393
  * metadata: {
384
394
  * customMetadata: true,
385
395
  * },
386
396
  * }),
387
- * wallet: jasmine.objectContaining({
397
+ * wallet: expect.objectContaining({
388
398
  * default_allow_positive: false,
389
399
  * default_allow_negative: true,
390
400
  * foreign: 'EURO',
@@ -409,26 +419,29 @@ var Client = class {
409
419
  *
410
420
  * ```javascript
411
421
  *
412
- * const result = await wapiClient.createTransfer({
413
- * identifier: 'mynewtransferid',
414
- * token: 'EUR',
415
- * from_wallet: WALLETS.withEURFunds0.foreign,
416
- * to_wallet: 'foreignForMbyExistingWallet',
417
- * amount: 10.01,
418
- * metadata: {
419
- * customJSON: true,
422
+ * const result = await wapiClient.createTransfer(
423
+ * {
424
+ * identifier: 'mynewtransferid',
425
+ * token: 'EUR',
426
+ * from_wallet: WALLETS.withEURFunds0.foreign,
427
+ * to_wallet: 'foreignForMbyExistingWallet',
428
+ * amount: 10.01,
429
+ * metadata: {
430
+ * customJSON: true,
431
+ * },
432
+ * type: 'transfer',
433
+ * status: 'pending',
434
+ * // transfer_group: TransferGroup.identifier,
420
435
  * },
421
- * type: 'transfer',
422
- * status: 'pending',
423
- * // transfer_group: TransferGroup.identifier,
424
- * }, {
425
- * create_to_wallet_if_not_exists: true,
426
- * tracking_id: 'mylogId',
427
- * // transaction_id: Transaction.identifier, // created transaction identifier
428
- * });
436
+ * {
437
+ * create_to_wallet_if_not_exists: true,
438
+ * tracking_id: 'mylogId',
439
+ * // transaction_id: Transaction.identifier, // created transaction identifier
440
+ * },
441
+ * );
429
442
  *
430
443
  * expect(result).toEqual({
431
- * transfer: jasmine.objectContaining({
444
+ * transfer: expect.objectContaining({
432
445
  * identifier: 'mynewtransferid',
433
446
  * token_foreign: 'EUR',
434
447
  * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
@@ -445,7 +458,7 @@ var Client = class {
445
458
  *
446
459
  * ```
447
460
  *
448
- * @param {CreateTransferFnInput} [input]
461
+ * @param {CreateTransferFnInput} input
449
462
  * @param {CreateTransferFnOptions} [options]
450
463
  * @returns {StreamPromise<CreateTransferFnOutput>}
451
464
  *
@@ -462,69 +475,75 @@ var Client = class {
462
475
  *
463
476
  * ```javascript
464
477
  *
465
- * const result = await wapiClient.createTransferGroup({
466
- * identifier: 'mytgIdentifier',
467
- * status: 'closed',
468
- * metadata: {
469
- * customJSON: true,
470
- * },
471
- * transfer_status: 'finished',
472
- * // transfer_group: ParentTransferGroup.identifier,
473
- * children: [
474
- * {
475
- * identifier: 'txIdentifier',
476
- * from_wallet: WALLETS.withEURFunds0.foreign,
477
- * to_wallet: 'newWalletForeign',
478
- * token: 'EUR',
479
- * amount: 10,
480
- * type: 'transfer',
481
- * latest_control_hash: WALLETS.withEURFunds0.latest_control_hash,
482
- * },
483
- * {
484
- * identifier: 'childTgTransferId',
485
- * from_wallet: 'newWalletForeign',
486
- * to_wallet: WALLETS.withEURFunds0.foreign,
487
- * token: 'EUR',
488
- * amount: 9,
489
- * type: 'transfer',
490
- * latest_control_hash: null, // not needed because we just transferred money there,
491
- * },
492
- * ],
493
- * }, {
494
- * validate_final_balance_only: true,
495
- * create_to_wallet_if_not_exists: true,
496
- * tracking_id: 'mylogId',
497
- * // transaction_id: Transaction.identifier, // created transaction identifier
498
- * });
499
- *
500
- * expect(result).toEqual(jasmine.objectContaining({
501
- * transfer_group: jasmine.objectContaining({
478
+ * const result = await wapiClient.createTransferGroup(
479
+ * {
502
480
  * identifier: 'mytgIdentifier',
503
481
  * status: 'closed',
504
482
  * metadata: {
505
483
  * customJSON: true,
506
484
  * },
507
485
  * transfer_status: 'finished',
508
- * }),
509
- * transfers: [
510
- * jasmine.objectContaining({
511
- * identifier: 'txIdentifier',
512
- * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
513
- * to_wallet_foreign: 'newWalletForeign',
514
- * token_foreign: 'EUR',
515
- * amount: 10,
516
- * type: 'transfer',
517
- * }),
518
- * jasmine.objectContaining({
519
- * identifier: 'childTgTransferId',
520
- * from_wallet_foreign: 'newWalletForeign',
521
- * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
522
- * token_foreign: 'EUR',
523
- * amount: 9,
524
- * type: 'transfer',
486
+ * // transfer_group: ParentTransferGroup.identifier,
487
+ * children: [
488
+ * {
489
+ * identifier: 'txIdentifier',
490
+ * from_wallet: WALLETS.withEURFunds0.foreign,
491
+ * to_wallet: 'newWalletForeign',
492
+ * token: 'EUR',
493
+ * amount: 10,
494
+ * type: 'transfer',
495
+ * latest_control_hash:
496
+ * WALLETS.withEURFunds0.latest_control_hash,
497
+ * },
498
+ * {
499
+ * identifier: 'childTgTransferId',
500
+ * from_wallet: 'newWalletForeign',
501
+ * to_wallet: WALLETS.withEURFunds0.foreign,
502
+ * token: 'EUR',
503
+ * amount: 9,
504
+ * type: 'transfer',
505
+ * latest_control_hash: null, // not needed because we just transferred money there,
506
+ * },
507
+ * ],
508
+ * },
509
+ * {
510
+ * validate_final_balance_only: true,
511
+ * create_to_wallet_if_not_exists: true,
512
+ * tracking_id: 'mylogId',
513
+ * // transaction_id: Transaction.identifier, // created transaction identifier
514
+ * },
515
+ * );
516
+ *
517
+ * expect(result).toEqual(
518
+ * expect.objectContaining({
519
+ * transfer_group: expect.objectContaining({
520
+ * identifier: 'mytgIdentifier',
521
+ * status: 'closed',
522
+ * metadata: {
523
+ * customJSON: true,
524
+ * },
525
+ * transfer_status: 'finished',
525
526
  * }),
526
- * ],
527
- * }));
527
+ * transfers: [
528
+ * expect.objectContaining({
529
+ * identifier: 'txIdentifier',
530
+ * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
531
+ * to_wallet_foreign: 'newWalletForeign',
532
+ * token_foreign: 'EUR',
533
+ * amount: 10,
534
+ * type: 'transfer',
535
+ * }),
536
+ * expect.objectContaining({
537
+ * identifier: 'childTgTransferId',
538
+ * from_wallet_foreign: 'newWalletForeign',
539
+ * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
540
+ * token_foreign: 'EUR',
541
+ * amount: 9,
542
+ * type: 'transfer',
543
+ * }),
544
+ * ],
545
+ * }),
546
+ * );
528
547
  *
529
548
  *
530
549
  * ```
@@ -548,91 +567,100 @@ var Client = class {
548
567
  *
549
568
  * ```javascript
550
569
  *
551
- * const result = await wapiClient.createTransfers({
552
- * transfers: [{
553
- * type: 'deposit',
554
- * wallet: WALLETS.validForeign2,
555
- * token: 'EURO',
556
- * amount: 10.01,
557
- * }, {
558
- * from_wallet: WALLETS.validForeign2,
559
- * to_wallet: 'newWalletForeignMby',
560
- * token: 'EURO',
561
- * amount: 10.01,
562
- * latest_control_hash: null, // not required as we just transferred funds
563
- * }, {
564
- * type: 'withdrawal',
565
- * wallet: 'newWalletForeignMby',
566
- * token: 'EURO',
567
- * amount: 10.01,
568
- * latest_control_hash: null, // not required as we just transferred funds
569
- * }],
570
- * }, {
571
- * create_to_wallet_if_not_exists: true,
572
- * return_from_balance: true,
573
- * return_to_balance: true,
574
- * tracking_id: 'mylogId',
575
- * // transaction_id: Transaction.identifier, // created transaction identifier
576
- * });
570
+ * const result = await wapiClient.createTransfers(
571
+ * {
572
+ * transfers: [
573
+ * {
574
+ * type: 'deposit',
575
+ * wallet: WALLETS.validForeign2,
576
+ * token: 'EURO',
577
+ * amount: 10.01,
578
+ * },
579
+ * {
580
+ * from_wallet: WALLETS.validForeign2,
581
+ * to_wallet: 'newWalletForeignMby',
582
+ * token: 'EURO',
583
+ * amount: 10.01,
584
+ * latest_control_hash: null, // not required as we just transferred funds
585
+ * },
586
+ * {
587
+ * type: 'withdrawal',
588
+ * wallet: 'newWalletForeignMby',
589
+ * token: 'EURO',
590
+ * amount: 10.01,
591
+ * latest_control_hash: null, // not required as we just transferred funds
592
+ * },
593
+ * ],
594
+ * },
595
+ * {
596
+ * create_to_wallet_if_not_exists: true,
597
+ * return_from_balance: true,
598
+ * return_to_balance: true,
599
+ * tracking_id: 'mylogId',
600
+ * // transaction_id: Transaction.identifier, // created transaction identifier
601
+ * },
602
+ * );
577
603
  *
578
- * expect(result).toEqual(jasmine.objectContaining({
579
- * transfers: [
580
- * jasmine.objectContaining({
581
- * type: 'deposit',
582
- * token_foreign: 'EURO',
583
- * to_wallet_foreign: WALLETS.validForeign2,
584
- * amount: 10.01,
585
- * }),
586
- * jasmine.objectContaining({
587
- * type: 'transfer',
588
- * token_foreign: 'EURO',
589
- * from_wallet_foreign: WALLETS.validForeign2,
590
- * to_wallet_foreign: 'newWalletForeignMby',
591
- * amount: 10.01,
592
- * }),
593
- * jasmine.objectContaining({
594
- * type: 'withdrawal',
595
- * token_foreign: 'EURO',
596
- * from_wallet_foreign: 'newWalletForeignMby',
597
- * amount: 10.01,
598
- * }),
599
- * ],
600
- * // We are doing a 0 sum with 3 transactions so everything is back to 0
601
- * from_balances: [
602
- * jasmine.objectContaining({
603
- * token_foreign: 'EURO',
604
- * wallet_foreign: 'EURO',
605
- * amount: 0,
606
- * }),
607
- * jasmine.objectContaining({
608
- * token_foreign: 'EURO',
609
- * wallet_foreign: WALLETS.validForeign2,
610
- * amount: 0,
611
- * }),
612
- * jasmine.objectContaining({
613
- * token_foreign: 'EURO',
614
- * wallet_foreign: 'newWalletForeignMby',
615
- * amount: 0,
616
- * }),
617
- * ],
618
- * to_balances: [
619
- * jasmine.objectContaining({
620
- * token_foreign: 'EURO',
621
- * wallet_foreign: WALLETS.validForeign2,
622
- * amount: 0,
623
- * }),
624
- * jasmine.objectContaining({
625
- * token_foreign: 'EURO',
626
- * wallet_foreign: 'newWalletForeignMby',
627
- * amount: 0,
628
- * }),
629
- * jasmine.objectContaining({
630
- * token_foreign: 'EURO',
631
- * wallet_foreign: 'EURO',
632
- * amount: 0,
633
- * }),
634
- * ],
635
- * }));
604
+ * expect(result).toEqual(
605
+ * expect.objectContaining({
606
+ * transfers: [
607
+ * expect.objectContaining({
608
+ * type: 'deposit',
609
+ * token_foreign: 'EURO',
610
+ * to_wallet_foreign: WALLETS.validForeign2,
611
+ * amount: 10.01,
612
+ * }),
613
+ * expect.objectContaining({
614
+ * type: 'transfer',
615
+ * token_foreign: 'EURO',
616
+ * from_wallet_foreign: WALLETS.validForeign2,
617
+ * to_wallet_foreign: 'newWalletForeignMby',
618
+ * amount: 10.01,
619
+ * }),
620
+ * expect.objectContaining({
621
+ * type: 'withdrawal',
622
+ * token_foreign: 'EURO',
623
+ * from_wallet_foreign: 'newWalletForeignMby',
624
+ * amount: 10.01,
625
+ * }),
626
+ * ],
627
+ * // We are doing a 0 sum with 3 transactions so everything is back to 0
628
+ * from_balances: [
629
+ * expect.objectContaining({
630
+ * token_foreign: 'EURO',
631
+ * wallet_foreign: 'EURO',
632
+ * amount: 0,
633
+ * }),
634
+ * expect.objectContaining({
635
+ * token_foreign: 'EURO',
636
+ * wallet_foreign: WALLETS.validForeign2,
637
+ * amount: 0,
638
+ * }),
639
+ * expect.objectContaining({
640
+ * token_foreign: 'EURO',
641
+ * wallet_foreign: 'newWalletForeignMby',
642
+ * amount: 0,
643
+ * }),
644
+ * ],
645
+ * to_balances: [
646
+ * expect.objectContaining({
647
+ * token_foreign: 'EURO',
648
+ * wallet_foreign: WALLETS.validForeign2,
649
+ * amount: 0,
650
+ * }),
651
+ * expect.objectContaining({
652
+ * token_foreign: 'EURO',
653
+ * wallet_foreign: 'newWalletForeignMby',
654
+ * amount: 0,
655
+ * }),
656
+ * expect.objectContaining({
657
+ * token_foreign: 'EURO',
658
+ * wallet_foreign: 'EURO',
659
+ * amount: 0,
660
+ * }),
661
+ * ],
662
+ * }),
663
+ * );
636
664
  *
637
665
  *
638
666
  * ```
@@ -651,20 +679,23 @@ var Client = class {
651
679
  *
652
680
  * ```javascript
653
681
  *
654
- * const result = await wapiClient.createWallet({
655
- * foreign: 'test-wallet-2',
656
- * name: 'Irrelevant',
657
- * metadata: {
658
- * awesome: true,
659
- * invalid: false,
682
+ * const result = await wapiClient.createWallet(
683
+ * {
684
+ * foreign: 'test-wallet-2',
685
+ * name: 'Irrelevant',
686
+ * metadata: {
687
+ * awesome: true,
688
+ * invalid: false,
689
+ * },
660
690
  * },
661
- * }, {
662
- * tracking_id: 'mylogId',
663
- * // transaction_id: Transaction.identifier, // created transaction identifier
664
- * });
691
+ * {
692
+ * tracking_id: 'mylogId',
693
+ * // transaction_id: Transaction.identifier, // created transaction identifier
694
+ * },
695
+ * );
665
696
  *
666
697
  * expect(result).toEqual({
667
- * wallet: jasmine.objectContaining({
698
+ * wallet: expect.objectContaining({
668
699
  * foreign: 'test-wallet-2',
669
700
  * name: 'Irrelevant',
670
701
  * metadata: {
@@ -692,25 +723,28 @@ var Client = class {
692
723
  *
693
724
  * ```javascript
694
725
  *
695
- * const result = await wapiClient.createWithdrawal({
696
- * identifier: 'mycustomId',
697
- * token: 'ForeignForToken',
698
- * wallet: 'ForeignForWallet',
699
- * amount: 10.01,
700
- * metadata: {
701
- * customJsonBlob: true,
726
+ * const result = await wapiClient.createWithdrawal(
727
+ * {
728
+ * identifier: 'mycustomId',
729
+ * token: 'ForeignForToken',
730
+ * wallet: 'ForeignForWallet',
731
+ * amount: 10.01,
732
+ * metadata: {
733
+ * customJsonBlob: true,
734
+ * },
735
+ * status: 'finished',
736
+ * latest_control_hash: null,
737
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
702
738
  * },
703
- * status: 'finished',
704
- * latest_control_hash: null,
705
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
706
- * }, {
707
- * tracking_id: 'mylogId',
708
- * // transaction_id: Transaction.identifier, // created transaction identifier
709
- * return_balance: true,
710
- * });
739
+ * {
740
+ * tracking_id: 'mylogId',
741
+ * // transaction_id: Transaction.identifier, // created transaction identifier
742
+ * return_balance: true,
743
+ * },
744
+ * );
711
745
  *
712
746
  * expect(result).toEqual({
713
- * transfer: jasmine.objectContaining({
747
+ * transfer: expect.objectContaining({
714
748
  * identifier: 'mycustomId',
715
749
  * token_foreign: 'ForeignForToken',
716
750
  * from_wallet_foreign: 'ForeignForWallet',
@@ -721,7 +755,7 @@ var Client = class {
721
755
  * status: 'finished',
722
756
  * // ... other fields
723
757
  * }),
724
- * from_balance: jasmine.objectContaining({
758
+ * from_balance: expect.objectContaining({
725
759
  * token_foreign: 'ForeignForToken',
726
760
  * wallet_foreign: 'ForeignForWallet',
727
761
  * pending_amount: 0,
@@ -741,6 +775,50 @@ var Client = class {
741
775
  createWithdrawal(input, options) {
742
776
  return import_fns.ClientFunctions.createWithdrawal({ client: this }, input, options);
743
777
  }
778
+ /**
779
+ *
780
+ *
781
+ *
782
+ * @param {ExportBalanceHistoryFnInput} input
783
+ * @param {ExportBalanceHistoryFnOptions} [options]
784
+ * @returns {StreamPromise<ExportBalanceHistoryFnOutput>}
785
+ *
786
+ */
787
+ exportBalanceHistory(input, options) {
788
+ return import_fns.ClientFunctions.exportBalanceHistory(
789
+ { client: this },
790
+ input,
791
+ options
792
+ );
793
+ }
794
+ exportTokens(input, options) {
795
+ if (input === void 0) {
796
+ return import_fns.ClientFunctions.exportTokens({ client: this });
797
+ }
798
+ return import_fns.ClientFunctions.exportTokens({ client: this }, input, options);
799
+ }
800
+ exportTransferGroups(input, options) {
801
+ if (input === void 0) {
802
+ return import_fns.ClientFunctions.exportTransferGroups({ client: this });
803
+ }
804
+ return import_fns.ClientFunctions.exportTransferGroups(
805
+ { client: this },
806
+ input,
807
+ options
808
+ );
809
+ }
810
+ exportTransfers(input, options) {
811
+ if (input === void 0) {
812
+ return import_fns.ClientFunctions.exportTransfers({ client: this });
813
+ }
814
+ return import_fns.ClientFunctions.exportTransfers({ client: this }, input, options);
815
+ }
816
+ exportWallets(input, options) {
817
+ if (input === void 0) {
818
+ return import_fns.ClientFunctions.exportWallets({ client: this });
819
+ }
820
+ return import_fns.ClientFunctions.exportWallets({ client: this }, input, options);
821
+ }
744
822
  findBalances(input, options) {
745
823
  if (input === void 0) {
746
824
  return import_fns.ClientFunctions.findBalances({ client: this });
@@ -777,20 +855,23 @@ var Client = class {
777
855
  *
778
856
  * ```javascript
779
857
  *
780
- * const result = await wapiClient.getBalance({
781
- * wallet: 'myMbyExistingWallet',
782
- * token: 'MBYTOKEN',
783
- * datetime: '2020-01-01',
784
- * }, {
785
- * create_wallet_if_not_exists: true,
786
- * create_token_if_not_exists: true,
787
- * create_if_not_exists: true,
788
- * tracking_id: 'mylogId',
789
- * // transaction_id: Transaction.identifier, // created transaction identifier
790
- * });
858
+ * const result = await wapiClient.getBalance(
859
+ * {
860
+ * wallet: 'myMbyExistingWallet',
861
+ * token: 'MBYTOKEN',
862
+ * datetime: '2020-01-01',
863
+ * },
864
+ * {
865
+ * create_wallet_if_not_exists: true,
866
+ * create_token_if_not_exists: true,
867
+ * create_if_not_exists: true,
868
+ * tracking_id: 'mylogId',
869
+ * // transaction_id: Transaction.identifier, // created transaction identifier
870
+ * },
871
+ * );
791
872
  *
792
873
  * expect(result).toEqual({
793
- * balance: jasmine.objectContaining({
874
+ * balance: expect.objectContaining({
794
875
  * wallet_foreign: 'myMbyExistingWallet',
795
876
  * token_foreign: 'MBYTOKEN',
796
877
  * pending_amount: 0,
@@ -820,66 +901,72 @@ var Client = class {
820
901
  * ```javascript
821
902
  *
822
903
  * // setup
823
- * const deposit = await wapiClient.createDeposit({
824
- * wallet: 'newWallet',
825
- * amount: 10,
826
- * status: 'pending',
827
- * identifier: 'depositUSD',
828
- * token: 'USD',
829
- * }, {
830
- * create_wallet_if_not_exists: true,
831
- * });
904
+ * const deposit = await wapiClient.createDeposit(
905
+ * {
906
+ * wallet: 'newWallet',
907
+ * amount: 10,
908
+ * status: 'pending',
909
+ * identifier: 'depositUSD',
910
+ * token: 'USD',
911
+ * },
912
+ * {
913
+ * create_wallet_if_not_exists: true,
914
+ * },
915
+ * );
832
916
  * const updatedTransfer = await wapiClient.updateTransfer({
833
917
  * transfer: 'depositUSD',
834
918
  * status: 'finished',
835
919
  * });
836
920
  *
837
- * const result = await wapiClient.getBalanceHistory({
838
- * wallet: 'newWallet',
839
- * token: 'USD',
840
- * }, {
841
- * create_token_if_not_exists: true,
842
- * create_wallet_if_not_exists: true,
843
- * limit: 5,
844
- * select: [
845
- * 'transfer_identifier',
846
- * 'pending_amount',
847
- * 'finished_amount',
848
- * 'pending_amount_from',
849
- * 'pending_amount_to',
850
- * 'amount',
851
- * // 'balance_id',
852
- * // 'transfer_id',
853
- * // 'transfer_control_hash',
854
- * // 'transfer_from_wallet_id',
855
- * // 'transfer_from_wallet_foreign',
856
- * // 'transfer_to_wallet_id',
857
- * // 'transfer_to_wallet_foreign',
858
- * // 'transfer_amount',
859
- * // 'transfer_type',
860
- * // 'transfer_status',
861
- * // 'transfer_force',
862
- * // 'transfer_created_at',
863
- * // 'transfer_updated_at',
864
- * // 'transfer_metadata',
865
- * // 'transfer_transfer_group_id',
866
- * // 'transfer_transfer_group_identifier',
867
- * // 'transfer_reverses_id',
868
- * // 'transfer_reverses_identifier',
869
- * // 'transfer_status_finalized_at',
870
- * // 'token_id',
871
- * // 'token_foreign',
872
- * // 'wallet_id',
873
- * // 'wallet_foreign',
874
- * // 'latest_control_hash',
875
- * // 'updated_at',
876
- * ],
877
- * offset: 0,
878
- * order: 'desc',
879
- * return_metadata_total: true,
880
- * tracking_id: 'mylogId',
881
- * // transaction_id: Transaction.identifier, // created transaction identifier
882
- * });
921
+ * const result = await wapiClient.getBalanceHistory(
922
+ * {
923
+ * wallet: 'newWallet',
924
+ * token: 'USD',
925
+ * },
926
+ * {
927
+ * create_token_if_not_exists: true,
928
+ * create_wallet_if_not_exists: true,
929
+ * limit: 5,
930
+ * select: [
931
+ * 'transfer_identifier',
932
+ * 'pending_amount',
933
+ * 'finished_amount',
934
+ * 'pending_amount_from',
935
+ * 'pending_amount_to',
936
+ * 'amount',
937
+ * // 'balance_id',
938
+ * // 'transfer_id',
939
+ * // 'transfer_control_hash',
940
+ * // 'transfer_from_wallet_id',
941
+ * // 'transfer_from_wallet_foreign',
942
+ * // 'transfer_to_wallet_id',
943
+ * // 'transfer_to_wallet_foreign',
944
+ * // 'transfer_amount',
945
+ * // 'transfer_type',
946
+ * // 'transfer_status',
947
+ * // 'transfer_force',
948
+ * // 'transfer_created_at',
949
+ * // 'transfer_updated_at',
950
+ * // 'transfer_metadata',
951
+ * // 'transfer_transfer_group_id',
952
+ * // 'transfer_transfer_group_identifier',
953
+ * // 'transfer_reverses_id',
954
+ * // 'transfer_reverses_identifier',
955
+ * // 'transfer_status_finalized_at',
956
+ * // 'token_id',
957
+ * // 'token_foreign',
958
+ * // 'wallet_id',
959
+ * // 'wallet_foreign',
960
+ * // 'latest_control_hash',
961
+ * // 'updated_at',
962
+ * ],
963
+ * offset: 0,
964
+ * order: 'desc',
965
+ * return_metadata_total: true,
966
+ * tracking_id: 'mylogId',
967
+ * // transaction_id: Transaction.identifier, // created transaction identifier
968
+ * },
969
+ * );
883
970
  * expect(result).toEqual({
884
971
  * balances: [
885
972
  * {
@@ -917,6 +1004,32 @@ var Client = class {
917
1004
  getBalanceHistory(input, options) {
918
1005
  return import_fns.ClientFunctions.getBalanceHistory({ client: this }, input, options);
919
1006
  }
1007
+ /**
1008
+ *
1009
+ * Get a specific token/wallet balance
1010
+ *
1011
+ * ```javascript
1012
+ *
1013
+ * const result = await wapiClient.getExport(
1014
+ * {
1015
+ * identifier: exportingResult.export.identifier,
1016
+ * },
1017
+ * {
1018
+ * return_signed_url: true,
1019
+ * tracking_id: 'myLogId',
1020
+ * },
1021
+ * );
1022
+ *
1023
+ * ```
1024
+ *
1025
+ * @param {GetExportFnInput} input
1026
+ * @param {GetExportFnOptions} [options]
1027
+ * @returns {StreamPromise<GetExportFnOutput>}
1028
+ *
1029
+ */
1030
+ getExport(input, options) {
1031
+ return import_fns.ClientFunctions.getExport({ client: this }, input, options);
1032
+ }
920
1033
  /**
921
1034
  *
922
1035
  * Retrieve the current state of configurable Flags for your WAPI instance
@@ -937,7 +1050,7 @@ var Client = class {
937
1050
  *
938
1051
  */
939
1052
  getFlags(input, options) {
940
- return import_fns.ClientFunctions.getFlags({ client: this }, input, options);
1053
+ return import_fns.ClientFunctions.getFlags({ client: this }, input != null ? input : {}, options);
941
1054
  }
942
1055
  /**
943
1056
  *
@@ -945,29 +1058,38 @@ var Client = class {
945
1058
  *
946
1059
  * ```javascript
947
1060
  *
948
- * const result = await wapiClient.getStatistics({
949
- * model: 'Transfer',
950
- * aggregator: 'count',
951
- * groups: [{
952
- * type: 'period',
953
- * field: {
954
- * period: 'month',
955
- * timezone: 'Europe/Tallinn',
1061
+ * const result = await wapiClient.getStatistics(
1062
+ * {
1063
+ * model: 'Transfer',
1064
+ * aggregator: 'count',
1065
+ * groups: [
1066
+ * {
1067
+ * type: 'period',
1068
+ * field: {
1069
+ * period: 'month',
1070
+ * timezone: 'Europe/Tallinn',
1071
+ * },
1072
+ * },
1073
+ * ],
1074
+ * filter: {
1075
+ * end_time: new Date(
1076
+ * `${new Date().getFullYear() + 1}-01-01`,
1077
+ * ).toISOString(),
1078
+ * start_time: new Date(
1079
+ * `${new Date().getFullYear()}-01-01`,
1080
+ * ).toISOString(),
956
1081
  * },
957
- * }],
958
- * filter: {
959
- * end_time: (new Date(`${new Date().getFullYear() + 1}-01-01`)).toISOString(),
960
- * start_time: (new Date(`${new Date().getFullYear()}-01-01`)).toISOString(),
961
1082
  * },
962
- * }, {
963
- * tracking_id: 'mylogId',
964
- * // transaction_id: Transaction.identifier, // created transaction identifier
965
- * });
1083
+ * {
1084
+ * tracking_id: 'mylogId',
1085
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1086
+ * },
1087
+ * );
966
1088
  *
967
1089
  * expect(result).toEqual({
968
1090
  * rows: [
969
1091
  * {
970
- * aggregate: 3,
1092
+ * aggregate: 4,
971
1093
  * period: `${new Date().getFullYear()}-${(new Date().getMonth() + 1 + '').padStart(2, '0')}`,
972
1094
  * },
973
1095
  * ],
@@ -981,7 +1103,11 @@ var Client = class {
981
1103
  *
982
1104
  */
983
1105
  getStatistics(input, options) {
984
- return import_fns.ClientFunctions.getStatistics({ client: this }, input, options);
1106
+ return import_fns.ClientFunctions.getStatistics(
1107
+ { client: this },
1108
+ input != null ? input : {},
1109
+ options
1110
+ );
985
1111
  }
986
1112
  /**
987
1113
  *
@@ -989,20 +1115,27 @@ var Client = class {
989
1115
  *
990
1116
  * ```javascript
991
1117
  *
992
- * const result = await wapiClient.getToken({
993
- * foreign: 'EURO',
994
- * }, {
995
- * create_if_not_exists: true,
996
- * // return_only_id: true, // for example purposes we want more than id
997
- * ignore_cache: true,
998
- * tracking_id: 'mylogId',
999
- * // transaction_id: Transaction.identifier, // created transaction identifier
1000
- * });
1118
+ * const result = await wapiClient.getToken(
1119
+ * {
1120
+ * foreign: 'EURO',
1121
+ * },
1122
+ * {
1123
+ * create_if_not_exists: true,
1124
+ * // return_only_id: true, // for example purposes we want more than id
1125
+ * ignore_cache: true,
1126
+ * include_balance: true,
1127
+ * tracking_id: 'mylogId',
1128
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1129
+ * },
1130
+ * );
1001
1131
  *
1002
1132
  * expect(result).toEqual({
1003
- * token: jasmine.objectContaining({
1133
+ * token: expect.objectContaining({
1004
1134
  * foreign: 'EURO',
1005
1135
  * metadata: null,
1136
+ * balance_amount: null,
1137
+ * balance_finished_amount: null,
1138
+ * balance_updated_at: null,
1006
1139
  * }),
1007
1140
  * });
1008
1141
  *
@@ -1014,7 +1147,7 @@ var Client = class {
1014
1147
  *
1015
1148
  */
1016
1149
  getToken(input, options) {
1017
- return import_fns.ClientFunctions.getToken({ client: this }, input, options);
1150
+ return import_fns.ClientFunctions.getToken({ client: this }, input != null ? input : {}, options);
1018
1151
  }
1019
1152
  /**
1020
1153
  *
@@ -1022,14 +1155,17 @@ var Client = class {
1022
1155
  *
1023
1156
  * ```javascript
1024
1157
  *
1025
- * const result = await wapiClient.getTransfer({
1026
- * transfer: 'get-transfer-test',
1027
- * }, {
1028
- * tracking_id: 'mylogId',
1029
- * // transaction_id: Transaction.identifier, // created transaction identifier
1030
- * });
1158
+ * const result = await wapiClient.getTransfer(
1159
+ * {
1160
+ * transfer: 'get-transfer-test',
1161
+ * },
1162
+ * {
1163
+ * tracking_id: 'mylogId',
1164
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1165
+ * },
1166
+ * );
1031
1167
  * expect(result).toEqual({
1032
- * transfer: jasmine.objectContaining({
1168
+ * transfer: expect.objectContaining({
1033
1169
  * identifier: 'get-transfer-test',
1034
1170
  * // ...
1035
1171
  * }),
@@ -1051,16 +1187,19 @@ var Client = class {
1051
1187
  *
1052
1188
  * ```javascript
1053
1189
  *
1054
- * const result = await wapiClient.getTransferGroup({
1055
- * transfer_group: 'customIdentifier',
1056
- * }, {
1057
- * create_if_not_exists: true,
1058
- * // return_only_id: true, // example requires more than just ID
1059
- * tracking_id: 'mylogId',
1060
- * // transaction_id: Transaction.identifier, // created transaction identifier
1061
- * });
1190
+ * const result = await wapiClient.getTransferGroup(
1191
+ * {
1192
+ * transfer_group: 'customIdentifier',
1193
+ * },
1194
+ * {
1195
+ * create_if_not_exists: true,
1196
+ * // return_only_id: true, // example requires more than just ID
1197
+ * tracking_id: 'mylogId',
1198
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1199
+ * },
1200
+ * );
1062
1201
  * expect(result).toEqual({
1063
- * transfer_group: jasmine.objectContaining({
1202
+ * transfer_group: expect.objectContaining({
1064
1203
  * identifier: 'customIdentifier',
1065
1204
  * metadata: null,
1066
1205
  * status: 'open',
@@ -1087,17 +1226,20 @@ var Client = class {
1087
1226
  *
1088
1227
  * ```javascript
1089
1228
  *
1090
- * const result = await wapiClient.getWallet({
1091
- * wallet: WALLETS.withEURFunds0.foreign,
1092
- * }, {
1093
- * tracking_id: 'mylogId',
1094
- * // transaction_id: Transaction.identifier, // created transaction identifier
1095
- * ignore_cache: true,
1096
- * create_if_not_exists: true,
1097
- * return_only_id: false,
1098
- * });
1229
+ * const result = await wapiClient.getWallet(
1230
+ * {
1231
+ * wallet: WALLETS.withEURFunds0.foreign,
1232
+ * },
1233
+ * {
1234
+ * tracking_id: 'mylogId',
1235
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1236
+ * ignore_cache: true,
1237
+ * create_if_not_exists: true,
1238
+ * return_only_id: false,
1239
+ * },
1240
+ * );
1099
1241
  * expect(result).toEqual({
1100
- * wallet: jasmine.objectContaining({
1242
+ * wallet: expect.objectContaining({
1101
1243
  * foreign: WALLETS.withEURFunds0.foreign,
1102
1244
  * }),
1103
1245
  * });
@@ -1114,24 +1256,19 @@ var Client = class {
1114
1256
  }
1115
1257
  /**
1116
1258
  *
1117
- * Get health information about service
1259
+ * Get information about wallet
1118
1260
  *
1119
1261
  * ```javascript
1120
1262
  *
1121
- * const result = await wapiClient.healthcheck({
1122
- * }, {
1123
- * tracking_id: 'mylogId',
1124
- * });
1125
- * expect(result).toEqual({
1126
- * status: 'green',
1127
- * database_size: '3240MB',
1128
- * indexes_size: '1234MB',
1129
- * connection_count: 1,
1130
- * });
1263
+ * const result = await wapiClient.healthcheck();
1264
+ * expect(result.status).toEqual('green');
1265
+ * expect(result.connection_count).toEqual(1);
1266
+ * expect(typeof result.database_size).toEqual('string');
1267
+ * expect(typeof result.indexes_size).toEqual('string');
1131
1268
  *
1132
1269
  * ```
1133
1270
  *
1134
- * @param {HealthcheckFnInput} input
1271
+ * @param {HealthcheckFnInput} [input]
1135
1272
  * @param {HealthcheckFnOptions} [options]
1136
1273
  * @returns {StreamPromise<HealthcheckFnOutput>}
1137
1274
  *
@@ -1154,6 +1291,30 @@ var Client = class {
1154
1291
  options
1155
1292
  });
1156
1293
  }
1294
+ /**
1295
+ *
1296
+ * Search for Balances using either a simple filter or queryBuilder
1297
+ *
1298
+ *
1299
+ * ```javascript
1300
+ *
1301
+ * const result = await wapiClient.listExports(
1302
+ * {},
1303
+ * {
1304
+ * tracking_id: 'myLogId',
1305
+ * },
1306
+ * );
1307
+ *
1308
+ * ```
1309
+ *
1310
+ * @param {ListExportsFnInput} [input]
1311
+ * @param {ListExportsFnOptions} [options]
1312
+ * @returns {StreamPromise<ListExportsFnOutput>}
1313
+ *
1314
+ */
1315
+ listExports(input, options) {
1316
+ return import_fns.ClientFunctions.listExports({ client: this }, input != null ? input : {}, options);
1317
+ }
1157
1318
  /**
1158
1319
  *
1159
1320
  * Reverse a transfer of value between two wallets
@@ -1161,26 +1322,29 @@ var Client = class {
1161
1322
  *
1162
1323
  * ```javascript
1163
1324
  *
1164
- * const result = await wapiClient.reverseTransfer({
1165
- * transfer: 'MYDEPOSIT',
1166
- * status: 'finished',
1167
- * identifier: 'MYREVERSEDEPOSIT',
1168
- * force: true,
1169
- * // metadata: {},
1170
- * metadata: {
1171
- * extraCustomJSON: true,
1325
+ * const result = await wapiClient.reverseTransfer(
1326
+ * {
1327
+ * transfer: 'MYDEPOSIT',
1328
+ * status: 'finished',
1329
+ * identifier: 'MYREVERSEDEPOSIT',
1330
+ * force: true,
1331
+ * // metadata: {},
1332
+ * metadata: {
1333
+ * extraCustomJSON: true,
1334
+ * },
1172
1335
  * },
1173
- * }, {
1174
- * reverse_deposit: true,
1175
- * reverse_withdrawal: true,
1176
- * return_to_balance: true,
1177
- * return_from_balance: true,
1178
- * metadata_action: 'extend',
1179
- * tracking_id: 'mylogId',
1180
- * // transaction_id: Transaction.identifier, // created transaction identifier
1181
- * });
1336
+ * {
1337
+ * reverse_deposit: true,
1338
+ * reverse_withdrawal: true,
1339
+ * return_to_balance: true,
1340
+ * return_from_balance: true,
1341
+ * metadata_action: 'extend',
1342
+ * tracking_id: 'mylogId',
1343
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1344
+ * },
1345
+ * );
1182
1346
  * expect(result).toEqual({
1183
- * transfer: jasmine.objectContaining({
1347
+ * transfer: expect.objectContaining({
1184
1348
  * identifier: 'MYREVERSEDEPOSIT',
1185
1349
  * amount: 10.01,
1186
1350
  * type: 'withdrawal',
@@ -1197,12 +1361,12 @@ var Client = class {
1197
1361
  * token_foreign: DEPOSIT.token_foreign,
1198
1362
  * // ...
1199
1363
  * }),
1200
- * to_balance: jasmine.objectContaining({
1364
+ * to_balance: expect.objectContaining({
1201
1365
  * token_foreign: DEPOSIT.token_foreign,
1202
1366
  * wallet_foreign: DEPOSIT.from_wallet_foreign,
1203
1367
  * // ...
1204
1368
  * }),
1205
- * from_balance: jasmine.objectContaining({
1369
+ * from_balance: expect.objectContaining({
1206
1370
  * token_foreign: DEPOSIT.token_foreign,
1207
1371
  * wallet_foreign: DEPOSIT.to_wallet_foreign,
1208
1372
  * // ...
@@ -1227,26 +1391,29 @@ var Client = class {
1227
1391
  * ```javascript
1228
1392
  *
1229
1393
  * // Should succeed if flag is set
1230
- * const result = await wapiClient.reverseTransferGroup({
1231
- * transfer_group: 'myCustom',
1232
- * identifier: 'myCustomReverse',
1233
- * metadata: {
1234
- * extraCustomJSON: true,
1394
+ * const result = await wapiClient.reverseTransferGroup(
1395
+ * {
1396
+ * transfer_group: 'myCustom',
1397
+ * identifier: 'myCustomReverse',
1398
+ * metadata: {
1399
+ * extraCustomJSON: true,
1400
+ * },
1401
+ * transfer_status: 'finished',
1235
1402
  * },
1236
- * transfer_status: 'finished',
1237
- * }, {
1238
- * validate_final_balance_only: true,
1239
- * reverse_deposit: true,
1240
- * reverse_withdrawal: true,
1241
- * return_transfers: true,
1242
- * metadata_action: 'extend',
1243
- * transfer_metadata_action: 'extend',
1244
- * tracking_id: 'mylogId',
1245
- * // transaction_id: Transaction.identifier, // created transaction identifier
1246
- * });
1403
+ * {
1404
+ * validate_final_balance_only: true,
1405
+ * reverse_deposit: true,
1406
+ * reverse_withdrawal: true,
1407
+ * return_transfers: true,
1408
+ * metadata_action: 'extend',
1409
+ * transfer_metadata_action: 'extend',
1410
+ * tracking_id: 'mylogId',
1411
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1412
+ * },
1413
+ * );
1247
1414
  *
1248
1415
  * expect(result).toEqual({
1249
- * transfer_group: jasmine.objectContaining({
1416
+ * transfer_group: expect.objectContaining({
1250
1417
  * identifier: 'myCustomReverse',
1251
1418
  * status: 'closed',
1252
1419
  * metadata: {
@@ -1256,7 +1423,7 @@ var Client = class {
1256
1423
  * transfer_status: 'finished',
1257
1424
  * }),
1258
1425
  * transfers: [
1259
- * jasmine.objectContaining({
1426
+ * expect.objectContaining({
1260
1427
  * from_wallet_foreign: 'myWallet2',
1261
1428
  * to_wallet_foreign: 'myWallet1',
1262
1429
  * amount: 8,
@@ -1264,7 +1431,7 @@ var Client = class {
1264
1431
  * status: 'finished',
1265
1432
  * token_foreign: 'EUR',
1266
1433
  * }),
1267
- * jasmine.objectContaining({
1434
+ * expect.objectContaining({
1268
1435
  * from_wallet_foreign: 'myWallet1',
1269
1436
  * to_wallet_foreign: 'EUR',
1270
1437
  * amount: 10,
@@ -1301,12 +1468,15 @@ var Client = class {
1301
1468
  *
1302
1469
  * ```javascript
1303
1470
  *
1304
- * const result = await wapiClient.setFlags({
1305
- * production: false,
1306
- * allow_timestamps: true,
1307
- * }, {
1308
- * tracking_id: 'mylog',
1309
- * });
1471
+ * const result = await wapiClient.setFlags(
1472
+ * {
1473
+ * production: false,
1474
+ * allow_timestamps: true,
1475
+ * },
1476
+ * {
1477
+ * tracking_id: 'mylog',
1478
+ * },
1479
+ * );
1310
1480
  * expect(result).toEqual({
1311
1481
  * flags: {
1312
1482
  * production: false,
@@ -1346,7 +1516,7 @@ var Client = class {
1346
1516
  * },
1347
1517
  * );
1348
1518
  * expect(result).toEqual({
1349
- * token: jasmine.objectContaining({
1519
+ * token: expect.objectContaining({
1350
1520
  * belongs_to: TOKENS.EUR.belongs_to,
1351
1521
  * divisor: TOKENS.EUR.divisor,
1352
1522
  * id: TOKENS.EUR.id,
@@ -1378,23 +1548,26 @@ var Client = class {
1378
1548
  *
1379
1549
  * ```javascript
1380
1550
  *
1381
- * const result = await wapiClient.updateTransfer({
1382
- * transfer: 'myPendingDeposit',
1383
- * status: 'cancelled',
1384
- * metadata: {
1385
- * meta: 'new',
1386
- * was: true,
1551
+ * const result = await wapiClient.updateTransfer(
1552
+ * {
1553
+ * transfer: 'myPendingDeposit',
1554
+ * status: 'cancelled',
1555
+ * metadata: {
1556
+ * meta: 'new',
1557
+ * was: true,
1558
+ * },
1387
1559
  * },
1388
- * }, {
1389
- * return_from_balance: true,
1390
- * return_to_balance: true,
1391
- * return_when_not_updated: true,
1392
- * metadata_action: 'extend',
1393
- * tracking_id: 'mylogId',
1394
- * // transaction_id: Transaction.identifier, // created transaction identifier
1395
- * });
1560
+ * {
1561
+ * return_from_balance: true,
1562
+ * return_to_balance: true,
1563
+ * return_when_not_updated: true,
1564
+ * metadata_action: 'extend',
1565
+ * tracking_id: 'mylogId',
1566
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1567
+ * },
1568
+ * );
1396
1569
  * expect(result).toEqual({
1397
- * transfer: jasmine.objectContaining({
1570
+ * transfer: expect.objectContaining({
1398
1571
  * identifier: 'myPendingDeposit',
1399
1572
  * amount: 10.01,
1400
1573
  * type: 'deposit',
@@ -1408,16 +1581,16 @@ var Client = class {
1408
1581
  * meta: 'new',
1409
1582
  * is: true,
1410
1583
  * was: true,
1411
- * }
1584
+ * },
1412
1585
  * }),
1413
- * to_balance: jasmine.objectContaining({
1586
+ * to_balance: expect.objectContaining({
1414
1587
  * token_foreign: 'EURO',
1415
1588
  * wallet_foreign: 'myWallet',
1416
1589
  * pending_amount: 0,
1417
1590
  * finished_amount: 0,
1418
1591
  * amount: 0,
1419
1592
  * }),
1420
- * from_balance: jasmine.objectContaining({
1593
+ * from_balance: expect.objectContaining({
1421
1594
  * token_foreign: 'EURO',
1422
1595
  * wallet_foreign: 'EURO',
1423
1596
  * pending_amount: 0,
@@ -1443,24 +1616,33 @@ var Client = class {
1443
1616
  *
1444
1617
  * ```javascript
1445
1618
  *
1446
- * const result = await wapiClient.updateTransferGroup({
1447
- * transfer_group: 'myCustom',
1448
- * status: 'closed',
1449
- * transfer_status: 'finished',
1450
- * }, {
1451
- * return_transfers: true,
1452
- * return_when_not_updated: true,
1453
- * tracking_id: 'mylogId',
1454
- * // transaction_id: Transaction.identifier, // created transaction identifier
1455
- * });
1619
+ * const result = await wapiClient.updateTransferGroup(
1620
+ * {
1621
+ * transfer_group: 'myCustom',
1622
+ * status: 'closed',
1623
+ * transfer_status: 'finished',
1624
+ * metadata: {
1625
+ * newCustomJson: true,
1626
+ * },
1627
+ * },
1628
+ * {
1629
+ * return_transfers: true,
1630
+ * return_when_not_updated: true,
1631
+ * tracking_id: 'mylogId',
1632
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1633
+ * },
1634
+ * );
1456
1635
  * expect(result).toEqual({
1457
- * transfer_group: jasmine.objectContaining({
1636
+ * transfer_group: expect.objectContaining({
1458
1637
  * identifier: 'myCustom',
1459
1638
  * status: 'closed',
1460
1639
  * transfer_status: 'finished',
1640
+ * metadata: expect.objectContaining({
1641
+ * newCustomJson: true,
1642
+ * }),
1461
1643
  * }),
1462
1644
  * transfers: [
1463
- * jasmine.objectContaining({
1645
+ * expect.objectContaining({
1464
1646
  * identifier: 'transferA',
1465
1647
  * type: 'deposit',
1466
1648
  * status: 'finished',
@@ -1468,7 +1650,7 @@ var Client = class {
1468
1650
  * to_wallet_foreign: 'myWallet1',
1469
1651
  * token_foreign: 'EUR',
1470
1652
  * }),
1471
- * jasmine.objectContaining({
1653
+ * expect.objectContaining({
1472
1654
  * identifier: 'transferB',
1473
1655
  * type: 'transfer',
1474
1656
  * status: 'finished',
@@ -1531,11 +1713,11 @@ var Client = class {
1531
1713
  * },
1532
1714
  * );
1533
1715
  * expect(result).toEqual({
1534
- * wallet: jasmine.objectContaining({
1716
+ * wallet: expect.objectContaining({
1535
1717
  * id: WALLETS.withEURFunds0.id,
1536
1718
  * foreign: WALLETS.withEURFunds0.foreign,
1537
1719
  * name: 'WT4',
1538
- * metadata: {metadata_number: 2},
1720
+ * metadata: { metadata_number: 2 },
1539
1721
  * type: WALLETS.withEURFunds0.type,
1540
1722
  * status: 'disabled',
1541
1723
  * default_allow_negative: false,