@actual-app/sync-server 26.3.0 → 26.4.0-nightly.20260305

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 (291) hide show
  1. package/build/.tsbuildinfo +1 -0
  2. package/build/app.d.ts +2 -0
  3. package/build/app.d.ts.map +1 -0
  4. package/build/bin/actual-server.d.ts +3 -0
  5. package/build/bin/actual-server.d.ts.map +1 -0
  6. package/build/bin/add-import-extensions.d.mts +3 -0
  7. package/build/bin/add-import-extensions.d.mts.map +1 -0
  8. package/build/migrations/1694360000000-create-folders.d.ts +3 -0
  9. package/build/migrations/1694360000000-create-folders.d.ts.map +1 -0
  10. package/build/migrations/1694360479680-create-account-db.d.ts +3 -0
  11. package/build/migrations/1694360479680-create-account-db.d.ts.map +1 -0
  12. package/build/migrations/1694362247011-create-secret-table.d.ts +3 -0
  13. package/build/migrations/1694362247011-create-secret-table.d.ts.map +1 -0
  14. package/build/migrations/1702667624000-rename-nordigen-secrets.d.ts +3 -0
  15. package/build/migrations/1702667624000-rename-nordigen-secrets.d.ts.map +1 -0
  16. package/build/migrations/1718889148000-openid.d.ts +3 -0
  17. package/build/migrations/1718889148000-openid.d.ts.map +1 -0
  18. package/build/migrations/1719409568000-multiuser.d.ts +3 -0
  19. package/build/migrations/1719409568000-multiuser.d.ts.map +1 -0
  20. package/build/migrations/1763873568237-server-global-prefs.d.ts +3 -0
  21. package/build/migrations/1763873568237-server-global-prefs.d.ts.map +1 -0
  22. package/build/migrations/1763873600000-backfill-files-owner.d.ts +3 -0
  23. package/build/migrations/1763873600000-backfill-files-owner.d.ts.map +1 -0
  24. package/build/src/account-db.d.ts +28 -0
  25. package/build/src/account-db.d.ts.map +1 -0
  26. package/build/src/accounts/openid.d.ts +22 -0
  27. package/build/src/accounts/openid.d.ts.map +1 -0
  28. package/build/src/accounts/password.d.ts +19 -0
  29. package/build/src/accounts/password.d.ts.map +1 -0
  30. package/build/src/app-account.d.ts +3 -0
  31. package/build/src/app-account.d.ts.map +1 -0
  32. package/build/src/app-account.test.d.ts +2 -0
  33. package/build/src/app-account.test.d.ts.map +1 -0
  34. package/build/src/app-admin.d.ts +3 -0
  35. package/build/src/app-admin.d.ts.map +1 -0
  36. package/build/src/app-admin.test.d.ts +2 -0
  37. package/build/src/app-admin.test.d.ts.map +1 -0
  38. package/build/src/app-cors-proxy.d.ts +4 -0
  39. package/build/src/app-cors-proxy.d.ts.map +1 -0
  40. package/build/src/app-cors-proxy.test.d.ts +2 -0
  41. package/build/src/app-cors-proxy.test.d.ts.map +1 -0
  42. package/build/src/app-gocardless/app-gocardless.d.ts +3 -0
  43. package/build/src/app-gocardless/app-gocardless.d.ts.map +1 -0
  44. package/build/src/app-gocardless/app-gocardless.js +1 -1
  45. package/build/src/app-gocardless/bank-factory.d.ts +4 -0
  46. package/build/src/app-gocardless/bank-factory.d.ts.map +1 -0
  47. package/build/src/app-gocardless/banks/abanca_caglesmm.d.ts +21 -0
  48. package/build/src/app-gocardless/banks/abanca_caglesmm.d.ts.map +1 -0
  49. package/build/src/app-gocardless/banks/abnamro_abnanl2a.d.ts +21 -0
  50. package/build/src/app-gocardless/banks/abnamro_abnanl2a.d.ts.map +1 -0
  51. package/build/src/app-gocardless/banks/american_express_aesudef1.d.ts +43 -0
  52. package/build/src/app-gocardless/banks/american_express_aesudef1.d.ts.map +1 -0
  53. package/build/src/app-gocardless/banks/bancsabadell_bsabesbbb.d.ts +21 -0
  54. package/build/src/app-gocardless/banks/bancsabadell_bsabesbbb.d.ts.map +1 -0
  55. package/build/src/app-gocardless/banks/bank.interface.d.ts +35 -0
  56. package/build/src/app-gocardless/banks/bank.interface.d.ts.map +1 -0
  57. package/build/src/app-gocardless/banks/bank_of_ireland_b365_bofiie2d.d.ts +21 -0
  58. package/build/src/app-gocardless/banks/bank_of_ireland_b365_bofiie2d.d.ts.map +1 -0
  59. package/build/src/app-gocardless/banks/bankinter_bkbkesmm.d.ts +21 -0
  60. package/build/src/app-gocardless/banks/bankinter_bkbkesmm.d.ts.map +1 -0
  61. package/build/src/app-gocardless/banks/belfius_gkccbebb.d.ts +21 -0
  62. package/build/src/app-gocardless/banks/belfius_gkccbebb.d.ts.map +1 -0
  63. package/build/src/app-gocardless/banks/berliner_sparkasse_beladebexxx.d.ts +29 -0
  64. package/build/src/app-gocardless/banks/berliner_sparkasse_beladebexxx.d.ts.map +1 -0
  65. package/build/src/app-gocardless/banks/bnp_be_gebabebb.d.ts +31 -0
  66. package/build/src/app-gocardless/banks/bnp_be_gebabebb.d.ts.map +1 -0
  67. package/build/src/app-gocardless/banks/boursobank_bousfrppxxx.d.ts +21 -0
  68. package/build/src/app-gocardless/banks/boursobank_bousfrppxxx.d.ts.map +1 -0
  69. package/build/src/app-gocardless/banks/bper_retail_bpmoit22.d.ts +4 -0
  70. package/build/src/app-gocardless/banks/bper_retail_bpmoit22.d.ts.map +1 -0
  71. package/build/src/app-gocardless/banks/cbc_cregbebb.d.ts +25 -0
  72. package/build/src/app-gocardless/banks/cbc_cregbebb.d.ts.map +1 -0
  73. package/build/src/app-gocardless/banks/cetelem_cetmptp1xxx.d.ts +24 -0
  74. package/build/src/app-gocardless/banks/cetelem_cetmptp1xxx.d.ts.map +1 -0
  75. package/build/src/app-gocardless/banks/commerzbank_cobadeff.d.ts +21 -0
  76. package/build/src/app-gocardless/banks/commerzbank_cobadeff.d.ts.map +1 -0
  77. package/build/src/app-gocardless/banks/danskebank_privat.d.ts +21 -0
  78. package/build/src/app-gocardless/banks/danskebank_privat.d.ts.map +1 -0
  79. package/build/src/app-gocardless/banks/direkt_heladef1822.d.ts +21 -0
  80. package/build/src/app-gocardless/banks/direkt_heladef1822.d.ts.map +1 -0
  81. package/build/src/app-gocardless/banks/easybank_bawaatww.d.ts +21 -0
  82. package/build/src/app-gocardless/banks/easybank_bawaatww.d.ts.map +1 -0
  83. package/build/src/app-gocardless/banks/entercard_swednokk.d.ts +21 -0
  84. package/build/src/app-gocardless/banks/entercard_swednokk.d.ts.map +1 -0
  85. package/build/src/app-gocardless/banks/fortuneo_ftnofrp1xxx.d.ts +21 -0
  86. package/build/src/app-gocardless/banks/fortuneo_ftnofrp1xxx.d.ts.map +1 -0
  87. package/build/src/app-gocardless/banks/hype_hyeeit22.d.ts +21 -0
  88. package/build/src/app-gocardless/banks/hype_hyeeit22.d.ts.map +1 -0
  89. package/build/src/app-gocardless/banks/ing_ingbrobu.d.ts +21 -0
  90. package/build/src/app-gocardless/banks/ing_ingbrobu.d.ts.map +1 -0
  91. package/build/src/app-gocardless/banks/ing_ingddeff.d.ts +21 -0
  92. package/build/src/app-gocardless/banks/ing_ingddeff.d.ts.map +1 -0
  93. package/build/src/app-gocardless/banks/ing_pl_ingbplpw.d.ts +21 -0
  94. package/build/src/app-gocardless/banks/ing_pl_ingbplpw.d.ts.map +1 -0
  95. package/build/src/app-gocardless/banks/integration-bank.d.ts +71 -0
  96. package/build/src/app-gocardless/banks/integration-bank.d.ts.map +1 -0
  97. package/build/src/app-gocardless/banks/isybank_itbbitmm.d.ts +21 -0
  98. package/build/src/app-gocardless/banks/isybank_itbbitmm.d.ts.map +1 -0
  99. package/build/src/app-gocardless/banks/kbc_kredbebb.d.ts +25 -0
  100. package/build/src/app-gocardless/banks/kbc_kredbebb.d.ts.map +1 -0
  101. package/build/src/app-gocardless/banks/lhv_lhvbee22.d.ts +21 -0
  102. package/build/src/app-gocardless/banks/lhv_lhvbee22.d.ts.map +1 -0
  103. package/build/src/app-gocardless/banks/mbank_retail_brexplpw.d.ts +37 -0
  104. package/build/src/app-gocardless/banks/mbank_retail_brexplpw.d.ts.map +1 -0
  105. package/build/src/app-gocardless/banks/nationwide_naiagb21.d.ts +21 -0
  106. package/build/src/app-gocardless/banks/nationwide_naiagb21.d.ts.map +1 -0
  107. package/build/src/app-gocardless/banks/nbg_ethngraaxxx.d.ts +34 -0
  108. package/build/src/app-gocardless/banks/nbg_ethngraaxxx.d.ts.map +1 -0
  109. package/build/src/app-gocardless/banks/norwegian_xx_norwnok1.d.ts +30 -0
  110. package/build/src/app-gocardless/banks/norwegian_xx_norwnok1.d.ts.map +1 -0
  111. package/build/src/app-gocardless/banks/raiffeisen_at_rzbaatww.d.ts +21 -0
  112. package/build/src/app-gocardless/banks/raiffeisen_at_rzbaatww.d.ts.map +1 -0
  113. package/build/src/app-gocardless/banks/revolut_revolt21.d.ts +21 -0
  114. package/build/src/app-gocardless/banks/revolut_revolt21.d.ts.map +1 -0
  115. package/build/src/app-gocardless/banks/sandboxfinance_sfin0000.d.ts +35 -0
  116. package/build/src/app-gocardless/banks/sandboxfinance_sfin0000.d.ts.map +1 -0
  117. package/build/src/app-gocardless/banks/seb_kort_bank_ab.d.ts +33 -0
  118. package/build/src/app-gocardless/banks/seb_kort_bank_ab.d.ts.map +1 -0
  119. package/build/src/app-gocardless/banks/seb_privat.d.ts +21 -0
  120. package/build/src/app-gocardless/banks/seb_privat.d.ts.map +1 -0
  121. package/build/src/app-gocardless/banks/sparnord_spnodk22.d.ts +24 -0
  122. package/build/src/app-gocardless/banks/sparnord_spnodk22.d.ts.map +1 -0
  123. package/build/src/app-gocardless/banks/spk_karlsruhe_karsde66.d.ts +29 -0
  124. package/build/src/app-gocardless/banks/spk_karlsruhe_karsde66.d.ts.map +1 -0
  125. package/build/src/app-gocardless/banks/spk_marburg_biedenkopf_heladef1mar.d.ts +21 -0
  126. package/build/src/app-gocardless/banks/spk_marburg_biedenkopf_heladef1mar.d.ts.map +1 -0
  127. package/build/src/app-gocardless/banks/spk_worms_alzey_ried_malade51wor.d.ts +21 -0
  128. package/build/src/app-gocardless/banks/spk_worms_alzey_ried_malade51wor.d.ts.map +1 -0
  129. package/build/src/app-gocardless/banks/ssk_dusseldorf_dussdeddxxx.d.ts +21 -0
  130. package/build/src/app-gocardless/banks/ssk_dusseldorf_dussdeddxxx.d.ts.map +1 -0
  131. package/build/src/app-gocardless/banks/ssk_munchen.d.ts +29 -0
  132. package/build/src/app-gocardless/banks/ssk_munchen.d.ts.map +1 -0
  133. package/build/src/app-gocardless/banks/swedbank_habalv22.d.ts +24 -0
  134. package/build/src/app-gocardless/banks/swedbank_habalv22.d.ts.map +1 -0
  135. package/build/src/app-gocardless/banks/tests/abanca_caglesmm.spec.d.ts +2 -0
  136. package/build/src/app-gocardless/banks/tests/abanca_caglesmm.spec.d.ts.map +1 -0
  137. package/build/src/app-gocardless/banks/tests/abnamro_abnanl2a.spec.d.ts +2 -0
  138. package/build/src/app-gocardless/banks/tests/abnamro_abnanl2a.spec.d.ts.map +1 -0
  139. package/build/src/app-gocardless/banks/tests/bancsabadell_bsabesbbb.spec.d.ts +2 -0
  140. package/build/src/app-gocardless/banks/tests/bancsabadell_bsabesbbb.spec.d.ts.map +1 -0
  141. package/build/src/app-gocardless/banks/tests/belfius_gkccbebb.spec.d.ts +2 -0
  142. package/build/src/app-gocardless/banks/tests/belfius_gkccbebb.spec.d.ts.map +1 -0
  143. package/build/src/app-gocardless/banks/tests/boursobank_bousfrppxxx.spec.d.ts +2 -0
  144. package/build/src/app-gocardless/banks/tests/boursobank_bousfrppxxx.spec.d.ts.map +1 -0
  145. package/build/src/app-gocardless/banks/tests/bper_retail_bpmoit22.spec.d.ts +2 -0
  146. package/build/src/app-gocardless/banks/tests/bper_retail_bpmoit22.spec.d.ts.map +1 -0
  147. package/build/src/app-gocardless/banks/tests/cbc_cregbebb.spec.d.ts +2 -0
  148. package/build/src/app-gocardless/banks/tests/cbc_cregbebb.spec.d.ts.map +1 -0
  149. package/build/src/app-gocardless/banks/tests/commerzbank_cobadeff.spec.d.ts +2 -0
  150. package/build/src/app-gocardless/banks/tests/commerzbank_cobadeff.spec.d.ts.map +1 -0
  151. package/build/src/app-gocardless/banks/tests/easybank_bawaatww.spec.d.ts +2 -0
  152. package/build/src/app-gocardless/banks/tests/easybank_bawaatww.spec.d.ts.map +1 -0
  153. package/build/src/app-gocardless/banks/tests/fortuneo_ftnofrp1xxx.spec.d.ts +2 -0
  154. package/build/src/app-gocardless/banks/tests/fortuneo_ftnofrp1xxx.spec.d.ts.map +1 -0
  155. package/build/src/app-gocardless/banks/tests/ing_ingddeff.spec.d.ts +2 -0
  156. package/build/src/app-gocardless/banks/tests/ing_ingddeff.spec.d.ts.map +1 -0
  157. package/build/src/app-gocardless/banks/tests/ing_pl_ingbplpw.spec.d.ts +2 -0
  158. package/build/src/app-gocardless/banks/tests/ing_pl_ingbplpw.spec.d.ts.map +1 -0
  159. package/build/src/app-gocardless/banks/tests/integration_bank.spec.d.ts +2 -0
  160. package/build/src/app-gocardless/banks/tests/integration_bank.spec.d.ts.map +1 -0
  161. package/build/src/app-gocardless/banks/tests/kbc_kredbebb.spec.d.ts +2 -0
  162. package/build/src/app-gocardless/banks/tests/kbc_kredbebb.spec.d.ts.map +1 -0
  163. package/build/src/app-gocardless/banks/tests/lhv_lhvbee22.spec.d.ts +2 -0
  164. package/build/src/app-gocardless/banks/tests/lhv_lhvbee22.spec.d.ts.map +1 -0
  165. package/build/src/app-gocardless/banks/tests/mbank_retail_brexplpw.spec.d.ts +2 -0
  166. package/build/src/app-gocardless/banks/tests/mbank_retail_brexplpw.spec.d.ts.map +1 -0
  167. package/build/src/app-gocardless/banks/tests/nationwide_naiagb21.spec.d.ts +2 -0
  168. package/build/src/app-gocardless/banks/tests/nationwide_naiagb21.spec.d.ts.map +1 -0
  169. package/build/src/app-gocardless/banks/tests/nbg_ethngraaxxx.spec.d.ts +2 -0
  170. package/build/src/app-gocardless/banks/tests/nbg_ethngraaxxx.spec.d.ts.map +1 -0
  171. package/build/src/app-gocardless/banks/tests/raiffeisen_at_rzbaatww.spec.d.ts +2 -0
  172. package/build/src/app-gocardless/banks/tests/raiffeisen_at_rzbaatww.spec.d.ts.map +1 -0
  173. package/build/src/app-gocardless/banks/tests/revolut_revolt21.spec.d.ts +2 -0
  174. package/build/src/app-gocardless/banks/tests/revolut_revolt21.spec.d.ts.map +1 -0
  175. package/build/src/app-gocardless/banks/tests/sandboxfinance_sfin0000.spec.d.ts +2 -0
  176. package/build/src/app-gocardless/banks/tests/sandboxfinance_sfin0000.spec.d.ts.map +1 -0
  177. package/build/src/app-gocardless/banks/tests/spk_marburg_biedenkopf_heladef1mar.spec.d.ts +2 -0
  178. package/build/src/app-gocardless/banks/tests/spk_marburg_biedenkopf_heladef1mar.spec.d.ts.map +1 -0
  179. package/build/src/app-gocardless/banks/tests/ssk_dusseldorf_dussdeddxxx.spec.d.ts +2 -0
  180. package/build/src/app-gocardless/banks/tests/ssk_dusseldorf_dussdeddxxx.spec.d.ts.map +1 -0
  181. package/build/src/app-gocardless/banks/tests/swedbank_habalv22.spec.d.ts +2 -0
  182. package/build/src/app-gocardless/banks/tests/swedbank_habalv22.spec.d.ts.map +1 -0
  183. package/build/src/app-gocardless/banks/tests/virgin_nrnbgb22.spec.d.ts +2 -0
  184. package/build/src/app-gocardless/banks/tests/virgin_nrnbgb22.spec.d.ts.map +1 -0
  185. package/build/src/app-gocardless/banks/util/escape-regexp.d.ts +2 -0
  186. package/build/src/app-gocardless/banks/util/escape-regexp.d.ts.map +1 -0
  187. package/build/src/app-gocardless/banks/util/extract-payeeName-from-remittanceInfo.d.ts +21 -0
  188. package/build/src/app-gocardless/banks/util/extract-payeeName-from-remittanceInfo.d.ts.map +1 -0
  189. package/build/src/app-gocardless/banks/virgin_nrnbgb22.d.ts +21 -0
  190. package/build/src/app-gocardless/banks/virgin_nrnbgb22.d.ts.map +1 -0
  191. package/build/src/app-gocardless/errors.d.ts +44 -0
  192. package/build/src/app-gocardless/errors.d.ts.map +1 -0
  193. package/build/src/app-gocardless/gocardless-node.types.d.ts +399 -0
  194. package/build/src/app-gocardless/gocardless-node.types.d.ts.map +1 -0
  195. package/build/src/app-gocardless/gocardless.types.d.ts +72 -0
  196. package/build/src/app-gocardless/gocardless.types.d.ts.map +1 -0
  197. package/build/src/app-gocardless/services/gocardless-service.d.ts +83 -0
  198. package/build/src/app-gocardless/services/gocardless-service.d.ts.map +1 -0
  199. package/build/src/app-gocardless/services/tests/fixtures.d.ts +73 -0
  200. package/build/src/app-gocardless/services/tests/fixtures.d.ts.map +1 -0
  201. package/build/src/app-gocardless/services/tests/gocardless-service.spec.d.ts +2 -0
  202. package/build/src/app-gocardless/services/tests/gocardless-service.spec.d.ts.map +1 -0
  203. package/build/src/app-gocardless/tests/bank-factory.spec.d.ts +2 -0
  204. package/build/src/app-gocardless/tests/bank-factory.spec.d.ts.map +1 -0
  205. package/build/src/app-gocardless/tests/utils.spec.d.ts +2 -0
  206. package/build/src/app-gocardless/tests/utils.spec.d.ts.map +1 -0
  207. package/build/src/app-gocardless/util/handle-error.d.ts +2 -0
  208. package/build/src/app-gocardless/util/handle-error.d.ts.map +1 -0
  209. package/build/src/app-gocardless/utils.d.ts +4 -0
  210. package/build/src/app-gocardless/utils.d.ts.map +1 -0
  211. package/build/src/app-openid.d.ts +3 -0
  212. package/build/src/app-openid.d.ts.map +1 -0
  213. package/build/src/app-pluggyai/app-pluggyai.d.ts +3 -0
  214. package/build/src/app-pluggyai/app-pluggyai.d.ts.map +1 -0
  215. package/build/src/app-pluggyai/pluggyai-service.d.ts +8 -0
  216. package/build/src/app-pluggyai/pluggyai-service.d.ts.map +1 -0
  217. package/build/src/app-secrets.d.ts +3 -0
  218. package/build/src/app-secrets.d.ts.map +1 -0
  219. package/build/src/app-simplefin/app-simplefin.d.ts +3 -0
  220. package/build/src/app-simplefin/app-simplefin.d.ts.map +1 -0
  221. package/build/src/app-sync/errors.d.ts +9 -0
  222. package/build/src/app-sync/errors.d.ts.map +1 -0
  223. package/build/src/app-sync/services/files-service.d.ts +62 -0
  224. package/build/src/app-sync/services/files-service.d.ts.map +1 -0
  225. package/build/src/app-sync/tests/services/files-service.test.d.ts +2 -0
  226. package/build/src/app-sync/tests/services/files-service.test.d.ts.map +1 -0
  227. package/build/src/app-sync/validation.d.ts +3 -0
  228. package/build/src/app-sync/validation.d.ts.map +1 -0
  229. package/build/src/app-sync.d.ts +3 -0
  230. package/build/src/app-sync.d.ts.map +1 -0
  231. package/build/src/app-sync.js +1 -5
  232. package/build/src/app-sync.test.d.ts +2 -0
  233. package/build/src/app-sync.test.d.ts.map +1 -0
  234. package/build/src/app-sync.test.js +20 -12
  235. package/build/src/app.d.ts +2 -0
  236. package/build/src/app.d.ts.map +1 -0
  237. package/build/src/config-types.d.ts +42 -0
  238. package/build/src/config-types.d.ts.map +1 -0
  239. package/build/src/db.d.ts +35 -0
  240. package/build/src/db.d.ts.map +1 -0
  241. package/build/src/load-config.d.ts +362 -0
  242. package/build/src/load-config.d.ts.map +1 -0
  243. package/build/src/load-config.test.d.ts +2 -0
  244. package/build/src/load-config.test.d.ts.map +1 -0
  245. package/build/src/migrations.d.ts +2 -0
  246. package/build/src/migrations.d.ts.map +1 -0
  247. package/build/src/scripts/disable-openid.d.ts +2 -0
  248. package/build/src/scripts/disable-openid.d.ts.map +1 -0
  249. package/build/src/scripts/enable-openid.d.ts +2 -0
  250. package/build/src/scripts/enable-openid.d.ts.map +1 -0
  251. package/build/src/scripts/health-check.d.ts +2 -0
  252. package/build/src/scripts/health-check.d.ts.map +1 -0
  253. package/build/src/scripts/reset-password.d.ts +2 -0
  254. package/build/src/scripts/reset-password.d.ts.map +1 -0
  255. package/build/src/scripts/run-migrations.d.ts +2 -0
  256. package/build/src/scripts/run-migrations.d.ts.map +1 -0
  257. package/build/src/secrets.test.d.ts +2 -0
  258. package/build/src/secrets.test.d.ts.map +1 -0
  259. package/build/src/services/secrets-service.d.ts +19 -0
  260. package/build/src/services/secrets-service.d.ts.map +1 -0
  261. package/build/src/services/user-service.d.ts +23 -0
  262. package/build/src/services/user-service.d.ts.map +1 -0
  263. package/build/src/sync-simple.d.ts +5 -0
  264. package/build/src/sync-simple.d.ts.map +1 -0
  265. package/build/src/util/hash.d.ts +2 -0
  266. package/build/src/util/hash.d.ts.map +1 -0
  267. package/build/src/util/hash.js +1 -1
  268. package/build/src/util/middlewares.d.ts +6 -0
  269. package/build/src/util/middlewares.d.ts.map +1 -0
  270. package/build/src/util/middlewares.js +0 -11
  271. package/build/src/util/paths.d.ts +7 -0
  272. package/build/src/util/paths.d.ts.map +1 -0
  273. package/build/src/util/paths.js +4 -2
  274. package/build/src/util/payee-name.d.ts +3 -0
  275. package/build/src/util/payee-name.d.ts.map +1 -0
  276. package/build/src/util/payee-name.js +4 -4
  277. package/build/src/util/prompt.d.ts +3 -0
  278. package/build/src/util/prompt.d.ts.map +1 -0
  279. package/build/src/util/prompt.js +3 -2
  280. package/build/src/util/title/index.d.ts +4 -0
  281. package/build/src/util/title/index.d.ts.map +1 -0
  282. package/build/src/util/title/lower-case.d.ts +2 -0
  283. package/build/src/util/title/lower-case.d.ts.map +1 -0
  284. package/build/src/util/title/specials.d.ts +2 -0
  285. package/build/src/util/title/specials.d.ts.map +1 -0
  286. package/build/src/util/types.d.ts +4 -0
  287. package/build/src/util/types.d.ts.map +1 -0
  288. package/build/src/util/types.js +1 -0
  289. package/build/src/util/validate-user.d.ts +5 -0
  290. package/build/src/util/validate-user.d.ts.map +1 -0
  291. package/package.json +2 -2
