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.js CHANGED
@@ -50,7 +50,7 @@ import {
50
50
  isImportDataFnInput
51
51
  } from "./fns/import-data/import-data.guards";
52
52
  var _a;
53
- var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
53
+ var CLIENT_VERSION = (_a = '0.10.0') != null ? _a : "";
54
54
  var Client = class {
55
55
  /**
56
56
  * @internal
@@ -169,7 +169,7 @@ var Client = class {
169
169
  * token_foreign: 'EUR',
170
170
  * },
171
171
  * expiresIn: 60,
172
- * }
172
+ * },
173
173
  * });
174
174
  *
175
175
  * ```
@@ -180,7 +180,11 @@ var Client = class {
180
180
  *
181
181
  */
182
182
  createAccessToken(input, options) {
183
- return ClientFunctions.createAccessToken({ client: this }, input, options);
183
+ return ClientFunctions.createAccessToken(
184
+ { client: this },
185
+ input != null ? input : {},
186
+ options
187
+ );
184
188
  }
185
189
  /**
186
190
  *
@@ -221,25 +225,28 @@ var Client = class {
221
225
  *
222
226
  * ```javascript
223
227
  *
224
- * const result = await wapiClient.createDeposit({
225
- * identifier: 'mycustomId',
226
- * token: 'ForeignForToken',
227
- * wallet: 'ForeignForWallet',
228
- * amount: 10.01,
229
- * metadata: {
230
- * customJsonBlob: true,
228
+ * const result = await wapiClient.createDeposit(
229
+ * {
230
+ * identifier: 'mycustomId',
231
+ * token: 'ForeignForToken',
232
+ * wallet: 'ForeignForWallet',
233
+ * amount: 10.01,
234
+ * metadata: {
235
+ * customJsonBlob: true,
236
+ * },
237
+ * status: 'finished',
238
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
231
239
  * },
232
- * status: 'finished',
233
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
234
- * }, {
235
- * tracking_id: 'mylogId',
236
- * // transaction_id: Transaction.identifier, // created transaction identifier
237
- * create_wallet_if_not_exists: true,
238
- * return_balance: true,
239
- * });
240
+ * {
241
+ * tracking_id: 'mylogId',
242
+ * // transaction_id: Transaction.identifier, // created transaction identifier
243
+ * create_wallet_if_not_exists: true,
244
+ * return_balance: true,
245
+ * },
246
+ * );
240
247
  *
241
248
  * expect(result).toEqual({
242
- * transfer: jasmine.objectContaining({
249
+ * transfer: expect.objectContaining({
243
250
  * identifier: 'mycustomId',
244
251
  * token_foreign: 'ForeignForToken',
245
252
  * to_wallet_foreign: 'ForeignForWallet',
@@ -250,7 +257,7 @@ var Client = class {
250
257
  * status: 'finished',
251
258
  * // ... other fields
252
259
  * }),
253
- * to_balance: jasmine.objectContaining({
260
+ * to_balance: expect.objectContaining({
254
261
  * token_foreign: 'ForeignForToken',
255
262
  * wallet_foreign: 'ForeignForWallet',
256
263
  * pending_amount: 0,
@@ -277,32 +284,35 @@ var Client = class {
277
284
  *
278
285
  * ```javascript
279
286
  *
280
- * const result = await wapiClient.createExchange({
281
- * identifier: 'exchange',
282
- * from_identifier: 'exchange1',
283
- * from_wallet: WALLETS.withEURFunds0.foreign,
284
- * from_token: 'EUR',
285
- * from_amount: 10,
286
- * to_identifier: 'exchange2',
287
- * to_token: 'USD',
288
- * to_wallet: WALLETS.withUSDFunds0.foreign,
289
- * to_amount: 20,
290
- * status: 'finished',
291
- * metadata: {
292
- * exchangeRate: 2,
287
+ * const result = await wapiClient.createExchange(
288
+ * {
289
+ * identifier: 'exchange',
290
+ * from_identifier: 'exchange1',
291
+ * from_wallet: WALLETS.withEURFunds0.foreign,
292
+ * from_token: 'EUR',
293
+ * from_amount: 10,
294
+ * to_identifier: 'exchange2',
295
+ * to_token: 'USD',
296
+ * to_wallet: WALLETS.withUSDFunds0.foreign,
297
+ * to_amount: 20,
298
+ * status: 'finished',
299
+ * metadata: {
300
+ * exchangeRate: 2,
301
+ * },
293
302
  * },
294
- * }, {
295
- * tracking_id: 'mylogId',
296
- * // transaction_id: Transaction.identifier, // created transaction identifier
297
- * });
303
+ * {
304
+ * tracking_id: 'mylogId',
305
+ * // transaction_id: Transaction.identifier, // created transaction identifier
306
+ * },
307
+ * );
298
308
  * expect(result).toEqual({
299
- * transfer_group: jasmine.objectContaining({
309
+ * transfer_group: expect.objectContaining({
300
310
  * identifier: 'exchange',
301
311
  * status: 'closed',
302
312
  * transfer_status: 'finished',
303
313
  * }),
304
314
  * transfers: [
305
- * jasmine.objectContaining({
315
+ * expect.objectContaining({
306
316
  * status: 'finished',
307
317
  * amount: 10,
308
318
  * from_wallet_id: WALLETS.withEURFunds0.id,
@@ -313,7 +323,7 @@ var Client = class {
313
323
  * },
314
324
  * identifier: 'exchange1',
315
325
  * }),
316
- * jasmine.objectContaining({
326
+ * expect.objectContaining({
317
327
  * status: 'finished',
318
328
  * amount: 20,
319
329
  * to_wallet_id: WALLETS.withEURFunds0.id,
@@ -361,14 +371,14 @@ var Client = class {
361
371
  * );
362
372
  *
363
373
  * expect(result).toEqual({
364
- * token: jasmine.objectContaining({
374
+ * token: expect.objectContaining({
365
375
  * foreign: 'EURO',
366
376
  * public: true,
367
377
  * metadata: {
368
378
  * customMetadata: true,
369
379
  * },
370
380
  * }),
371
- * wallet: jasmine.objectContaining({
381
+ * wallet: expect.objectContaining({
372
382
  * default_allow_positive: false,
373
383
  * default_allow_negative: true,
374
384
  * foreign: 'EURO',
@@ -393,26 +403,29 @@ var Client = class {
393
403
  *
394
404
  * ```javascript
395
405
  *
396
- * const result = await wapiClient.createTransfer({
397
- * identifier: 'mynewtransferid',
398
- * token: 'EUR',
399
- * from_wallet: WALLETS.withEURFunds0.foreign,
400
- * to_wallet: 'foreignForMbyExistingWallet',
401
- * amount: 10.01,
402
- * metadata: {
403
- * customJSON: true,
406
+ * const result = await wapiClient.createTransfer(
407
+ * {
408
+ * identifier: 'mynewtransferid',
409
+ * token: 'EUR',
410
+ * from_wallet: WALLETS.withEURFunds0.foreign,
411
+ * to_wallet: 'foreignForMbyExistingWallet',
412
+ * amount: 10.01,
413
+ * metadata: {
414
+ * customJSON: true,
415
+ * },
416
+ * type: 'transfer',
417
+ * status: 'pending',
418
+ * // transfer_group: TransferGroup.identifier,
404
419
  * },
405
- * type: 'transfer',
406
- * status: 'pending',
407
- * // transfer_group: TransferGroup.identifier,
408
- * }, {
409
- * create_to_wallet_if_not_exists: true,
410
- * tracking_id: 'mylogId',
411
- * // transaction_id: Transaction.identifier, // created transaction identifier
412
- * });
420
+ * {
421
+ * create_to_wallet_if_not_exists: true,
422
+ * tracking_id: 'mylogId',
423
+ * // transaction_id: Transaction.identifier, // created transaction identifier
424
+ * },
425
+ * );
413
426
  *
414
427
  * expect(result).toEqual({
415
- * transfer: jasmine.objectContaining({
428
+ * transfer: expect.objectContaining({
416
429
  * identifier: 'mynewtransferid',
417
430
  * token_foreign: 'EUR',
418
431
  * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
@@ -429,7 +442,7 @@ var Client = class {
429
442
  *
430
443
  * ```
431
444
  *
432
- * @param {CreateTransferFnInput} [input]
445
+ * @param {CreateTransferFnInput} input
433
446
  * @param {CreateTransferFnOptions} [options]
434
447
  * @returns {StreamPromise<CreateTransferFnOutput>}
435
448
  *
@@ -446,69 +459,75 @@ var Client = class {
446
459
  *
447
460
  * ```javascript
448
461
  *
449
- * const result = await wapiClient.createTransferGroup({
450
- * identifier: 'mytgIdentifier',
451
- * status: 'closed',
452
- * metadata: {
453
- * customJSON: true,
454
- * },
455
- * transfer_status: 'finished',
456
- * // transfer_group: ParentTransferGroup.identifier,
457
- * children: [
458
- * {
459
- * identifier: 'txIdentifier',
460
- * from_wallet: WALLETS.withEURFunds0.foreign,
461
- * to_wallet: 'newWalletForeign',
462
- * token: 'EUR',
463
- * amount: 10,
464
- * type: 'transfer',
465
- * latest_control_hash: WALLETS.withEURFunds0.latest_control_hash,
466
- * },
467
- * {
468
- * identifier: 'childTgTransferId',
469
- * from_wallet: 'newWalletForeign',
470
- * to_wallet: WALLETS.withEURFunds0.foreign,
471
- * token: 'EUR',
472
- * amount: 9,
473
- * type: 'transfer',
474
- * latest_control_hash: null, // not needed because we just transferred money there,
475
- * },
476
- * ],
477
- * }, {
478
- * validate_final_balance_only: true,
479
- * create_to_wallet_if_not_exists: true,
480
- * tracking_id: 'mylogId',
481
- * // transaction_id: Transaction.identifier, // created transaction identifier
482
- * });
483
- *
484
- * expect(result).toEqual(jasmine.objectContaining({
485
- * transfer_group: jasmine.objectContaining({
462
+ * const result = await wapiClient.createTransferGroup(
463
+ * {
486
464
  * identifier: 'mytgIdentifier',
487
465
  * status: 'closed',
488
466
  * metadata: {
489
467
  * customJSON: true,
490
468
  * },
491
469
  * transfer_status: 'finished',
492
- * }),
493
- * transfers: [
494
- * jasmine.objectContaining({
495
- * identifier: 'txIdentifier',
496
- * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
497
- * to_wallet_foreign: 'newWalletForeign',
498
- * token_foreign: 'EUR',
499
- * amount: 10,
500
- * type: 'transfer',
501
- * }),
502
- * jasmine.objectContaining({
503
- * identifier: 'childTgTransferId',
504
- * from_wallet_foreign: 'newWalletForeign',
505
- * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
506
- * token_foreign: 'EUR',
507
- * amount: 9,
508
- * type: 'transfer',
470
+ * // transfer_group: ParentTransferGroup.identifier,
471
+ * children: [
472
+ * {
473
+ * identifier: 'txIdentifier',
474
+ * from_wallet: WALLETS.withEURFunds0.foreign,
475
+ * to_wallet: 'newWalletForeign',
476
+ * token: 'EUR',
477
+ * amount: 10,
478
+ * type: 'transfer',
479
+ * latest_control_hash:
480
+ * WALLETS.withEURFunds0.latest_control_hash,
481
+ * },
482
+ * {
483
+ * identifier: 'childTgTransferId',
484
+ * from_wallet: 'newWalletForeign',
485
+ * to_wallet: WALLETS.withEURFunds0.foreign,
486
+ * token: 'EUR',
487
+ * amount: 9,
488
+ * type: 'transfer',
489
+ * latest_control_hash: null, // not needed because we just transferred money there,
490
+ * },
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
+ *
501
+ * expect(result).toEqual(
502
+ * expect.objectContaining({
503
+ * transfer_group: expect.objectContaining({
504
+ * identifier: 'mytgIdentifier',
505
+ * status: 'closed',
506
+ * metadata: {
507
+ * customJSON: true,
508
+ * },
509
+ * transfer_status: 'finished',
509
510
  * }),
510
- * ],
511
- * }));
511
+ * transfers: [
512
+ * expect.objectContaining({
513
+ * identifier: 'txIdentifier',
514
+ * from_wallet_foreign: WALLETS.withEURFunds0.foreign,
515
+ * to_wallet_foreign: 'newWalletForeign',
516
+ * token_foreign: 'EUR',
517
+ * amount: 10,
518
+ * type: 'transfer',
519
+ * }),
520
+ * expect.objectContaining({
521
+ * identifier: 'childTgTransferId',
522
+ * from_wallet_foreign: 'newWalletForeign',
523
+ * to_wallet_foreign: WALLETS.withEURFunds0.foreign,
524
+ * token_foreign: 'EUR',
525
+ * amount: 9,
526
+ * type: 'transfer',
527
+ * }),
528
+ * ],
529
+ * }),
530
+ * );
512
531
  *
513
532
  *
514
533
  * ```
@@ -532,91 +551,100 @@ var Client = class {
532
551
  *
533
552
  * ```javascript
534
553
  *
535
- * const result = await wapiClient.createTransfers({
536
- * transfers: [{
537
- * type: 'deposit',
538
- * wallet: WALLETS.validForeign2,
539
- * token: 'EURO',
540
- * amount: 10.01,
541
- * }, {
542
- * from_wallet: WALLETS.validForeign2,
543
- * to_wallet: 'newWalletForeignMby',
544
- * token: 'EURO',
545
- * amount: 10.01,
546
- * latest_control_hash: null, // not required as we just transferred funds
547
- * }, {
548
- * type: 'withdrawal',
549
- * wallet: 'newWalletForeignMby',
550
- * token: 'EURO',
551
- * amount: 10.01,
552
- * latest_control_hash: null, // not required as we just transferred funds
553
- * }],
554
- * }, {
555
- * create_to_wallet_if_not_exists: true,
556
- * return_from_balance: true,
557
- * return_to_balance: true,
558
- * tracking_id: 'mylogId',
559
- * // transaction_id: Transaction.identifier, // created transaction identifier
560
- * });
554
+ * const result = await wapiClient.createTransfers(
555
+ * {
556
+ * transfers: [
557
+ * {
558
+ * type: 'deposit',
559
+ * wallet: WALLETS.validForeign2,
560
+ * token: 'EURO',
561
+ * amount: 10.01,
562
+ * },
563
+ * {
564
+ * from_wallet: WALLETS.validForeign2,
565
+ * to_wallet: 'newWalletForeignMby',
566
+ * token: 'EURO',
567
+ * amount: 10.01,
568
+ * latest_control_hash: null, // not required as we just transferred funds
569
+ * },
570
+ * {
571
+ * type: 'withdrawal',
572
+ * wallet: 'newWalletForeignMby',
573
+ * token: 'EURO',
574
+ * amount: 10.01,
575
+ * latest_control_hash: null, // not required as we just transferred funds
576
+ * },
577
+ * ],
578
+ * },
579
+ * {
580
+ * create_to_wallet_if_not_exists: true,
581
+ * return_from_balance: true,
582
+ * return_to_balance: true,
583
+ * tracking_id: 'mylogId',
584
+ * // transaction_id: Transaction.identifier, // created transaction identifier
585
+ * },
586
+ * );
561
587
  *
562
- * expect(result).toEqual(jasmine.objectContaining({
563
- * transfers: [
564
- * jasmine.objectContaining({
565
- * type: 'deposit',
566
- * token_foreign: 'EURO',
567
- * to_wallet_foreign: WALLETS.validForeign2,
568
- * amount: 10.01,
569
- * }),
570
- * jasmine.objectContaining({
571
- * type: 'transfer',
572
- * token_foreign: 'EURO',
573
- * from_wallet_foreign: WALLETS.validForeign2,
574
- * to_wallet_foreign: 'newWalletForeignMby',
575
- * amount: 10.01,
576
- * }),
577
- * jasmine.objectContaining({
578
- * type: 'withdrawal',
579
- * token_foreign: 'EURO',
580
- * from_wallet_foreign: 'newWalletForeignMby',
581
- * amount: 10.01,
582
- * }),
583
- * ],
584
- * // We are doing a 0 sum with 3 transactions so everything is back to 0
585
- * from_balances: [
586
- * jasmine.objectContaining({
587
- * token_foreign: 'EURO',
588
- * wallet_foreign: 'EURO',
589
- * amount: 0,
590
- * }),
591
- * jasmine.objectContaining({
592
- * token_foreign: 'EURO',
593
- * wallet_foreign: WALLETS.validForeign2,
594
- * amount: 0,
595
- * }),
596
- * jasmine.objectContaining({
597
- * token_foreign: 'EURO',
598
- * wallet_foreign: 'newWalletForeignMby',
599
- * amount: 0,
600
- * }),
601
- * ],
602
- * to_balances: [
603
- * jasmine.objectContaining({
604
- * token_foreign: 'EURO',
605
- * wallet_foreign: WALLETS.validForeign2,
606
- * amount: 0,
607
- * }),
608
- * jasmine.objectContaining({
609
- * token_foreign: 'EURO',
610
- * wallet_foreign: 'newWalletForeignMby',
611
- * amount: 0,
612
- * }),
613
- * jasmine.objectContaining({
614
- * token_foreign: 'EURO',
615
- * wallet_foreign: 'EURO',
616
- * amount: 0,
617
- * }),
618
- * ],
619
- * }));
588
+ * expect(result).toEqual(
589
+ * expect.objectContaining({
590
+ * transfers: [
591
+ * expect.objectContaining({
592
+ * type: 'deposit',
593
+ * token_foreign: 'EURO',
594
+ * to_wallet_foreign: WALLETS.validForeign2,
595
+ * amount: 10.01,
596
+ * }),
597
+ * expect.objectContaining({
598
+ * type: 'transfer',
599
+ * token_foreign: 'EURO',
600
+ * from_wallet_foreign: WALLETS.validForeign2,
601
+ * to_wallet_foreign: 'newWalletForeignMby',
602
+ * amount: 10.01,
603
+ * }),
604
+ * expect.objectContaining({
605
+ * type: 'withdrawal',
606
+ * token_foreign: 'EURO',
607
+ * from_wallet_foreign: 'newWalletForeignMby',
608
+ * amount: 10.01,
609
+ * }),
610
+ * ],
611
+ * // We are doing a 0 sum with 3 transactions so everything is back to 0
612
+ * from_balances: [
613
+ * expect.objectContaining({
614
+ * token_foreign: 'EURO',
615
+ * wallet_foreign: 'EURO',
616
+ * amount: 0,
617
+ * }),
618
+ * expect.objectContaining({
619
+ * token_foreign: 'EURO',
620
+ * wallet_foreign: WALLETS.validForeign2,
621
+ * amount: 0,
622
+ * }),
623
+ * expect.objectContaining({
624
+ * token_foreign: 'EURO',
625
+ * wallet_foreign: 'newWalletForeignMby',
626
+ * amount: 0,
627
+ * }),
628
+ * ],
629
+ * to_balances: [
630
+ * expect.objectContaining({
631
+ * token_foreign: 'EURO',
632
+ * wallet_foreign: WALLETS.validForeign2,
633
+ * amount: 0,
634
+ * }),
635
+ * expect.objectContaining({
636
+ * token_foreign: 'EURO',
637
+ * wallet_foreign: 'newWalletForeignMby',
638
+ * amount: 0,
639
+ * }),
640
+ * expect.objectContaining({
641
+ * token_foreign: 'EURO',
642
+ * wallet_foreign: 'EURO',
643
+ * amount: 0,
644
+ * }),
645
+ * ],
646
+ * }),
647
+ * );
620
648
  *
621
649
  *
622
650
  * ```
@@ -635,20 +663,23 @@ var Client = class {
635
663
  *
636
664
  * ```javascript
637
665
  *
638
- * const result = await wapiClient.createWallet({
639
- * foreign: 'test-wallet-2',
640
- * name: 'Irrelevant',
641
- * metadata: {
642
- * awesome: true,
643
- * invalid: false,
666
+ * const result = await wapiClient.createWallet(
667
+ * {
668
+ * foreign: 'test-wallet-2',
669
+ * name: 'Irrelevant',
670
+ * metadata: {
671
+ * awesome: true,
672
+ * invalid: false,
673
+ * },
644
674
  * },
645
- * }, {
646
- * tracking_id: 'mylogId',
647
- * // transaction_id: Transaction.identifier, // created transaction identifier
648
- * });
675
+ * {
676
+ * tracking_id: 'mylogId',
677
+ * // transaction_id: Transaction.identifier, // created transaction identifier
678
+ * },
679
+ * );
649
680
  *
650
681
  * expect(result).toEqual({
651
- * wallet: jasmine.objectContaining({
682
+ * wallet: expect.objectContaining({
652
683
  * foreign: 'test-wallet-2',
653
684
  * name: 'Irrelevant',
654
685
  * metadata: {
@@ -676,25 +707,28 @@ var Client = class {
676
707
  *
677
708
  * ```javascript
678
709
  *
679
- * const result = await wapiClient.createWithdrawal({
680
- * identifier: 'mycustomId',
681
- * token: 'ForeignForToken',
682
- * wallet: 'ForeignForWallet',
683
- * amount: 10.01,
684
- * metadata: {
685
- * customJsonBlob: true,
710
+ * const result = await wapiClient.createWithdrawal(
711
+ * {
712
+ * identifier: 'mycustomId',
713
+ * token: 'ForeignForToken',
714
+ * wallet: 'ForeignForWallet',
715
+ * amount: 10.01,
716
+ * metadata: {
717
+ * customJsonBlob: true,
718
+ * },
719
+ * status: 'finished',
720
+ * latest_control_hash: null,
721
+ * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
686
722
  * },
687
- * status: 'finished',
688
- * latest_control_hash: null,
689
- * // transfer_group: TransferGroup.identifier, // existing transfer group identifier
690
- * }, {
691
- * tracking_id: 'mylogId',
692
- * // transaction_id: Transaction.identifier, // created transaction identifier
693
- * return_balance: true,
694
- * });
723
+ * {
724
+ * tracking_id: 'mylogId',
725
+ * // transaction_id: Transaction.identifier, // created transaction identifier
726
+ * return_balance: true,
727
+ * },
728
+ * );
695
729
  *
696
730
  * expect(result).toEqual({
697
- * transfer: jasmine.objectContaining({
731
+ * transfer: expect.objectContaining({
698
732
  * identifier: 'mycustomId',
699
733
  * token_foreign: 'ForeignForToken',
700
734
  * from_wallet_foreign: 'ForeignForWallet',
@@ -705,7 +739,7 @@ var Client = class {
705
739
  * status: 'finished',
706
740
  * // ... other fields
707
741
  * }),
708
- * from_balance: jasmine.objectContaining({
742
+ * from_balance: expect.objectContaining({
709
743
  * token_foreign: 'ForeignForToken',
710
744
  * wallet_foreign: 'ForeignForWallet',
711
745
  * pending_amount: 0,
@@ -725,6 +759,50 @@ var Client = class {
725
759
  createWithdrawal(input, options) {
726
760
  return ClientFunctions.createWithdrawal({ client: this }, input, options);
727
761
  }
762
+ /**
763
+ *
764
+ *
765
+ *
766
+ * @param {ExportBalanceHistoryFnInput} input
767
+ * @param {ExportBalanceHistoryFnOptions} [options]
768
+ * @returns {StreamPromise<ExportBalanceHistoryFnOutput>}
769
+ *
770
+ */
771
+ exportBalanceHistory(input, options) {
772
+ return ClientFunctions.exportBalanceHistory(
773
+ { client: this },
774
+ input,
775
+ options
776
+ );
777
+ }
778
+ exportTokens(input, options) {
779
+ if (input === void 0) {
780
+ return ClientFunctions.exportTokens({ client: this });
781
+ }
782
+ return ClientFunctions.exportTokens({ client: this }, input, options);
783
+ }
784
+ exportTransferGroups(input, options) {
785
+ if (input === void 0) {
786
+ return ClientFunctions.exportTransferGroups({ client: this });
787
+ }
788
+ return ClientFunctions.exportTransferGroups(
789
+ { client: this },
790
+ input,
791
+ options
792
+ );
793
+ }
794
+ exportTransfers(input, options) {
795
+ if (input === void 0) {
796
+ return ClientFunctions.exportTransfers({ client: this });
797
+ }
798
+ return ClientFunctions.exportTransfers({ client: this }, input, options);
799
+ }
800
+ exportWallets(input, options) {
801
+ if (input === void 0) {
802
+ return ClientFunctions.exportWallets({ client: this });
803
+ }
804
+ return ClientFunctions.exportWallets({ client: this }, input, options);
805
+ }
728
806
  findBalances(input, options) {
729
807
  if (input === void 0) {
730
808
  return ClientFunctions.findBalances({ client: this });
@@ -761,20 +839,23 @@ var Client = class {
761
839
  *
762
840
  * ```javascript
763
841
  *
764
- * const result = await wapiClient.getBalance({
765
- * wallet: 'myMbyExistingWallet',
766
- * token: 'MBYTOKEN',
767
- * datetime: '2020-01-01',
768
- * }, {
769
- * create_wallet_if_not_exists: true,
770
- * create_token_if_not_exists: true,
771
- * create_if_not_exists: true,
772
- * tracking_id: 'mylogId',
773
- * // transaction_id: Transaction.identifier, // created transaction identifier
774
- * });
842
+ * const result = await wapiClient.getBalance(
843
+ * {
844
+ * wallet: 'myMbyExistingWallet',
845
+ * token: 'MBYTOKEN',
846
+ * datetime: '2020-01-01',
847
+ * },
848
+ * {
849
+ * create_wallet_if_not_exists: true,
850
+ * create_token_if_not_exists: true,
851
+ * create_if_not_exists: true,
852
+ * tracking_id: 'mylogId',
853
+ * // transaction_id: Transaction.identifier, // created transaction identifier
854
+ * },
855
+ * );
775
856
  *
776
857
  * expect(result).toEqual({
777
- * balance: jasmine.objectContaining({
858
+ * balance: expect.objectContaining({
778
859
  * wallet_foreign: 'myMbyExistingWallet',
779
860
  * token_foreign: 'MBYTOKEN',
780
861
  * pending_amount: 0,
@@ -804,66 +885,72 @@ var Client = class {
804
885
  * ```javascript
805
886
  *
806
887
  * // setup
807
- * const deposit = await wapiClient.createDeposit({
808
- * wallet: 'newWallet',
809
- * amount: 10,
810
- * status: 'pending',
811
- * identifier: 'depositUSD',
812
- * token: 'USD',
813
- * }, {
814
- * create_wallet_if_not_exists: true,
815
- * });
888
+ * const deposit = await wapiClient.createDeposit(
889
+ * {
890
+ * wallet: 'newWallet',
891
+ * amount: 10,
892
+ * status: 'pending',
893
+ * identifier: 'depositUSD',
894
+ * token: 'USD',
895
+ * },
896
+ * {
897
+ * create_wallet_if_not_exists: true,
898
+ * },
899
+ * );
816
900
  * const updatedTransfer = await wapiClient.updateTransfer({
817
901
  * transfer: 'depositUSD',
818
902
  * status: 'finished',
819
903
  * });
820
904
  *
821
- * const result = await wapiClient.getBalanceHistory({
822
- * wallet: 'newWallet',
823
- * token: 'USD',
824
- * }, {
825
- * create_token_if_not_exists: true,
826
- * create_wallet_if_not_exists: true,
827
- * limit: 5,
828
- * select: [
829
- * 'transfer_identifier',
830
- * 'pending_amount',
831
- * 'finished_amount',
832
- * 'pending_amount_from',
833
- * 'pending_amount_to',
834
- * 'amount',
835
- * // 'balance_id',
836
- * // 'transfer_id',
837
- * // 'transfer_control_hash',
838
- * // 'transfer_from_wallet_id',
839
- * // 'transfer_from_wallet_foreign',
840
- * // 'transfer_to_wallet_id',
841
- * // 'transfer_to_wallet_foreign',
842
- * // 'transfer_amount',
843
- * // 'transfer_type',
844
- * // 'transfer_status',
845
- * // 'transfer_force',
846
- * // 'transfer_created_at',
847
- * // 'transfer_updated_at',
848
- * // 'transfer_metadata',
849
- * // 'transfer_transfer_group_id',
850
- * // 'transfer_transfer_group_identifier',
851
- * // 'transfer_reverses_id',
852
- * // 'transfer_reverses_identifier',
853
- * // 'transfer_status_finalized_at',
854
- * // 'token_id',
855
- * // 'token_foreign',
856
- * // 'wallet_id',
857
- * // 'wallet_foreign',
858
- * // 'latest_control_hash',
859
- * // 'updated_at',
860
- * ],
861
- * offset: 0,
862
- * order: 'desc',
863
- * return_metadata_total: true,
864
- * tracking_id: 'mylogId',
865
- * // transaction_id: Transaction.identifier, // created transaction identifier
866
- * });
905
+ * const result = await wapiClient.getBalanceHistory(
906
+ * {
907
+ * wallet: 'newWallet',
908
+ * token: 'USD',
909
+ * },
910
+ * {
911
+ * create_token_if_not_exists: true,
912
+ * create_wallet_if_not_exists: true,
913
+ * limit: 5,
914
+ * select: [
915
+ * 'transfer_identifier',
916
+ * 'pending_amount',
917
+ * 'finished_amount',
918
+ * 'pending_amount_from',
919
+ * 'pending_amount_to',
920
+ * 'amount',
921
+ * // 'balance_id',
922
+ * // 'transfer_id',
923
+ * // 'transfer_control_hash',
924
+ * // 'transfer_from_wallet_id',
925
+ * // 'transfer_from_wallet_foreign',
926
+ * // 'transfer_to_wallet_id',
927
+ * // 'transfer_to_wallet_foreign',
928
+ * // 'transfer_amount',
929
+ * // 'transfer_type',
930
+ * // 'transfer_status',
931
+ * // 'transfer_force',
932
+ * // 'transfer_created_at',
933
+ * // 'transfer_updated_at',
934
+ * // 'transfer_metadata',
935
+ * // 'transfer_transfer_group_id',
936
+ * // 'transfer_transfer_group_identifier',
937
+ * // 'transfer_reverses_id',
938
+ * // 'transfer_reverses_identifier',
939
+ * // 'transfer_status_finalized_at',
940
+ * // 'token_id',
941
+ * // 'token_foreign',
942
+ * // 'wallet_id',
943
+ * // 'wallet_foreign',
944
+ * // 'latest_control_hash',
945
+ * // 'updated_at',
946
+ * ],
947
+ * offset: 0,
948
+ * order: 'desc',
949
+ * return_metadata_total: true,
950
+ * tracking_id: 'mylogId',
951
+ * // transaction_id: Transaction.identifier, // created transaction identifier
952
+ * },
953
+ * );
867
954
  * expect(result).toEqual({
868
955
  * balances: [
869
956
  * {
@@ -901,6 +988,32 @@ var Client = class {
901
988
  getBalanceHistory(input, options) {
902
989
  return ClientFunctions.getBalanceHistory({ client: this }, input, options);
903
990
  }
991
+ /**
992
+ *
993
+ * Get a specific token/wallet balance
994
+ *
995
+ * ```javascript
996
+ *
997
+ * const result = await wapiClient.getExport(
998
+ * {
999
+ * identifier: exportingResult.export.identifier,
1000
+ * },
1001
+ * {
1002
+ * return_signed_url: true,
1003
+ * tracking_id: 'myLogId',
1004
+ * },
1005
+ * );
1006
+ *
1007
+ * ```
1008
+ *
1009
+ * @param {GetExportFnInput} input
1010
+ * @param {GetExportFnOptions} [options]
1011
+ * @returns {StreamPromise<GetExportFnOutput>}
1012
+ *
1013
+ */
1014
+ getExport(input, options) {
1015
+ return ClientFunctions.getExport({ client: this }, input, options);
1016
+ }
904
1017
  /**
905
1018
  *
906
1019
  * Retrieve the current state of configurable Flags for your WAPI instance
@@ -921,7 +1034,7 @@ var Client = class {
921
1034
  *
922
1035
  */
923
1036
  getFlags(input, options) {
924
- return ClientFunctions.getFlags({ client: this }, input, options);
1037
+ return ClientFunctions.getFlags({ client: this }, input != null ? input : {}, options);
925
1038
  }
926
1039
  /**
927
1040
  *
@@ -929,29 +1042,38 @@ var Client = class {
929
1042
  *
930
1043
  * ```javascript
931
1044
  *
932
- * const result = await wapiClient.getStatistics({
933
- * model: 'Transfer',
934
- * aggregator: 'count',
935
- * groups: [{
936
- * type: 'period',
937
- * field: {
938
- * period: 'month',
939
- * timezone: 'Europe/Tallinn',
1045
+ * const result = await wapiClient.getStatistics(
1046
+ * {
1047
+ * model: 'Transfer',
1048
+ * aggregator: 'count',
1049
+ * groups: [
1050
+ * {
1051
+ * type: 'period',
1052
+ * field: {
1053
+ * period: 'month',
1054
+ * timezone: 'Europe/Tallinn',
1055
+ * },
1056
+ * },
1057
+ * ],
1058
+ * filter: {
1059
+ * end_time: new Date(
1060
+ * `${new Date().getFullYear() + 1}-01-01`,
1061
+ * ).toISOString(),
1062
+ * start_time: new Date(
1063
+ * `${new Date().getFullYear()}-01-01`,
1064
+ * ).toISOString(),
940
1065
  * },
941
- * }],
942
- * filter: {
943
- * end_time: (new Date(`${new Date().getFullYear() + 1}-01-01`)).toISOString(),
944
- * start_time: (new Date(`${new Date().getFullYear()}-01-01`)).toISOString(),
945
1066
  * },
946
- * }, {
947
- * tracking_id: 'mylogId',
948
- * // transaction_id: Transaction.identifier, // created transaction identifier
949
- * });
1067
+ * {
1068
+ * tracking_id: 'mylogId',
1069
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1070
+ * },
1071
+ * );
950
1072
  *
951
1073
  * expect(result).toEqual({
952
1074
  * rows: [
953
1075
  * {
954
- * aggregate: 3,
1076
+ * aggregate: 4,
955
1077
  * period: `${new Date().getFullYear()}-${(new Date().getMonth() + 1 + '').padStart(2, '0')}`,
956
1078
  * },
957
1079
  * ],
@@ -965,7 +1087,11 @@ var Client = class {
965
1087
  *
966
1088
  */
967
1089
  getStatistics(input, options) {
968
- return ClientFunctions.getStatistics({ client: this }, input, options);
1090
+ return ClientFunctions.getStatistics(
1091
+ { client: this },
1092
+ input != null ? input : {},
1093
+ options
1094
+ );
969
1095
  }
970
1096
  /**
971
1097
  *
@@ -973,20 +1099,27 @@ var Client = class {
973
1099
  *
974
1100
  * ```javascript
975
1101
  *
976
- * const result = await wapiClient.getToken({
977
- * foreign: 'EURO',
978
- * }, {
979
- * create_if_not_exists: true,
980
- * // return_only_id: true, // for example purposes we want more than id
981
- * ignore_cache: true,
982
- * tracking_id: 'mylogId',
983
- * // transaction_id: Transaction.identifier, // created transaction identifier
984
- * });
1102
+ * const result = await wapiClient.getToken(
1103
+ * {
1104
+ * foreign: 'EURO',
1105
+ * },
1106
+ * {
1107
+ * create_if_not_exists: true,
1108
+ * // return_only_id: true, // for example purposes we want more than id
1109
+ * ignore_cache: true,
1110
+ * include_balance: true,
1111
+ * tracking_id: 'mylogId',
1112
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1113
+ * },
1114
+ * );
985
1115
  *
986
1116
  * expect(result).toEqual({
987
- * token: jasmine.objectContaining({
1117
+ * token: expect.objectContaining({
988
1118
  * foreign: 'EURO',
989
1119
  * metadata: null,
1120
+ * balance_amount: null,
1121
+ * balance_finished_amount: null,
1122
+ * balance_updated_at: null,
990
1123
  * }),
991
1124
  * });
992
1125
  *
@@ -998,7 +1131,7 @@ var Client = class {
998
1131
  *
999
1132
  */
1000
1133
  getToken(input, options) {
1001
- return ClientFunctions.getToken({ client: this }, input, options);
1134
+ return ClientFunctions.getToken({ client: this }, input != null ? input : {}, options);
1002
1135
  }
1003
1136
  /**
1004
1137
  *
@@ -1006,14 +1139,17 @@ var Client = class {
1006
1139
  *
1007
1140
  * ```javascript
1008
1141
  *
1009
- * const result = await wapiClient.getTransfer({
1010
- * transfer: 'get-transfer-test',
1011
- * }, {
1012
- * tracking_id: 'mylogId',
1013
- * // transaction_id: Transaction.identifier, // created transaction identifier
1014
- * });
1142
+ * const result = await wapiClient.getTransfer(
1143
+ * {
1144
+ * transfer: 'get-transfer-test',
1145
+ * },
1146
+ * {
1147
+ * tracking_id: 'mylogId',
1148
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1149
+ * },
1150
+ * );
1015
1151
  * expect(result).toEqual({
1016
- * transfer: jasmine.objectContaining({
1152
+ * transfer: expect.objectContaining({
1017
1153
  * identifier: 'get-transfer-test',
1018
1154
  * // ...
1019
1155
  * }),
@@ -1035,16 +1171,19 @@ var Client = class {
1035
1171
  *
1036
1172
  * ```javascript
1037
1173
  *
1038
- * const result = await wapiClient.getTransferGroup({
1039
- * transfer_group: 'customIdentifier',
1040
- * }, {
1041
- * create_if_not_exists: true,
1042
- * // return_only_id: true, // example requires more than just ID
1043
- * tracking_id: 'mylogId',
1044
- * // transaction_id: Transaction.identifier, // created transaction identifier
1045
- * });
1174
+ * const result = await wapiClient.getTransferGroup(
1175
+ * {
1176
+ * transfer_group: 'customIdentifier',
1177
+ * },
1178
+ * {
1179
+ * create_if_not_exists: true,
1180
+ * // return_only_id: true, // example requires more than just ID
1181
+ * tracking_id: 'mylogId',
1182
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1183
+ * },
1184
+ * );
1046
1185
  * expect(result).toEqual({
1047
- * transfer_group: jasmine.objectContaining({
1186
+ * transfer_group: expect.objectContaining({
1048
1187
  * identifier: 'customIdentifier',
1049
1188
  * metadata: null,
1050
1189
  * status: 'open',
@@ -1071,17 +1210,20 @@ var Client = class {
1071
1210
  *
1072
1211
  * ```javascript
1073
1212
  *
1074
- * const result = await wapiClient.getWallet({
1075
- * wallet: WALLETS.withEURFunds0.foreign,
1076
- * }, {
1077
- * tracking_id: 'mylogId',
1078
- * // transaction_id: Transaction.identifier, // created transaction identifier
1079
- * ignore_cache: true,
1080
- * create_if_not_exists: true,
1081
- * return_only_id: false,
1082
- * });
1213
+ * const result = await wapiClient.getWallet(
1214
+ * {
1215
+ * wallet: WALLETS.withEURFunds0.foreign,
1216
+ * },
1217
+ * {
1218
+ * tracking_id: 'mylogId',
1219
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1220
+ * ignore_cache: true,
1221
+ * create_if_not_exists: true,
1222
+ * return_only_id: false,
1223
+ * },
1224
+ * );
1083
1225
  * expect(result).toEqual({
1084
- * wallet: jasmine.objectContaining({
1226
+ * wallet: expect.objectContaining({
1085
1227
  * foreign: WALLETS.withEURFunds0.foreign,
1086
1228
  * }),
1087
1229
  * });
@@ -1098,24 +1240,19 @@ var Client = class {
1098
1240
  }
1099
1241
  /**
1100
1242
  *
1101
- * Get health information about service
1243
+ * Get information about wallet
1102
1244
  *
1103
1245
  * ```javascript
1104
1246
  *
1105
- * const result = await wapiClient.healthcheck({
1106
- * }, {
1107
- * tracking_id: 'mylogId',
1108
- * });
1109
- * expect(result).toEqual({
1110
- * status: 'green',
1111
- * database_size: '3240MB',
1112
- * indexes_size: '1234MB',
1113
- * connection_count: 1,
1114
- * });
1247
+ * const result = await wapiClient.healthcheck();
1248
+ * expect(result.status).toEqual('green');
1249
+ * expect(result.connection_count).toEqual(1);
1250
+ * expect(typeof result.database_size).toEqual('string');
1251
+ * expect(typeof result.indexes_size).toEqual('string');
1115
1252
  *
1116
1253
  * ```
1117
1254
  *
1118
- * @param {HealthcheckFnInput} input
1255
+ * @param {HealthcheckFnInput} [input]
1119
1256
  * @param {HealthcheckFnOptions} [options]
1120
1257
  * @returns {StreamPromise<HealthcheckFnOutput>}
1121
1258
  *
@@ -1138,6 +1275,30 @@ var Client = class {
1138
1275
  options
1139
1276
  });
1140
1277
  }
1278
+ /**
1279
+ *
1280
+ * Search for Balances using either a simple filter or queryBuilder
1281
+ *
1282
+ *
1283
+ * ```javascript
1284
+ *
1285
+ * const result = await wapiClient.listExports(
1286
+ * {},
1287
+ * {
1288
+ * tracking_id: 'myLogId',
1289
+ * },
1290
+ * );
1291
+ *
1292
+ * ```
1293
+ *
1294
+ * @param {ListExportsFnInput} [input]
1295
+ * @param {ListExportsFnOptions} [options]
1296
+ * @returns {StreamPromise<ListExportsFnOutput>}
1297
+ *
1298
+ */
1299
+ listExports(input, options) {
1300
+ return ClientFunctions.listExports({ client: this }, input != null ? input : {}, options);
1301
+ }
1141
1302
  /**
1142
1303
  *
1143
1304
  * Reverse a transfer of value between two wallets
@@ -1145,26 +1306,29 @@ var Client = class {
1145
1306
  *
1146
1307
  * ```javascript
1147
1308
  *
1148
- * const result = await wapiClient.reverseTransfer({
1149
- * transfer: 'MYDEPOSIT',
1150
- * status: 'finished',
1151
- * identifier: 'MYREVERSEDEPOSIT',
1152
- * force: true,
1153
- * // metadata: {},
1154
- * metadata: {
1155
- * extraCustomJSON: true,
1309
+ * const result = await wapiClient.reverseTransfer(
1310
+ * {
1311
+ * transfer: 'MYDEPOSIT',
1312
+ * status: 'finished',
1313
+ * identifier: 'MYREVERSEDEPOSIT',
1314
+ * force: true,
1315
+ * // metadata: {},
1316
+ * metadata: {
1317
+ * extraCustomJSON: true,
1318
+ * },
1156
1319
  * },
1157
- * }, {
1158
- * reverse_deposit: true,
1159
- * reverse_withdrawal: true,
1160
- * return_to_balance: true,
1161
- * return_from_balance: true,
1162
- * metadata_action: 'extend',
1163
- * tracking_id: 'mylogId',
1164
- * // transaction_id: Transaction.identifier, // created transaction identifier
1165
- * });
1320
+ * {
1321
+ * reverse_deposit: true,
1322
+ * reverse_withdrawal: true,
1323
+ * return_to_balance: true,
1324
+ * return_from_balance: true,
1325
+ * metadata_action: 'extend',
1326
+ * tracking_id: 'mylogId',
1327
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1328
+ * },
1329
+ * );
1166
1330
  * expect(result).toEqual({
1167
- * transfer: jasmine.objectContaining({
1331
+ * transfer: expect.objectContaining({
1168
1332
  * identifier: 'MYREVERSEDEPOSIT',
1169
1333
  * amount: 10.01,
1170
1334
  * type: 'withdrawal',
@@ -1181,12 +1345,12 @@ var Client = class {
1181
1345
  * token_foreign: DEPOSIT.token_foreign,
1182
1346
  * // ...
1183
1347
  * }),
1184
- * to_balance: jasmine.objectContaining({
1348
+ * to_balance: expect.objectContaining({
1185
1349
  * token_foreign: DEPOSIT.token_foreign,
1186
1350
  * wallet_foreign: DEPOSIT.from_wallet_foreign,
1187
1351
  * // ...
1188
1352
  * }),
1189
- * from_balance: jasmine.objectContaining({
1353
+ * from_balance: expect.objectContaining({
1190
1354
  * token_foreign: DEPOSIT.token_foreign,
1191
1355
  * wallet_foreign: DEPOSIT.to_wallet_foreign,
1192
1356
  * // ...
@@ -1211,26 +1375,29 @@ var Client = class {
1211
1375
  * ```javascript
1212
1376
  *
1213
1377
  * // Should succeed if flag is set
1214
- * const result = await wapiClient.reverseTransferGroup({
1215
- * transfer_group: 'myCustom',
1216
- * identifier: 'myCustomReverse',
1217
- * metadata: {
1218
- * extraCustomJSON: true,
1378
+ * const result = await wapiClient.reverseTransferGroup(
1379
+ * {
1380
+ * transfer_group: 'myCustom',
1381
+ * identifier: 'myCustomReverse',
1382
+ * metadata: {
1383
+ * extraCustomJSON: true,
1384
+ * },
1385
+ * transfer_status: 'finished',
1219
1386
  * },
1220
- * transfer_status: 'finished',
1221
- * }, {
1222
- * validate_final_balance_only: true,
1223
- * reverse_deposit: true,
1224
- * reverse_withdrawal: true,
1225
- * return_transfers: true,
1226
- * metadata_action: 'extend',
1227
- * transfer_metadata_action: 'extend',
1228
- * tracking_id: 'mylogId',
1229
- * // transaction_id: Transaction.identifier, // created transaction identifier
1230
- * });
1387
+ * {
1388
+ * validate_final_balance_only: true,
1389
+ * reverse_deposit: true,
1390
+ * reverse_withdrawal: true,
1391
+ * return_transfers: true,
1392
+ * metadata_action: 'extend',
1393
+ * transfer_metadata_action: 'extend',
1394
+ * tracking_id: 'mylogId',
1395
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1396
+ * },
1397
+ * );
1231
1398
  *
1232
1399
  * expect(result).toEqual({
1233
- * transfer_group: jasmine.objectContaining({
1400
+ * transfer_group: expect.objectContaining({
1234
1401
  * identifier: 'myCustomReverse',
1235
1402
  * status: 'closed',
1236
1403
  * metadata: {
@@ -1240,7 +1407,7 @@ var Client = class {
1240
1407
  * transfer_status: 'finished',
1241
1408
  * }),
1242
1409
  * transfers: [
1243
- * jasmine.objectContaining({
1410
+ * expect.objectContaining({
1244
1411
  * from_wallet_foreign: 'myWallet2',
1245
1412
  * to_wallet_foreign: 'myWallet1',
1246
1413
  * amount: 8,
@@ -1248,7 +1415,7 @@ var Client = class {
1248
1415
  * status: 'finished',
1249
1416
  * token_foreign: 'EUR',
1250
1417
  * }),
1251
- * jasmine.objectContaining({
1418
+ * expect.objectContaining({
1252
1419
  * from_wallet_foreign: 'myWallet1',
1253
1420
  * to_wallet_foreign: 'EUR',
1254
1421
  * amount: 10,
@@ -1285,12 +1452,15 @@ var Client = class {
1285
1452
  *
1286
1453
  * ```javascript
1287
1454
  *
1288
- * const result = await wapiClient.setFlags({
1289
- * production: false,
1290
- * allow_timestamps: true,
1291
- * }, {
1292
- * tracking_id: 'mylog',
1293
- * });
1455
+ * const result = await wapiClient.setFlags(
1456
+ * {
1457
+ * production: false,
1458
+ * allow_timestamps: true,
1459
+ * },
1460
+ * {
1461
+ * tracking_id: 'mylog',
1462
+ * },
1463
+ * );
1294
1464
  * expect(result).toEqual({
1295
1465
  * flags: {
1296
1466
  * production: false,
@@ -1330,7 +1500,7 @@ var Client = class {
1330
1500
  * },
1331
1501
  * );
1332
1502
  * expect(result).toEqual({
1333
- * token: jasmine.objectContaining({
1503
+ * token: expect.objectContaining({
1334
1504
  * belongs_to: TOKENS.EUR.belongs_to,
1335
1505
  * divisor: TOKENS.EUR.divisor,
1336
1506
  * id: TOKENS.EUR.id,
@@ -1362,23 +1532,26 @@ var Client = class {
1362
1532
  *
1363
1533
  * ```javascript
1364
1534
  *
1365
- * const result = await wapiClient.updateTransfer({
1366
- * transfer: 'myPendingDeposit',
1367
- * status: 'cancelled',
1368
- * metadata: {
1369
- * meta: 'new',
1370
- * was: true,
1535
+ * const result = await wapiClient.updateTransfer(
1536
+ * {
1537
+ * transfer: 'myPendingDeposit',
1538
+ * status: 'cancelled',
1539
+ * metadata: {
1540
+ * meta: 'new',
1541
+ * was: true,
1542
+ * },
1371
1543
  * },
1372
- * }, {
1373
- * return_from_balance: true,
1374
- * return_to_balance: true,
1375
- * return_when_not_updated: true,
1376
- * metadata_action: 'extend',
1377
- * tracking_id: 'mylogId',
1378
- * // transaction_id: Transaction.identifier, // created transaction identifier
1379
- * });
1544
+ * {
1545
+ * return_from_balance: true,
1546
+ * return_to_balance: true,
1547
+ * return_when_not_updated: true,
1548
+ * metadata_action: 'extend',
1549
+ * tracking_id: 'mylogId',
1550
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1551
+ * },
1552
+ * );
1380
1553
  * expect(result).toEqual({
1381
- * transfer: jasmine.objectContaining({
1554
+ * transfer: expect.objectContaining({
1382
1555
  * identifier: 'myPendingDeposit',
1383
1556
  * amount: 10.01,
1384
1557
  * type: 'deposit',
@@ -1392,16 +1565,16 @@ var Client = class {
1392
1565
  * meta: 'new',
1393
1566
  * is: true,
1394
1567
  * was: true,
1395
- * }
1568
+ * },
1396
1569
  * }),
1397
- * to_balance: jasmine.objectContaining({
1570
+ * to_balance: expect.objectContaining({
1398
1571
  * token_foreign: 'EURO',
1399
1572
  * wallet_foreign: 'myWallet',
1400
1573
  * pending_amount: 0,
1401
1574
  * finished_amount: 0,
1402
1575
  * amount: 0,
1403
1576
  * }),
1404
- * from_balance: jasmine.objectContaining({
1577
+ * from_balance: expect.objectContaining({
1405
1578
  * token_foreign: 'EURO',
1406
1579
  * wallet_foreign: 'EURO',
1407
1580
  * pending_amount: 0,
@@ -1427,24 +1600,33 @@ var Client = class {
1427
1600
  *
1428
1601
  * ```javascript
1429
1602
  *
1430
- * const result = await wapiClient.updateTransferGroup({
1431
- * transfer_group: 'myCustom',
1432
- * status: 'closed',
1433
- * transfer_status: 'finished',
1434
- * }, {
1435
- * return_transfers: true,
1436
- * return_when_not_updated: true,
1437
- * tracking_id: 'mylogId',
1438
- * // transaction_id: Transaction.identifier, // created transaction identifier
1439
- * });
1603
+ * const result = await wapiClient.updateTransferGroup(
1604
+ * {
1605
+ * transfer_group: 'myCustom',
1606
+ * status: 'closed',
1607
+ * transfer_status: 'finished',
1608
+ * metadata: {
1609
+ * newCustomJson: true,
1610
+ * },
1611
+ * },
1612
+ * {
1613
+ * return_transfers: true,
1614
+ * return_when_not_updated: true,
1615
+ * tracking_id: 'mylogId',
1616
+ * // transaction_id: Transaction.identifier, // created transaction identifier
1617
+ * },
1618
+ * );
1440
1619
  * expect(result).toEqual({
1441
- * transfer_group: jasmine.objectContaining({
1620
+ * transfer_group: expect.objectContaining({
1442
1621
  * identifier: 'myCustom',
1443
1622
  * status: 'closed',
1444
1623
  * transfer_status: 'finished',
1624
+ * metadata: expect.objectContaining({
1625
+ * newCustomJson: true,
1626
+ * }),
1445
1627
  * }),
1446
1628
  * transfers: [
1447
- * jasmine.objectContaining({
1629
+ * expect.objectContaining({
1448
1630
  * identifier: 'transferA',
1449
1631
  * type: 'deposit',
1450
1632
  * status: 'finished',
@@ -1452,7 +1634,7 @@ var Client = class {
1452
1634
  * to_wallet_foreign: 'myWallet1',
1453
1635
  * token_foreign: 'EUR',
1454
1636
  * }),
1455
- * jasmine.objectContaining({
1637
+ * expect.objectContaining({
1456
1638
  * identifier: 'transferB',
1457
1639
  * type: 'transfer',
1458
1640
  * status: 'finished',
@@ -1515,11 +1697,11 @@ var Client = class {
1515
1697
  * },
1516
1698
  * );
1517
1699
  * expect(result).toEqual({
1518
- * wallet: jasmine.objectContaining({
1700
+ * wallet: expect.objectContaining({
1519
1701
  * id: WALLETS.withEURFunds0.id,
1520
1702
  * foreign: WALLETS.withEURFunds0.foreign,
1521
1703
  * name: 'WT4',
1522
- * metadata: {metadata_number: 2},
1704
+ * metadata: { metadata_number: 2 },
1523
1705
  * type: WALLETS.withEURFunds0.type,
1524
1706
  * status: 'disabled',
1525
1707
  * default_allow_negative: false,