@@ -0,0 +1,399 @@
1
+ type RequisitionStatus = 'CR' | 'ID' | 'LN' | 'RJ' | 'ER' | 'SU' | 'EX' | 'GC' | 'UA' | 'GA' | 'SA';
2
+ export type Requisition = {
3
+ /**
4
+ * option to enable account selection view for the end user
5
+ */
6
+ account_selection: boolean;
7
+ /**
8
+ * array of account IDs retrieved within a scope of this requisition
9
+ */
10
+ accounts: string[];
11
+ /**
12
+ * EUA associated with this requisition
13
+ */
14
+ agreement: string;
15
+ /**
16
+ * The date & time at which the requisition was created.
17
+ */
18
+ created: string;
19
+ /**
20
+ * The unique ID of the requisition
21
+ */
22
+ id: string;
23
+ /**
24
+ * an Institution ID for this Requisition
25
+ */
26
+ institution_id: string;
27
+ /**
28
+ * link to initiate authorization with Institution
29
+ */
30
+ link: string;
31
+ /**
32
+ * redirect URL to your application after end-user authorization with ASPSP
33
+ */
34
+ redirect: string;
35
+ /**
36
+ * enable redirect back to the client after account list received
37
+ */
38
+ redirect_immediate: boolean;
39
+ /**
40
+ * additional ID to identify the end user
41
+ */
42
+ reference: string;
43
+ /**
44
+ * optional SSN field to verify ownership of the account
45
+ */
46
+ ssn: string;
47
+ /**
48
+ * status of this requisition
49
+ */
50
+ status: RequisitionStatus;
51
+ /**
52
+ * A two-letter country code (ISO 639-1)
53
+ */
54
+ user_language: string;
55
+ };
56
+ /**
57
+ * Object representing GoCardless account details
58
+ * Account details will be returned in Berlin Group PSD2 format.
59
+ */
60
+ export type GoCardlessAccountDetails = {
61
+ /**
62
+ * Resource id of the account
63
+ */
64
+ resourceId?: string;
65
+ /**
66
+ * BBAN of the account. This data element is used for payment accounts which have no IBAN
67
+ */
68
+ bban?: string;
69
+ /**
70
+ * BIC associated to the account
71
+ */
72
+ bic?: string;
73
+ /**
74
+ * External Cash Account Type 1 Code from ISO 20022
75
+ */
76
+ cashAccountType?: string;
77
+ /**
78
+ * Currency of the account
79
+ */
80
+ currency: string;
81
+ /**
82
+ * Specifications that might be provided by the financial institution, including
83
+ * - Characteristics of the account
84
+ * - Characteristics of the relevant card
85
+ */
86
+ details?: string;
87
+ /**
88
+ * Name of the account as defined by the end user within online channels
89
+ */
90
+ displayName?: string;
91
+ /**
92
+ * IBAN of the account
93
+ */
94
+ iban?: string;
95
+ /**
96
+ * This data attribute is a field where a financial institution can name a cash account associated with pending card transactions
97
+ */
98
+ linkedAccounts?: string;
99
+ /**
100
+ * Alias to a payment account via a registered mobile phone number
101
+ */
102
+ msisdn?: string;
103
+ /**
104
+ * Name of the account, as assigned by the financial institution
105
+ */
106
+ name?: string;
107
+ /**
108
+ * Address of the legal account owner
109
+ */
110
+ ownerAddressUnstructured?: string[];
111
+ /**
112
+ * Name of the legal account owner. If there is more than one owner, then two names might be noted here. For a corporate account, the corporate name is used for this attribute.
113
+ */
114
+ ownerName?: string;
115
+ /**
116
+ * Product Name of the Bank for this account, proprietary definition
117
+ */
118
+ product?: string;
119
+ /**
120
+ * Account status. The value is one of the following:
121
+ * - "enabled": account is available
122
+ * - "deleted": account is terminated
123
+ * - "blocked": account is blocked, e.g. for legal reasons
124
+ *
125
+ * If this field is not used, then the account is considered available according to the specification.
126
+ */
127
+ status?: 'enabled' | 'deleted' | 'blocked';
128
+ /**
129
+ * Specifies the usage of the account:
130
+ * - PRIV: private personal account
131
+ * - ORGA: professional account
132
+ */
133
+ usage?: 'PRIV' | 'ORGA';
134
+ };
135
+ /**
136
+ * Representation of the GoCardless account metadata
137
+ */
138
+ export type GoCardlessAccountMetadata = {
139
+ /**
140
+ * ID of the GoCardless account metadata
141
+ */
142
+ id: string;
143
+ /**
144
+ * Date when the GoCardless account metadata was created
145
+ */
146
+ created: string;
147
+ /**
148
+ * Date of the last access to the GoCardless account metadata
149
+ */
150
+ last_accessed: string;
151
+ /**
152
+ * IBAN of the GoCardless account metadata
153
+ */
154
+ iban: string;
155
+ /**
156
+ * ID of the institution associated with the GoCardless account metadata
157
+ */
158
+ institution_id: string;
159
+ /**
160
+ * Status of the GoCardless account
161
+ * DISCOVERED: User has successfully authenticated and account is discovered
162
+ * PROCESSING: Account is being processed by the Institution
163
+ * ERROR: An error was encountered when processing account
164
+ * EXPIRED: Access to account has expired as set in End User Agreement
165
+ * READY: Account has been successfully processed
166
+ * SUSPENDED: Account has been suspended (more than 10 consecutive failed attempts to access the account)
167
+ */
168
+ status: 'DISCOVERED' | 'PROCESSING' | 'ERROR' | 'EXPIRED' | 'READY' | 'SUSPENDED';
169
+ /**
170
+ * Name of the owner of the GoCardless account metadata
171
+ */
172
+ owner_name: string;
173
+ };
174
+ /**
175
+ * Information about the Institution
176
+ */
177
+ export type Institution = {
178
+ /**
179
+ * The id of the institution, for example "N26_NTSBDEB1"
180
+ */
181
+ id: string;
182
+ /**
183
+ * The name of the institution, for example "N26 Bank"
184
+ */
185
+ name: string;
186
+ /**
187
+ * The BIC of the institution, for example "NTSBDEB1"
188
+ */
189
+ bic: string;
190
+ /**
191
+ * The total number of days of transactions available, for example "90"
192
+ */
193
+ transaction_total_days: string;
194
+ /**
195
+ * The countries where the institution operates, for example `["PL"]`
196
+ */
197
+ countries: string[];
198
+ /**
199
+ * The logo URL of the institution, for example "https://cdn.nordigen.com/ais/N26_SANDBOX_NTSBDEB1.png"
200
+ */
201
+ logo: string;
202
+ /**
203
+ * The total number of days that a requisition stays valid before requiring
204
+ * renewal
205
+ */
206
+ max_access_valid_for_days: string;
207
+ supported_payments?: object;
208
+ supported_features?: string[];
209
+ };
210
+ /**
211
+ * An object containing information about a balance
212
+ */
213
+ export type Balance = {
214
+ /**
215
+ * An object containing the balance amount and currency
216
+ */
217
+ balanceAmount: Amount;
218
+ /**
219
+ * The type of balance
220
+ */
221
+ balanceType: 'closingBooked' | 'expected' | 'forwardAvailable' | 'interimAvailable' | 'interimBooked' | 'nonInvoiced' | 'openingBooked';
222
+ /**
223
+ * A flag indicating if the credit limit of the corresponding account is included in the calculation of the balance (if applicable)
224
+ */
225
+ creditLimitIncluded?: boolean;
226
+ /**
227
+ * The date and time of the last change to the balance
228
+ */
229
+ lastChangeDateTime?: string;
230
+ /**
231
+ * The reference of the last committed transaction to support the TPP in identifying whether all end users transactions are already known
232
+ */
233
+ lastCommittedTransaction?: string;
234
+ /**
235
+ * The date of the balance
236
+ */
237
+ referenceDate?: string;
238
+ };
239
+ /**
240
+ * An object representing the amount of a transaction
241
+ */
242
+ export type Amount = {
243
+ /**
244
+ * The amount of the transaction
245
+ */
246
+ amount: string;
247
+ /**
248
+ * The currency of the transaction
249
+ */
250
+ currency: string;
251
+ };
252
+ /**
253
+ * An object representing a financial transaction
254
+ */
255
+ export type Transaction = {
256
+ /**
257
+ * Might be used by the financial institution to transport additional transaction-related information.
258
+ */
259
+ additionalInformation?: string;
260
+ /**
261
+ * Is used if and only if the bookingStatus entry equals "information".
262
+ */
263
+ bookingStatus?: string;
264
+ /**
265
+ * The balance after this transaction. Recommended balance type is interimBooked.
266
+ */
267
+ balanceAfterTransaction?: Pick<Balance, 'balanceType' | 'balanceAmount'>;
268
+ /**
269
+ * Bank transaction code as used by the financial institution and using the sub elements of this structured code defined by ISO20022. For standing order reports the following codes are applicable:
270
+ * "PMNT-ICDT-STDO" for credit transfers,
271
+ * "PMNT-IRCT-STDO" for instant credit transfers,
272
+ * "PMNT-ICDT-XBST" for cross-border credit transfers,
273
+ * "PMNT-IRCT-XBST" for cross-border real-time credit transfers,
274
+ * "PMNT-MCOP-OTHR" for specific standing orders which have a dynamic amount to move left funds e.g. on month end to a saving account
275
+ */
276
+ bankTransactionCode?: string;
277
+ /**
278
+ * The date when an entry is posted to an account on the financial institution's books.
279
+ */
280
+ bookingDate?: string;
281
+ /**
282
+ * The date and time when an entry is posted to an account on the financial institution's books.
283
+ */
284
+ bookingDateTime?: string;
285
+ /**
286
+ * Identification of a cheque
287
+ */
288
+ checkId?: string;
289
+ /**
290
+ * Account reference, conditional
291
+ */
292
+ creditorAccount?: string | {
293
+ iban?: string;
294
+ };
295
+ /**
296
+ * BICFI
297
+ */
298
+ creditorAgent?: string;
299
+ /**
300
+ * Identification of creditors, e.g. a SEPA Creditor ID
301
+ */
302
+ creditorId?: string;
303
+ /**
304
+ * Name of the creditor if a "debited" transaction
305
+ */
306
+ creditorName?: string;
307
+ /**
308
+ * Array of report exchange rates
309
+ */
310
+ currencyExchange?: string[];
311
+ /**
312
+ * Account reference, conditional
313
+ */
314
+ debtorAccount?: {
315
+ iban: string;
316
+ };
317
+ /**
318
+ * BICFI
319
+ */
320
+ debtorAgent?: string;
321
+ /**
322
+ * Name of the debtor if a "credited" transaction
323
+ */
324
+ debtorName?: string;
325
+ /**
326
+ * Unique end-to-end ID
327
+ */
328
+ endToEndId?: string;
329
+ /**
330
+ * The identification of the transaction as used for reference given by the financial institution.
331
+ */
332
+ entryReference?: string;
333
+ /**
334
+ * Transaction identifier given by GoCardless
335
+ */
336
+ internalTransactionId?: string;
337
+ /**
338
+ * Identification of Mandates, e.g. a SEPA Mandate ID
339
+ */
340
+ mandateId?: string;
341
+ /**
342
+ * Merchant category code as defined by card issuer
343
+ */
344
+ merchantCategoryCode?: string;
345
+ /**
346
+ * Proprietary bank transaction code as used within a community or within an financial institution
347
+ */
348
+ proprietaryBankTransactionCode?: string;
349
+ /**
350
+ * Conditional
351
+ */
352
+ purposeCode?: string;
353
+ /**
354
+ * Reference as contained in the structured remittance reference structure
355
+ */
356
+ remittanceInformationStructured?: string;
357
+ /**
358
+ * Reference as contained in the structured remittance array reference structure
359
+ */
360
+ remittanceInformationStructuredArray?: string[];
361
+ /**
362
+ * Reference as contained in the unstructured remittance reference structure
363
+ */
364
+ remittanceInformationUnstructured?: string;
365
+ /**
366
+ * Reference as contained in the unstructured remittance array reference structure
367
+ */
368
+ remittanceInformationUnstructuredArray?: string[];
369
+ /**
370
+ * The amount of the transaction as billed to the account
371
+ */
372
+ transactionAmount: Amount;
373
+ /**
374
+ * Unique transaction identifier given by financial institution
375
+ */
376
+ transactionId?: string;
377
+ /**
378
+ *
379
+ */
380
+ ultimateCreditor?: string;
381
+ /**
382
+ *
383
+ */
384
+ ultimateDebtor?: string;
385
+ /**
386
+ * The Date at which assets become available to the account owner in case of a credit
387
+ */
388
+ valueDate?: string;
389
+ /**
390
+ * The date and time at which assets become available to the account owner in case of a credit
391
+ */
392
+ valueDateTime?: string;
393
+ };
394
+ export type Transactions = {
395
+ booked: Transaction[];
396
+ pending: Transaction[];
397
+ };
398
+ export {};
399
+ //# sourceMappingURL=gocardless-node.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gocardless-node.types.d.ts","sourceRoot":"","sources":["../../../src/app-gocardless/gocardless-node.types.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAClB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ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ACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;IAExC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;OAEG;IACH,oCAAoC,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhD;;OAEG;IACH,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAE3C;;OAEG;IACH,sCAAsC,CAAC,EAAE,MAAM,EAAE,CAAC;IAElD;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC"}
@@ -0,0 +1,72 @@
1
+ import type { Balance, GoCardlessAccountDetails, GoCardlessAccountMetadata, Institution, Transaction, Transactions } from './gocardless-node.types';
2
+ export type DetailedAccount = Omit<GoCardlessAccountDetails, 'status'> & GoCardlessAccountMetadata;
3
+ export type DetailedAccountWithInstitution = DetailedAccount & {
4
+ institution: Institution;
5
+ };
6
+ export type TransactionWithBookedStatus = Transaction & {
7
+ booked: boolean;
8
+ };
9
+ export type NormalizedAccountDetails = {
10
+ /**
11
+ * Id of the account
12
+ */
13
+ account_id: string;
14
+ /**
15
+ * Institution of account
16
+ */
17
+ institution: Institution;
18
+ /**
19
+ * last 4 digits from the account iban
20
+ */
21
+ mask: string;
22
+ /**
23
+ * the account iban
24
+ */
25
+ iban: string;
26
+ /**
27
+ * Name displayed on the UI of Actual app
28
+ */
29
+ name: string;
30
+ /**
31
+ * name of the product in the institution
32
+ */
33
+ official_name: string;
34
+ /**
35
+ * type of account
36
+ */
37
+ type: string;
38
+ };
39
+ export type GetTransactionsParams = {
40
+ /**
41
+ * Id of the institution from GoCardless
42
+ */
43
+ institutionId: string;
44
+ /**
45
+ * Id of account from the GoCardless app
46
+ */
47
+ accountId: string;
48
+ /**
49
+ * Begin date of the period from which we want to download transactions
50
+ */
51
+ startDate: string;
52
+ /**
53
+ * End date of the period from which we want to download transactions
54
+ */
55
+ endDate?: string;
56
+ };
57
+ export type GetTransactionsResponse = {
58
+ status_code?: number;
59
+ detail?: string;
60
+ transactions: Transactions;
61
+ };
62
+ export type CreateRequisitionParams = {
63
+ institutionId: string;
64
+ /**
65
+ * Host of your frontend app - on this host you will be redirected after linking with bank
66
+ */
67
+ host: string;
68
+ };
69
+ export type GetBalances = {
70
+ balances: Balance[];
71
+ };
72
+ //# sourceMappingURL=gocardless.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gocardless.types.d.ts","sourceRoot":"","sources":["../../../src/app-gocardless/gocardless.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,wBAAwB,EACxB,yBAAyB,EACzB,WAAW,EACX,WAAW,EACX,YAAY,EACb,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GACpE,yBAAyB,CAAC;AAC5B,MAAM,MAAM,8BAA8B,GAAG,eAAe,GAAG;IAC7D,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB,CAAC"}
@@ -0,0 +1,83 @@
1
+ export function handleGoCardlessError(error: any): never;
2
+ export namespace goCardlessService {
3
+ function isConfigured(): boolean;
4
+ function setToken(): Promise<void>;
5
+ function getLinkedRequisition(requisitionId: any): Promise<import("../gocardless-node.types").Requisition>;
6
+ function getRequisitionWithAccounts(requisitionId: any): Promise<{
7
+ requisition: import("../gocardless-node.types").Requisition;
8
+ accounts: Array<import("../gocardless.types").NormalizedAccountDetails>;
9
+ }>;
10
+ function getTransactionsWithBalance(requisitionId: any, accountId: any, startDate: any, endDate: any): Promise<{
11
+ balances: Array<import("../gocardless-node.types").Balance>;
12
+ institutionId: string;
13
+ transactions: {
14
+ booked: Array<import("../gocardless-node.types").Transaction>;
15
+ pending: Array<import("../gocardless-node.types").Transaction>;
16
+ all: Array<import("../gocardless.types").TransactionWithBookedStatus>;
17
+ };
18
+ startingBalance: number;
19
+ }>;
20
+ function getNormalizedTransactions(requisitionId: any, accountId: any, startDate: any, endDate: any): Promise<{
21
+ institutionId: string;
22
+ transactions: {
23
+ booked: Array<import("../gocardless-node.types").Transaction>;
24
+ pending: Array<import("../gocardless-node.types").Transaction>;
25
+ all: Array<import("../gocardless.types").TransactionWithBookedStatus>;
26
+ };
27
+ }>;
28
+ function createRequisition({ institutionId, host }: import("../gocardless.types").CreateRequisitionParams): Promise<{
29
+ requisitionId: any;
30
+ link: any;
31
+ }>;
32
+ function deleteRequisition(requisitionId: any): Promise<{
33
+ summary: string;
34
+ detail: string;
35
+ }>;
36
+ function getRequisition(requisitionId: string): Promise<import("../gocardless-node.types").Requisition>;
37
+ function getDetailedAccount(accountId: any): Promise<import("../gocardless.types").DetailedAccount>;
38
+ function getAccountMetadata(accountId: any): Promise<import("../gocardless-node.types").GoCardlessAccountMetadata>;
39
+ function getInstitutions(country: any): Promise<Array<import("../gocardless-node.types").Institution>>;
40
+ function getInstitution(institutionId: any): Promise<import("../gocardless-node.types").Institution>;
41
+ function extendAccountsAboutInstitutions({ accounts, institutions }: {
42
+ accounts: Array<import("../gocardless.types").DetailedAccount>;
43
+ institutions: Array<import("../gocardless-node.types").Institution>;
44
+ }): Promise<Array<import("../gocardless.types").DetailedAccount & {
45
+ institution: import("../gocardless-node.types").Institution;
46
+ }>>;
47
+ function getTransactions({ institutionId, accountId, startDate, endDate }: import("../gocardless.types").GetTransactionsParams): Promise<import("../gocardless.types").GetTransactionsResponse>;
48
+ function getBalances(accountId: any): Promise<import("../gocardless.types").GetBalances>;
49
+ }
50
+ export namespace client {
51
+ export function getBalances_1(accountId: any): Promise<any>;
52
+ export { getBalances_1 as getBalances };
53
+ export function getTransactions_1({ accountId, dateFrom, dateTo }: {
54
+ accountId: any;
55
+ dateFrom: any;
56
+ dateTo: any;
57
+ }): Promise<any>;
58
+ export { getTransactions_1 as getTransactions };
59
+ export function getInstitutions_1(country: any): Promise<any>;
60
+ export { getInstitutions_1 as getInstitutions };
61
+ export function getInstitutionById(institutionId: any): Promise<any>;
62
+ export function getDetails(accountId: any): Promise<any>;
63
+ export function getMetadata(accountId: any): Promise<any>;
64
+ export function getRequisitionById(requisitionId: any): Promise<any>;
65
+ export function deleteRequisition_1(requisitionId: any): Promise<any>;
66
+ export { deleteRequisition_1 as deleteRequisition };
67
+ export function initSession({ redirectUrl, institutionId, referenceId, accessValidForDays, maxHistoricalDays, userLanguage, ssn, redirectImmediate, accountSelection, }: {
68
+ redirectUrl: any;
69
+ institutionId: any;
70
+ referenceId: any;
71
+ accessValidForDays: any;
72
+ maxHistoricalDays: any;
73
+ userLanguage: any;
74
+ ssn: any;
75
+ redirectImmediate: any;
76
+ accountSelection: any;
77
+ }): Promise<any>;
78
+ export function generateToken(): Promise<any>;
79
+ export function exchangeToken({ refreshToken }: {
80
+ refreshToken: any;
81
+ }): Promise<any>;
82
+ }
83
+ //# sourceMappingURL=gocardless-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gocardless-service.d.ts","sourceRoot":"","sources":["../../../../src/app-gocardless/services/gocardless-service.js"],"names":[],"mappings":"AAuCO,yDAuBN;;IAOe,yBAFD,OAAO,CAMnB;IAMS,qBAFG,OAAO,CAAC,IAAI,CAAC,CAsBzB;IAgBqB,mDAFT,OAAO,CAAC,OAAO,0BAA0B,EAAE,WAAW,CAAC,CAcnE;IAiB2B,yDAFf,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E,eAAe,CAAC,CA+BlE;IAUmB,6CAFP,OAAO,CAAC,OAAO,0BAA0B,EAAE,yBAAyB,CAAC,CAWjF;IAegB,wCAFJ,OAAO,CAAC,KAAK,CAAC,OAAO,0BAA0B,EAAE,WAAW,CAAC,CAAC,CAW1E;IAee,6CAFH,OAAO,CAAC,OAAO,0BAA0B,EAAE,WAAW,CAAC,CAWnE;IAOgC,qEAHtB;QAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,qBAAqB,EAAE,eAAe,CAAC,CAAC;QAAC,YAAY,EAAE,KAAK,CAAC,OAAO,0BAA0B,EAAE,WAAW,CAAC,CAAA;KAAC,GACnI,OAAO,CAAC,KAAK,CAAC,OAAO,qBAAqB,EAAE,eAAe,GAAC;QAAC,WAAW,EAAE,OAAO,0BAA0B,EAAE,WAAW,CAAA;KAAC,CAAC,CAAC,CAevI;IAegB,2EAXN,OAAO,qBAAqB,EAAE,qBAAqB,GASjD,OAAO,CAAC,OAAO,qBAAqB,EAAE,uBAAuB,CAAC,CAuB1E;IAeY,sCAFA,OAAO,CAAC,OAAO,qBAAqB,EAAE,WAAW,CAAC,CAW9D;;;IASY,4DACiD;;IAC7C;;;;qBAKb;;IACa,8DACqD;;IAClD,qEACuD;IAC/D,yDACiD;IAChD,0DACiD;IAC1C,qEACuD;IACxD,sEACuD;;IAC7D;;;;;;;;;;qBAqBT;IACW,8CAAuD;IACvD;;qBAC8C"}
@@ -0,0 +1,73 @@
1
+ /** @type {{balances: import('../../gocardless-node.types').Balance[]}} */
2
+ export const mockedBalances: {
3
+ balances: import("../../gocardless-node.types").Balance[];
4
+ };
5
+ /** @type {{transactions: import('../../gocardless-node.types').Transactions}} */
6
+ export const mockTransactions: {
7
+ transactions: import("../../gocardless-node.types").Transactions;
8
+ };
9
+ export namespace mockUnknownError {
10
+ let summary: string;
11
+ let detail: string;
12
+ let type: string;
13
+ let status_code: number;
14
+ }
15
+ /** @type {{account: import('../../gocardless-node.types').GoCardlessAccountDetails}} */
16
+ export const mockAccountDetails: {
17
+ account: import("../../gocardless-node.types").GoCardlessAccountDetails;
18
+ };
19
+ /** @type {import('../../gocardless-node.types').GoCardlessAccountMetadata} */
20
+ export const mockAccountMetaData: import("../../gocardless-node.types").GoCardlessAccountMetadata;
21
+ /** @type {import('../../gocardless.types').DetailedAccount} */
22
+ export const mockDetailedAccount: import("../../gocardless.types").DetailedAccount;
23
+ /** @type {import('../../gocardless-node.types').Institution} */
24
+ export const mockInstitution: import("../../gocardless-node.types").Institution;
25
+ /** @type {import('../../gocardless-node.types').Requisition} */
26
+ export const mockRequisition: import("../../gocardless-node.types").Requisition;
27
+ export namespace mockDeleteRequisition {
28
+ let summary_1: string;
29
+ export { summary_1 as summary };
30
+ let detail_1: string;
31
+ export { detail_1 as detail };
32
+ }
33
+ export namespace mockCreateRequisition {
34
+ let id: string;
35
+ let created: string;
36
+ let redirect: string;
37
+ let status: string;
38
+ let institution_id: string;
39
+ let agreement: string;
40
+ let reference: string;
41
+ let accounts: any[];
42
+ let user_language: string;
43
+ let link: string;
44
+ let ssn: string;
45
+ let account_selection: boolean;
46
+ let redirect_immediate: boolean;
47
+ }
48
+ /** @type {import('../../gocardless.types').DetailedAccount} */
49
+ export const mockDetailedAccountExample1: import("../../gocardless.types").DetailedAccount;
50
+ /** @type {import('../../gocardless.types').DetailedAccount} */
51
+ export const mockDetailedAccountExample2: import("../../gocardless.types").DetailedAccount;
52
+ /** @type {import('../../gocardless.types').DetailedAccountWithInstitution[]} */
53
+ export const mockExtendAccountsAboutInstitutions: import("../../gocardless.types").DetailedAccountWithInstitution[];
54
+ export const mockRequisitionWithExampleAccounts: {
55
+ accounts: string[];
56
+ account_selection: boolean;
57
+ agreement: string;
58
+ created: string;
59
+ id: string;
60
+ institution_id: string;
61
+ link: string;
62
+ redirect: string;
63
+ redirect_immediate: boolean;
64
+ reference: string;
65
+ ssn: string;
66
+ status: "CR" | "ID" | "LN" | "RJ" | "ER" | "SU" | "EX" | "GC" | "UA" | "GA" | "SA";
67
+ user_language: string;
68
+ };
69
+ export namespace mockTransactionAmount {
70
+ let amount: string;
71
+ let currency: string;
72
+ }
73
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/app-gocardless/services/tests/fixtures.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,6BADW;IAAC,QAAQ,EAAE,OAAO,6BAA6B,EAAE,OAAO,EAAE,CAAA;CAAC,CAoBpE;AAEF,iFAAiF;AACjF,+BADW;IAAC,YAAY,EAAE,OAAO,6BAA6B,EAAE,YAAY,CAAA;CAAC,CAuC3E;;;;;;;AASF,wFAAwF;AACxF,iCADW;IAAC,OAAO,EAAE,OAAO,6BAA6B,EAAE,wBAAwB,CAAA;CAAC,CAWlF;AAEF,8EAA8E;AAC9E,kCADW,OAAO,6BAA6B,EAAE,yBAAyB,CASxE;AAEF,+DAA+D;AAC/D,kCADW,OAAO,wBAAwB,EAAE,eAAe,CAIzD;AAEF,gEAAgE;AAChE,8BADW,OAAO,6BAA6B,EAAE,WAAW,CAS1D;AAEF,gEAAgE;AAChE,8BADW,OAAO,6BAA6B,EAAE,WAAW,CAe1D;;;;;;;;;;;;;;;;;;;;;;AAwBF,+DAA+D;AAC/D,0CADW,OAAO,wBAAwB,EAAE,eAAe,CAIzD;AAEF,+DAA+D;AAC/D,0CADW,OAAO,wBAAwB,EAAE,eAAe,CAIzD;AAEF,gFAAgF;AAChF,kDADW,OAAO,wBAAwB,EAAE,8BAA8B,EAAE,CAU1E;AAEF;;;;;;;;;;;;;;EAIE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=gocardless-service.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gocardless-service.spec.d.ts","sourceRoot":"","sources":["../../../../../src/app-gocardless/services/tests/gocardless-service.spec.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bank-factory.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank-factory.spec.d.ts","sourceRoot":"","sources":["../../../../src/app-gocardless/tests/bank-factory.spec.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.spec.d.ts","sourceRoot":"","sources":["../../../../src/app-gocardless/tests/utils.spec.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export function handleError(func: any): (req: any, res: any) => void;
2
+ //# sourceMappingURL=handle-error.d.ts.map