@felloh-org/lambda-wrapper 1.11.99 → 1.11.101

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 (421) hide show
  1. package/.github/workflows/release.yml +1 -1
  2. package/dist/index.js +1 -987
  3. package/package.json +17 -6
  4. package/webpack.config.js +36 -0
  5. package/dist/config/dependencies.js +0 -58
  6. package/dist/dependency-injection/dependency-aware.js +0 -43
  7. package/dist/dependency-injection/dependency-injection.js +0 -135
  8. package/dist/entity/acquirer/adjustment/index.js +0 -128
  9. package/dist/entity/acquirer/band/index.js +0 -60
  10. package/dist/entity/acquirer/band_rate/index.js +0 -65
  11. package/dist/entity/acquirer/batch/index.js +0 -165
  12. package/dist/entity/acquirer/bin/index.js +0 -142
  13. package/dist/entity/acquirer/bin-rules/index.js +0 -231
  14. package/dist/entity/acquirer/bin-type-grouping/index.js +0 -56
  15. package/dist/entity/acquirer/country-type/index.js +0 -44
  16. package/dist/entity/acquirer/fee/index.js +0 -127
  17. package/dist/entity/acquirer/index.js +0 -22
  18. package/dist/entity/acquirer/organisation-band/index.js +0 -61
  19. package/dist/entity/acquirer/transaction-settlement/index.js +0 -123
  20. package/dist/entity/agent-data/booking/index.js +0 -346
  21. package/dist/entity/agent-data/booking-bank-transaction/index.js +0 -68
  22. package/dist/entity/agent-data/booking-component/index.js +0 -153
  23. package/dist/entity/agent-data/booking-component-type/index.js +0 -42
  24. package/dist/entity/agent-data/booking-package-type/index.js +0 -38
  25. package/dist/entity/agent-data/index.js +0 -28
  26. package/dist/entity/agent-data/supplier/index.js +0 -87
  27. package/dist/entity/agent-data/supplier-type/index.js +0 -42
  28. package/dist/entity/aisp/gocardless-account/index.js +0 -142
  29. package/dist/entity/aisp/gocardless-agreement/index.js +0 -73
  30. package/dist/entity/aisp/gocardless-requisition/index.js +0 -132
  31. package/dist/entity/aisp/index.js +0 -20
  32. package/dist/entity/aisp/transaction/index.js +0 -231
  33. package/dist/entity/bank/account/index.js +0 -96
  34. package/dist/entity/bank/adjustment/index.js +0 -168
  35. package/dist/entity/bank/adjustment-batch/index.js +0 -83
  36. package/dist/entity/bank/amendment/index.js +0 -161
  37. package/dist/entity/bank/beneficiary/index.js +0 -125
  38. package/dist/entity/bank/currency/index.js +0 -66
  39. package/dist/entity/bank/disbursal/index.js +0 -210
  40. package/dist/entity/bank/index.js +0 -34
  41. package/dist/entity/bank/ledger/index.js +0 -212
  42. package/dist/entity/bank/settled-transaction/index.js +0 -117
  43. package/dist/entity/bank/transaction-batch/index.js +0 -93
  44. package/dist/entity/bank/vendor/index.js +0 -56
  45. package/dist/entity/basis-theory/index.js +0 -14
  46. package/dist/entity/basis-theory/token/index.js +0 -133
  47. package/dist/entity/index.js +0 -42
  48. package/dist/entity/nuapay/account/index.js +0 -95
  49. package/dist/entity/nuapay/balance/index.js +0 -63
  50. package/dist/entity/nuapay/beneficiary/index.js +0 -59
  51. package/dist/entity/nuapay/index.js +0 -20
  52. package/dist/entity/nuapay/transaction/index.js +0 -119
  53. package/dist/entity/nuvei/batch/index.js +0 -84
  54. package/dist/entity/nuvei/index.js +0 -20
  55. package/dist/entity/nuvei/merchant/index.js +0 -55
  56. package/dist/entity/nuvei/transaction/index.js +0 -229
  57. package/dist/entity/nuvei/transaction-metadata/index.js +0 -283
  58. package/dist/entity/operations/fingerprint-exclusion/index.js +0 -38
  59. package/dist/entity/operations/index.js +0 -14
  60. package/dist/entity/operations/ip-exclusion/index.js +0 -38
  61. package/dist/entity/payment/chargeback/index.js +0 -141
  62. package/dist/entity/payment/credit-note/index.js +0 -184
  63. package/dist/entity/payment/customer/index.js +0 -197
  64. package/dist/entity/payment/ecommerce/index.js +0 -321
  65. package/dist/entity/payment/index.js +0 -60
  66. package/dist/entity/payment/organisation-payment-provider/index.js +0 -233
  67. package/dist/entity/payment/organisation-payment-provider-method/index.js +0 -63
  68. package/dist/entity/payment/organisation-tokenisation-provider/index.js +0 -79
  69. package/dist/entity/payment/payment-link/index.js +0 -424
  70. package/dist/entity/payment/payment-link-type/index.js +0 -38
  71. package/dist/entity/payment/payment-provider/index.js +0 -89
  72. package/dist/entity/payment/refund/index.js +0 -210
  73. package/dist/entity/payment/refund-status/index.js +0 -44
  74. package/dist/entity/payment/tokenisation-provider/index.js +0 -51
  75. package/dist/entity/payment/transaction/index.js +0 -546
  76. package/dist/entity/payment/transaction-event/index.js +0 -81
  77. package/dist/entity/payment/transaction-event-type/index.js +0 -49
  78. package/dist/entity/payment/transaction-metadata/index.js +0 -158
  79. package/dist/entity/payment/transaction-method/index.js +0 -38
  80. package/dist/entity/payment/transaction-rate/index.js +0 -140
  81. package/dist/entity/payment/transaction-reason/index.js +0 -60
  82. package/dist/entity/payment/transaction-risk/index.js +0 -143
  83. package/dist/entity/payment/transaction-source/index.js +0 -38
  84. package/dist/entity/payment/transaction-status/index.js +0 -48
  85. package/dist/entity/payment/transaction-surcharge/index.js +0 -87
  86. package/dist/entity/payment/transaction-type/index.js +0 -38
  87. package/dist/entity/reference/country/index.js +0 -45
  88. package/dist/entity/reference/index.js +0 -14
  89. package/dist/entity/saltedge/account/index.js +0 -182
  90. package/dist/entity/saltedge/connection/index.js +0 -133
  91. package/dist/entity/saltedge/customer/index.js +0 -70
  92. package/dist/entity/saltedge/index.js +0 -22
  93. package/dist/entity/saltedge/lead/index.js +0 -75
  94. package/dist/entity/saltedge/transaction/index.js +0 -327
  95. package/dist/entity/scratch/abta-members/index.js +0 -282
  96. package/dist/entity/scratch/index.js +0 -14
  97. package/dist/entity/token/index.js +0 -14
  98. package/dist/entity/token/token/index.js +0 -143
  99. package/dist/entity/total-processing/index.js +0 -16
  100. package/dist/entity/total-processing/transaction/index.js +0 -174
  101. package/dist/entity/total-processing/transaction-metadata/index.js +0 -137
  102. package/dist/entity/trust-payments/account-fees/index.js +0 -94
  103. package/dist/entity/trust-payments/adjustment/index.js +0 -113
  104. package/dist/entity/trust-payments/batch/index.js +0 -84
  105. package/dist/entity/trust-payments/chargeback/index.js +0 -128
  106. package/dist/entity/trust-payments/index.js +0 -28
  107. package/dist/entity/trust-payments/ingested-data/index.js +0 -56
  108. package/dist/entity/trust-payments/merchant/index.js +0 -139
  109. package/dist/entity/trust-payments/transaction/index.js +0 -183
  110. package/dist/entity/trust-payments/transaction-charges/index.js +0 -81
  111. package/dist/entity/user/feature/index.js +0 -87
  112. package/dist/entity/user/index.js +0 -42
  113. package/dist/entity/user/login-link/index.js +0 -82
  114. package/dist/entity/user/mailer-log/index.js +0 -75
  115. package/dist/entity/user/organisation/index.js +0 -242
  116. package/dist/entity/user/organisation-feature/index.js +0 -68
  117. package/dist/entity/user/organisation-partner/index.js +0 -66
  118. package/dist/entity/user/organisation-payout-config/index.js +0 -96
  119. package/dist/entity/user/organisation-type/index.js +0 -43
  120. package/dist/entity/user/organisation-webhook/index.js +0 -119
  121. package/dist/entity/user/role/index.js +0 -124
  122. package/dist/entity/user/user/index.js +0 -218
  123. package/dist/entity/user/user-activity/index.js +0 -116
  124. package/dist/entity/user/user-role/index.js +0 -82
  125. package/dist/entity/user/webhook-log/index.js +0 -89
  126. package/dist/entity/user/webhook-types/index.js +0 -119
  127. package/dist/enums/payment-initation-types/index.js +0 -11
  128. package/dist/event/base-event/index.js +0 -76
  129. package/dist/event/csv/email/index.js +0 -23
  130. package/dist/event/index.js +0 -55
  131. package/dist/event/posc/request/index.js +0 -23
  132. package/dist/event/transaction/complete/email/index.js +0 -23
  133. package/dist/event/transaction/complete/index.js +0 -23
  134. package/dist/event/transaction/refund-request/index.js +0 -23
  135. package/dist/event/user/password/changed/index.js +0 -23
  136. package/dist/event/user/password/reset/index.js +0 -23
  137. package/dist/event/user/registration/index.js +0 -23
  138. package/dist/event/user/sandbox-registration/index.js +0 -23
  139. package/dist/migration/acquirer/1686830639312-acquirer_entities.js +0 -21
  140. package/dist/migration/acquirer/1686833169652-acquirer_batch_relation.js +0 -23
  141. package/dist/migration/acquirer/1686834512382-acquirer_batch_remove_organisation.js +0 -14
  142. package/dist/migration/acquirer/1686913849538-acquirer_batch_in_trust.js +0 -12
  143. package/dist/migration/acquirer/1692102029462-acquirer_adjustment.js +0 -19
  144. package/dist/migration/acquirer/1692873462263-acquirer_bin_list.js +0 -13
  145. package/dist/migration/acquirer/1692877747460-acquirer_bin_rules.js +0 -15
  146. package/dist/migration/acquirer/1692878000108-acquirer_bin_rules_nullable.js +0 -15
  147. package/dist/migration/acquirer/1705493819447-bin_rules_country.js +0 -19
  148. package/dist/migration/acquirer/1708596720562-bandings.js +0 -25
  149. package/dist/migration/acquirer/1708598335438-band_rate.js +0 -17
  150. package/dist/migration/acquirer/1708605040113-transaction_rate.js +0 -19
  151. package/dist/migration/acquirer/1708609916248-bin_type_grouping.js +0 -13
  152. package/dist/migration/acquirer/1708616903284-field_length.js +0 -25
  153. package/dist/migration/acquirer/1709030948477-update_precission_fee.js +0 -19
  154. package/dist/migration/acquirer/1709822228302-update_precission_band_rate.js +0 -13
  155. package/dist/migration/agent-data/1642121041760-inital.js +0 -15
  156. package/dist/migration/agent-data/1642121610577-organisation-suppliers.js +0 -13
  157. package/dist/migration/agent-data/1642121681610-organisation-suppliers-type.js +0 -13
  158. package/dist/migration/agent-data/1642122014731-booking-component-type.js +0 -13
  159. package/dist/migration/agent-data/1642505882721-booking-fields.js +0 -29
  160. package/dist/migration/agent-data/1642508385880-booking-id.js +0 -19
  161. package/dist/migration/agent-data/1642771380681-add-supplier-detail.js +0 -17
  162. package/dist/migration/agent-data/1642771909248-swap-uuid.js +0 -41
  163. package/dist/migration/agent-data/1656410109048-booking_gross.js +0 -13
  164. package/dist/migration/agent-data/1656411834978-booking_nullables.js +0 -13
  165. package/dist/migration/agent-data/1656421768668-booking_components.js +0 -27
  166. package/dist/migration/agent-data/1656422133900-booking_components_organisation.js +0 -15
  167. package/dist/migration/agent-data/1659707743290-booking_soft_delete.js +0 -13
  168. package/dist/migration/agent-data/1660137703368-booking-index.js +0 -13
  169. package/dist/migration/agent-data/1660741384852-bookings_is_temporary.js +0 -12
  170. package/dist/migration/agent-data/1664181706131-ecom.js +0 -19
  171. package/dist/migration/agent-data/1664790996613-payment_link_soft_delete.js +0 -13
  172. package/dist/migration/agent-data/1676565874446-booking-currency.js +0 -13
  173. package/dist/migration/agent-data/1680598468694-create-booking-package-type-table.js +0 -19
  174. package/dist/migration/agent-data/1683899996464-booking_atol_receipt_number.js +0 -13
  175. package/dist/migration/agent-data/1684158044886-booking_bank_transaction.js +0 -17
  176. package/dist/migration/aisp/1710334149128-aisp_agreement.js +0 -17
  177. package/dist/migration/aisp/1710340812651-aisp_requisition.js +0 -19
  178. package/dist/migration/aisp/1710342798216-aisp_commenced_completed.js +0 -15
  179. package/dist/migration/aisp/1710349579447-aisp_account.js +0 -17
  180. package/dist/migration/aisp/1710350514324-balancesandcurrencies.js +0 -17
  181. package/dist/migration/aisp/1710362598295-transaction_aisp.js +0 -21
  182. package/dist/migration/aisp/1710370387188-account_organisation.js +0 -15
  183. package/dist/migration/aisp/1710371316539-add_nickname.js +0 -13
  184. package/dist/migration/aisp/1710372510335-institution_name.js +0 -13
  185. package/dist/migration/aisp/1712138801073-aisp_type_code.js +0 -13
  186. package/dist/migration/aisp/1713354543529-transaction_batch_link.js +0 -15
  187. package/dist/migration/aisp/1713365208792-found_customer_account.js +0 -13
  188. package/dist/migration/bank/1642313073694-bank-initial.js +0 -15
  189. package/dist/migration/bank/1645101410250-bank_disbursal.js +0 -28
  190. package/dist/migration/bank/1645102501719-bank_disbursal_unique.js +0 -17
  191. package/dist/migration/bank/1645103420324-ledger.js +0 -19
  192. package/dist/migration/bank/1645103864454-ledger-defaults.js +0 -15
  193. package/dist/migration/bank/1645108723739-bank-settled-transaction.js +0 -19
  194. package/dist/migration/bank/1651658976210-batches.js +0 -17
  195. package/dist/migration/bank/1651659772400-batches_id_chage.js +0 -25
  196. package/dist/migration/bank/1651660836295-batches_completed_at.js +0 -13
  197. package/dist/migration/bank/1651671204869-beneficiary.js +0 -17
  198. package/dist/migration/bank/1657625543494-amendment.js +0 -19
  199. package/dist/migration/bank/1657630420519-amendment_undertaken_at.js +0 -12
  200. package/dist/migration/bank/1657630681583-vendor.js +0 -17
  201. package/dist/migration/bank/1657631323026-ammed_supplier_ref.js +0 -12
  202. package/dist/migration/bank/1657637492675-transaction-provider-metadata.js +0 -13
  203. package/dist/migration/bank/1657711121280-adjustment.js +0 -17
  204. package/dist/migration/bank/1657713850640-ledger_adjustment.js +0 -15
  205. package/dist/migration/bank/1658999065280-currency_table.js +0 -13
  206. package/dist/migration/bank/1664879624602-currency-metadata.js +0 -18
  207. package/dist/migration/bank/1665571290711-disbursement_provider_reference.js +0 -13
  208. package/dist/migration/bank/1665652395554-disbursement_ledgered.js +0 -13
  209. package/dist/migration/bank/1670517416837-disbursal_manual_review.js +0 -13
  210. package/dist/migration/bank/1670929960647-disbursal_updated_legacy_system.js +0 -13
  211. package/dist/migration/bank/1686303842122-bank_setlement_amount_and_currency.js +0 -17
  212. package/dist/migration/bank/1714140033660-adjustment_batch.js +0 -19
  213. package/dist/migration/bank/1714381892560-adjustment_column_fix.js +0 -19
  214. package/dist/migration/basis-theory/1704976983106-basis_theory.js +0 -13
  215. package/dist/migration/basis-theory/1705322282519-basis_theory_token_store.js +0 -15
  216. package/dist/migration/basis-theory/1705327854669-basis_theory_token_customer.js +0 -19
  217. package/dist/migration/basis-theory/1705330136016-basis_theory_token_bin_brand.js +0 -15
  218. package/dist/migration/nuapay/1642200051764-initial.js +0 -13
  219. package/dist/migration/nuapay/1642201303413-add-fields-nuapay.js +0 -15
  220. package/dist/migration/nuapay/1642282666475-add-nuapay-account.js +0 -13
  221. package/dist/migration/nuapay/1642283420696-fix-iban-length.js +0 -15
  222. package/dist/migration/nuapay/1642283781684-account-relation.js +0 -15
  223. package/dist/migration/nuapay/1642286393959-beneficiary.js +0 -13
  224. package/dist/migration/nuapay/1642316424390-account-ibans.js +0 -21
  225. package/dist/migration/nuapay/1642318117667-cleanup-beneficaries.js +0 -23
  226. package/dist/migration/nuapay/1642365244026-nullable-bic.js +0 -13
  227. package/dist/migration/nuapay/1642366232568-remove-bic.js +0 -13
  228. package/dist/migration/nuapay/1642370449589-transaction.js +0 -17
  229. package/dist/migration/nuvei/1658229415800-nuvei-transaction-schema.js +0 -13
  230. package/dist/migration/nuvei/1668703920070-nuvei-transaction-id-extend-length.js +0 -13
  231. package/dist/migration/nuvei/1669564062461-create_nuvei_transaction_metadata_table.js +0 -16
  232. package/dist/migration/nuvei/1670420255443-add-nuvei-webhook-additional-columns-to-trnasaction-metadata.js +0 -41
  233. package/dist/migration/nuvei/1670932754369-add_nuvei_transaction_id_column.js +0 -51
  234. package/dist/migration/nuvei/1671555132026-nuvei_batch_and_merchant.js +0 -17
  235. package/dist/migration/nuvei/1673268042534-nuvei-transaction-metadata-increase-avs-column-size.js +0 -13
  236. package/dist/migration/nuvei/1673432057176-nuvei-transaction-metadata-make-card-type-nullable.js +0 -13
  237. package/dist/migration/nuvei/1673532192232-make-merchant-columns-and-session-token-nullable-nuvei-trnsaction.js +0 -17
  238. package/dist/migration/operations/1695811546501-ip_exclusion_list.js +0 -13
  239. package/dist/migration/operations/1695820446445-fingerprint.js +0 -15
  240. package/dist/migration/payment/1642120204899-inital.js +0 -21
  241. package/dist/migration/payment/1642514728358-payment-link-updates.js +0 -39
  242. package/dist/migration/payment/1642516017835-payment-link-add-booking.js +0 -15
  243. package/dist/migration/payment/1642519453365-transaction.js +0 -63
  244. package/dist/migration/payment/1642520774562-transaction-payment-link.js +0 -15
  245. package/dist/migration/payment/1642533711013-transaction-metadata.js +0 -15
  246. package/dist/migration/payment/1642540883807-transaction-event.js +0 -27
  247. package/dist/migration/payment/1642805897210-payment-link-customer.js +0 -13
  248. package/dist/migration/payment/1643717852114-payment-providers.js +0 -19
  249. package/dist/migration/payment/1643718714719-payment-providers-method.js +0 -15
  250. package/dist/migration/payment/1643719203328-payment-providers-method.js +0 -22
  251. package/dist/migration/payment/1644395533722-transaction_provider.js +0 -15
  252. package/dist/migration/payment/1644396011044-transaction_provider_ref.js +0 -13
  253. package/dist/migration/payment/1647251762169-payment_link_methods.js +0 -15
  254. package/dist/migration/payment/1647271619083-payment_link_moto.js +0 -13
  255. package/dist/migration/payment/1647292573651-provider_secret_length.js +0 -15
  256. package/dist/migration/payment/1647294601399-provider_secret_length.js +0 -15
  257. package/dist/migration/payment/1647428635630-transaction_organisation_payment_provider.js +0 -15
  258. package/dist/migration/payment/1647437109221-transaction_message.js +0 -13
  259. package/dist/migration/payment/1647437500834-transaction_updated_at.js +0 -13
  260. package/dist/migration/payment/1649925229394-add_payment_link_status.js +0 -13
  261. package/dist/migration/payment/1650357812532-payment_chargeback.js +0 -15
  262. package/dist/migration/payment/1650974827938-update_to_with_timezones.js +0 -49
  263. package/dist/migration/payment/1651050178971-update_to_with_timestamp.js +0 -59
  264. package/dist/migration/payment/1651747895363-transaction_charges.js +0 -13
  265. package/dist/migration/payment/1653296149259-transaction_source.js +0 -17
  266. package/dist/migration/payment/1656341396697-payment_link_descriptions.js +0 -17
  267. package/dist/migration/payment/1656341762925-description_not_null.js +0 -13
  268. package/dist/migration/payment/1657616863683-payment-provider-public-creds.js +0 -13
  269. package/dist/migration/payment/1658478874188-payment-provider-active-weighting.js +0 -19
  270. package/dist/migration/payment/1658483667045-payment-provider-payment-method.js +0 -18
  271. package/dist/migration/payment/1658998508532-transactions_currency.js +0 -13
  272. package/dist/migration/payment/1658998881887-all_currencies.js +0 -23
  273. package/dist/migration/payment/1659431411240-organisation-payment-provider-enable-soft-delete.js +0 -15
  274. package/dist/migration/payment/1659527810407-organisation-payment-provider-name.js +0 -26
  275. package/dist/migration/payment/1661262743555-organisation-payment-provider-method-weight.js +0 -25
  276. package/dist/migration/payment/1661876528683-organisation-payment-provider-cleanup-weight-attr.js +0 -13
  277. package/dist/migration/payment/1662027037400-nullable_payment_link_urls.js +0 -17
  278. package/dist/migration/payment/1664283726285-organisation-payment-provider-currency.js +0 -19
  279. package/dist/migration/payment/1664285327423-organisation-payment-provider-currency-populate.js +0 -17
  280. package/dist/migration/payment/1665959547444-transaction_reason.js +0 -13
  281. package/dist/migration/payment/1666878091167-credit_note.js +0 -19
  282. package/dist/migration/payment/1666880510631-credit_notes_customer_name.js +0 -13
  283. package/dist/migration/payment/1666947609074-credit_notes_short_id.js +0 -13
  284. package/dist/migration/payment/1667918366826-insert_applepay_and_googlepay_transaction_types.js +0 -14
  285. package/dist/migration/payment/1667925229730-organisation_payment_provider_add_applepay_googlepay_columns.js +0 -15
  286. package/dist/migration/payment/1669031343148-ecommerce_deleted_at.js +0 -13
  287. package/dist/migration/payment/1669040104944-ecommerce_transaction.js +0 -15
  288. package/dist/migration/payment/1669300217086-preauth.js +0 -15
  289. package/dist/migration/payment/1670494400647-payment_link_metadata.js +0 -13
  290. package/dist/migration/payment/1671012060001-transaction_assigned_at.js +0 -13
  291. package/dist/migration/payment/1676992104022-create-payment-link-type-table.js +0 -21
  292. package/dist/migration/payment/1689673317316-customer_entity.js +0 -21
  293. package/dist/migration/payment/1690368777929-customer_organisation.js +0 -13
  294. package/dist/migration/payment/1690368949313-customer_organisation_notnull.js +0 -15
  295. package/dist/migration/payment/1692783372591-tokenisation_provider.js +0 -13
  296. package/dist/migration/payment/1692784096414-tokenisation_provider_links.js +0 -21
  297. package/dist/migration/payment/1695209857606-refund.js +0 -23
  298. package/dist/migration/payment/1695368446155-refund_org.js +0 -15
  299. package/dist/migration/payment/1695734492122-transaction_tracing.js +0 -15
  300. package/dist/migration/payment/1695986876527-refund_failure_reason.js +0 -15
  301. package/dist/migration/payment/1698312655310-swap_pk_refunds.js +0 -23
  302. package/dist/migration/payment/1701960843276-customer_fields.js +0 -19
  303. package/dist/migration/payment/1702583802282-status_grouping.js +0 -13
  304. package/dist/migration/payment/1704881345200-surcharge_table.js +0 -15
  305. package/dist/migration/payment/1705495053739-org_tokenisation_provider.js +0 -17
  306. package/dist/migration/payment/1707862771162-transaction_ris.js +0 -16
  307. package/dist/migration/payment/1707863333445-transaction_risk_fix.js +0 -13
  308. package/dist/migration/reference/1660724885440-countries.js +0 -13
  309. package/dist/migration/saltedge/1674567015124-saltedge_entities.js +0 -41
  310. package/dist/migration/saltedge/1674569837946-saltedge_last_updated_at.js +0 -13
  311. package/dist/migration/saltedge/1674572364647-saltedge_update_transaction_ibans.js +0 -21
  312. package/dist/migration/saltedge/1678721742595-saltedge_currencies.js +0 -17
  313. package/dist/migration/saltedge/1679405632954-saltedge_lead.js +0 -15
  314. package/dist/migration/saltedge/1679499976511-connection_to_lead.js +0 -17
  315. package/dist/migration/saltedge/1679500440910-account_to_lead.js +0 -15
  316. package/dist/migration/saltedge/1679670597259-saltedge_connection_status.js +0 -13
  317. package/dist/migration/saltedge/1680523636126-saltedge_tx_updates.js +0 -33
  318. package/dist/migration/saltedge/1680526517354-saltedge_tx_type_nullable.js +0 -15
  319. package/dist/migration/saltedge/1680530730952-saltedge_tx_disbursal.js +0 -15
  320. package/dist/migration/saltedge/1686156816151-saltedge_multi_account.js +0 -21
  321. package/dist/migration/saltedge/1686157077928-saltedge_multi_account_fix.js +0 -19
  322. package/dist/migration/saltedge/1686218317938-saltedge_account_nickname.js +0 -13
  323. package/dist/migration/saltedge/1699281692894-ai_fields.js +0 -23
  324. package/dist/migration/scratch/1651181353263-scratch_abta_members.js +0 -13
  325. package/dist/migration/scratch/1651183064044-scratch_abta_members_fix.js +0 -19
  326. package/dist/migration/scratch/1651183188924-scratch_abta_members_length_fix.js +0 -19
  327. package/dist/migration/scratch/1651187490208-scratch_abta_members_financials.js +0 -23
  328. package/dist/migration/scratch/1651223911459-scratch_abta_members_company_number.js +0 -13
  329. package/dist/migration/scratch/1651225059114-scratch_abta_members_atol.js +0 -14
  330. package/dist/migration/scratch/1651225316981-scratch_abta_members_atol_fix.js +0 -15
  331. package/dist/migration/scratch/1651241112556-scratch_abta_members_atol_group.js +0 -13
  332. package/dist/migration/scratch/1651241351537-scratch_abta_members_atol_tta_id.js +0 -15
  333. package/dist/migration/token/1645613145774-token.js +0 -15
  334. package/dist/migration/token/1645618345963-token_secret_length.js +0 -15
  335. package/dist/migration/token/1645621420506-token_user.js +0 -17
  336. package/dist/migration/token/1656064704919-token_entity_timezones.js +0 -21
  337. package/dist/migration/total-processing/1644309449035-tpro_transactions.js +0 -13
  338. package/dist/migration/total-processing/1644411639660-total_processing_entity.js +0 -13
  339. package/dist/migration/total-processing/1644842797566-relations.js +0 -19
  340. package/dist/migration/total-processing/1644926407236-tp_rec_nullable.js +0 -13
  341. package/dist/migration/total-processing/1644933594682-tp_rec_status.js +0 -13
  342. package/dist/migration/total-processing/1645010756173-tp_transaction_metadata.js +0 -15
  343. package/dist/migration/total-processing/1663945952356-tpmessagecode.js +0 -15
  344. package/dist/migration/total-processing/1664533758035-tp_transaction_batch_number.js +0 -13
  345. package/dist/migration/total-processing/1669385847562-tp_transaction_id.js +0 -13
  346. package/dist/migration/total-processing/1689160105601-total_uuid.js +0 -13
  347. package/dist/migration/total-processing/1689161863334-total_nullable_merchant_account_number.js +0 -12
  348. package/dist/migration/trust-payments/1644016335590-tp_merchants.js +0 -13
  349. package/dist/migration/trust-payments/1644018105481-tp_add_batch.js +0 -15
  350. package/dist/migration/trust-payments/1644020330502-tp_transaction.js +0 -17
  351. package/dist/migration/trust-payments/1644791277717-chargeback.js +0 -15
  352. package/dist/migration/trust-payments/1648137333608-trust_chargeback_due.js +0 -13
  353. package/dist/migration/trust-payments/1648204597084-trust_ftp_log.js +0 -13
  354. package/dist/migration/trust-payments/1648218902763-trust_charges.js +0 -15
  355. package/dist/migration/trust-payments/1648717679150-trust_account_fees.js +0 -15
  356. package/dist/migration/trust-payments/1653905489904-trust_adjustment.js +0 -13
  357. package/dist/migration/trust-payments/1653905701399-trust_adjustment_merchant_number.js +0 -15
  358. package/dist/migration/trust-payments/1653911779226-trust_adjustment_bank_ref.js +0 -15
  359. package/dist/migration/trust-payments/1660211087722-trust_in_omnipay.js +0 -13
  360. package/dist/migration/trust-payments/1663666433231-trust_rolling_reserve.js +0 -13
  361. package/dist/migration/trust-payments/1664533949460-trust_transaction_batch_number_fix.js +0 -15
  362. package/dist/migration/trust-payments/1686301976291-trust_settlement_amount.js +0 -13
  363. package/dist/migration/trust-payments/1686303440691-trust_settlement_currency.js +0 -13
  364. package/dist/migration/trust-payments/1688382475027-trust_always_scrape.js +0 -13
  365. package/dist/migration/trust-payments/1688382817741-trust_import_transactions.js +0 -13
  366. package/dist/migration/trust-payments/1688461589610-trust_organisation_mapping.js +0 -15
  367. package/dist/migration/user/1641774481300-initial.js +0 -27
  368. package/dist/migration/user/1641829697638-add_parent_org.js +0 -25
  369. package/dist/migration/user/1641901624008-add_roles.js +0 -21
  370. package/dist/migration/user/1641903059924-add_roles_kyc.js +0 -13
  371. package/dist/migration/user/1641903425025-roles-defaults.js +0 -15
  372. package/dist/migration/user/1641939221103-feature.js +0 -13
  373. package/dist/migration/user/1642019067334-organisation-feature.js +0 -17
  374. package/dist/migration/user/1642078564295-user-activity-relation.js +0 -16
  375. package/dist/migration/user/1642207858247-fix-user-constraint.js +0 -19
  376. package/dist/migration/user/1643154226214-user-cognito-sub.js +0 -15
  377. package/dist/migration/user/1643195417761-user-nullable-mobile.js +0 -13
  378. package/dist/migration/user/1643296114720-user-login-link.js +0 -15
  379. package/dist/migration/user/1643323827662-login-link-used.js +0 -13
  380. package/dist/migration/user/1645621100580-user_is_api_user.js +0 -13
  381. package/dist/migration/user/1651582800086-organisation_image.js +0 -13
  382. package/dist/migration/user/1656057725099-timezoned_users.js +0 -22
  383. package/dist/migration/user/1656062997392-nullable_user_email.js +0 -13
  384. package/dist/migration/user/1656063685417-nullable_user_names.js +0 -15
  385. package/dist/migration/user/1658920205370-org_legacy_id.js +0 -13
  386. package/dist/migration/user/1659017405242-password_changed.js +0 -12
  387. package/dist/migration/user/1659017792935-audit.js +0 -27
  388. package/dist/migration/user/1659081328054-uuid_id_string.js +0 -19
  389. package/dist/migration/user/1660126405407-webhooks.js +0 -26
  390. package/dist/migration/user/1660170110686-webhook_child_orgs.js +0 -21
  391. package/dist/migration/user/1664880667093-organisation_payout_config.js +0 -15
  392. package/dist/migration/user/1669151569675-organisation_type.js +0 -17
  393. package/dist/migration/user/1684418112293-org_unpaid_invoice.js +0 -13
  394. package/dist/migration/user/1684765687786-org_partner_table.js +0 -17
  395. package/dist/migration/user/1688040388864-org_billing_enabled.js +0 -13
  396. package/dist/migration/user/1692182636537-organisation_archive.js +0 -13
  397. package/dist/migration/user/1694768586499-feature_descriptions.js +0 -13
  398. package/dist/migration/user/1694771670423-feature_is_beta.js +0 -13
  399. package/dist/migration/user/1695127749722-dependent_feature.js +0 -13
  400. package/dist/migration/user/1696844776497-webhook_log.js +0 -15
  401. package/dist/migration/user/1704271899435-webhook_response.js +0 -15
  402. package/dist/migration/user/1712740853812-surcharging_enabled.js +0 -13
  403. package/dist/model/index.js +0 -45
  404. package/dist/model/response/index.js +0 -159
  405. package/dist/model/response/status-codes.js +0 -74
  406. package/dist/model/status/index.js +0 -80
  407. package/dist/model/webhook/refund/index.js +0 -30
  408. package/dist/model/webhook/transaction/index.js +0 -50
  409. package/dist/service/audit-logger.js +0 -37
  410. package/dist/service/authentication.js +0 -168
  411. package/dist/service/event-bridge.js +0 -41
  412. package/dist/service/http.js +0 -53
  413. package/dist/service/logger.js +0 -238
  414. package/dist/service/payment-initiation-object/index.js +0 -101
  415. package/dist/service/request.js +0 -355
  416. package/dist/service/secrets.js +0 -44
  417. package/dist/service/user.js +0 -74
  418. package/dist/service/warehouse.js +0 -99
  419. package/dist/util/lambda-termination.js +0 -39
  420. package/dist/util/promisified-delay.js +0 -59
  421. package/dist/wrapper/index.js +0 -145
@@ -1,26 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class webhooks1660126405407 {
4
- name = 'webhooks1660126405407'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."webhook_types" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "machine_name" character varying(50) NOT NULL, "name" character varying(150) NOT NULL, "description" character varying(250) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "deleted_at" TIMESTAMP WITH TIME ZONE, CONSTRAINT "PK_0062153406a6125e2510c8e4a16" PRIMARY KEY ("id"))`);
8
- await queryRunner.query(`CREATE TABLE "user"."organisation_webhook" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "url" character varying(250) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "deleted_at" TIMESTAMP WITH TIME ZONE, "organisation_id" character varying(150), CONSTRAINT "PK_deb78b83ae8298b4a383c5f2f56" PRIMARY KEY ("id"))`);
9
- await queryRunner.query(`CREATE TABLE "user"."organisation_webhook_types" ("webhook_type_id" uuid NOT NULL, "organisation_webhook_id" uuid NOT NULL, CONSTRAINT "PK_e4847cc053914fd4613cb4d9ee2" PRIMARY KEY ("webhook_type_id", "organisation_webhook_id"))`);
10
- await queryRunner.query(`CREATE INDEX "IDX_5e4373e5d6dc38fc8fa54a0a91" ON "user"."organisation_webhook_types" ("webhook_type_id") `);
11
- await queryRunner.query(`CREATE INDEX "IDX_4ef74efa24be992cd0a1e4b535" ON "user"."organisation_webhook_types" ("organisation_webhook_id") `);
12
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" ADD CONSTRAINT "FK_a2497f989b9ac9d34eb746aa266" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
13
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919" FOREIGN KEY ("webhook_type_id") REFERENCES "user"."webhook_types"("id") ON DELETE CASCADE ON UPDATE CASCADE`);
14
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b" FOREIGN KEY ("organisation_webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
15
- }
16
-
17
- async down(queryRunner) {
18
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b"`);
19
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919"`);
20
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" DROP CONSTRAINT "FK_a2497f989b9ac9d34eb746aa266"`);
21
- await queryRunner.query(`ALTER TABLE "user"."user_role" DROP CONSTRAINT "FK_32a6fc2fcb019d8e3a8ace0f55f"`);
22
- await queryRunner.query(`DROP TABLE "user"."organisation_webhook_types"`);
23
- await queryRunner.query(`DROP TABLE "user"."organisation_webhook"`);
24
- await queryRunner.query(`DROP TABLE "user"."webhook_types"`);
25
- }
26
- }
@@ -1,21 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class webhookChildOrgs1660170110686 {
4
- name = 'webhookChildOrgs1660170110686'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b"`);
8
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919"`);
9
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" ADD "child_organisations" boolean NOT NULL DEFAULT false`);
10
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b" FOREIGN KEY ("organisation_webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE CASCADE ON UPDATE CASCADE`);
11
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919" FOREIGN KEY ("webhook_type_id") REFERENCES "user"."webhook_types"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
12
- }
13
-
14
- async down(queryRunner) {
15
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919"`);
16
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" DROP CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b"`);
17
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook" DROP COLUMN "child_organisations"`);
18
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_5e4373e5d6dc38fc8fa54a0a919" FOREIGN KEY ("webhook_type_id") REFERENCES "user"."webhook_types"("id") ON DELETE CASCADE ON UPDATE CASCADE`);
19
- await queryRunner.query(`ALTER TABLE "user"."organisation_webhook_types" ADD CONSTRAINT "FK_4ef74efa24be992cd0a1e4b535b" FOREIGN KEY ("organisation_webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
20
- }
21
- }
@@ -1,15 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class organisationPayoutConfig1664880667093 {
4
- name = 'organisationPayoutConfig1664880667093'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."organisation_payout_config" ("enabled" boolean NOT NULL DEFAULT false, "ledgering" boolean NOT NULL DEFAULT false, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "organisation_id" character varying(150) NOT NULL, CONSTRAINT "PK_3774dc6adea560c5b3b1ab20fbe" PRIMARY KEY ("organisation_id"))`);
8
- await queryRunner.query(`ALTER TABLE "user"."organisation_payout_config" ADD CONSTRAINT "FK_3774dc6adea560c5b3b1ab20fbe" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
- }
10
-
11
- async down(queryRunner) {
12
- await queryRunner.query(`ALTER TABLE "user"."organisation_payout_config" DROP CONSTRAINT "FK_3774dc6adea560c5b3b1ab20fbe"`);
13
- await queryRunner.query(`DROP TABLE "user"."organisation_payout_config"`);
14
- }
15
- }
@@ -1,17 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class organisationType1669151569675 {
4
- name = 'organisationType1669151569675'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."organisation_type" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "name" character varying(150) NOT NULL, CONSTRAINT "PK_725a339dae75d88d0bb5c7307ff" PRIMARY KEY ("id"))`);
8
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "type_id" uuid`);
9
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD CONSTRAINT "FK_725a339dae75d88d0bb5c7307ff" FOREIGN KEY ("type_id") REFERENCES "user"."organisation_type"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
10
- }
11
-
12
- async down(queryRunner) {
13
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP CONSTRAINT "FK_725a339dae75d88d0bb5c7307ff"`);
14
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "type_id"`);
15
- await queryRunner.query(`DROP TABLE "user"."organisation_type"`);
16
- }
17
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class orgUnpaidInvoice1684418112293 {
4
- name = 'orgUnpaidInvoice1684418112293'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "unpaid_invoice" boolean NOT NULL DEFAULT false`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "unpaid_invoice"`);
12
- }
13
- }
@@ -1,17 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class orgPartnerTable1684765687786 {
4
- name = 'orgPartnerTable1684765687786'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."organisation_partner" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created_at" TIMESTAMP NOT NULL DEFAULT now(), "partner_organisation_id" character varying(150), "organisation_id" character varying(150), CONSTRAINT "PK_0a648f4b349e30778c0cf423396" PRIMARY KEY ("id"))`);
8
- await queryRunner.query(`ALTER TABLE "user"."organisation_partner" ADD CONSTRAINT "FK_5e3d4cbb29e29ecb143e6a6b355" FOREIGN KEY ("partner_organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
- await queryRunner.query(`ALTER TABLE "user"."organisation_partner" ADD CONSTRAINT "FK_061ace0a686facc89cdbe4500b1" FOREIGN KEY ("organisation_id") REFERENCES "user"."organisation"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
10
- }
11
-
12
- async down(queryRunner) {
13
- await queryRunner.query(`ALTER TABLE "user"."organisation_partner" DROP CONSTRAINT "FK_061ace0a686facc89cdbe4500b1"`);
14
- await queryRunner.query(`ALTER TABLE "user"."organisation_partner" DROP CONSTRAINT "FK_5e3d4cbb29e29ecb143e6a6b355"`);
15
- await queryRunner.query(`DROP TABLE "user"."organisation_partner"`);
16
- }
17
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class orgBillingEnabled1688040388864 {
4
- name = 'orgBillingEnabled1688040388864'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "billing_enabled" boolean NOT NULL DEFAULT false`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "billing_enabled"`);
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class organisationArchive1692182636537 {
4
- name = 'organisationArchive1692182636537'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "archived_at" TIMESTAMP WITH TIME ZONE`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "archived_at"`);
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class featureDescriptions1694768586499 {
4
- name = 'featureDescriptions1694768586499'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."feature" ADD "description" character varying(1024)`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."feature" DROP COLUMN "description"`);
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class featureIsBeta1694771670423 {
4
- name = 'featureIsBeta1694771670423'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."feature" ADD "is_beta" boolean NOT NULL DEFAULT false`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."feature" DROP COLUMN "is_beta"`);
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class dependentFeature1695127749722 {
4
- name = 'dependentFeature1695127749722'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."role" ADD "dependent_feature_id" uuid`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."role" DROP COLUMN "dependent_feature_id"`);
12
- }
13
- }
@@ -1,15 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class webhookLog1696844776497 {
4
- name = 'webhookLog1696844776497'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."webhook_log" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "is_success" boolean NOT NULL DEFAULT false, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "webhook_id" uuid, CONSTRAINT "PK_5164958b17361a85955a433d958" PRIMARY KEY ("id"))`);
8
- await queryRunner.query(`ALTER TABLE "user"."webhook_log" ADD CONSTRAINT "FK_56a3f6a8db5033543a35f2ede5b" FOREIGN KEY ("webhook_id") REFERENCES "user"."organisation_webhook"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`);
9
- }
10
-
11
- async down(queryRunner) {
12
- await queryRunner.query(`ALTER TABLE "user"."webhook_log" DROP CONSTRAINT "FK_56a3f6a8db5033543a35f2ede5b"`);
13
- await queryRunner.query(`DROP TABLE "user"."webhook_log"`);
14
- }
15
- }
@@ -1,15 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class webhookResponse1704271899435 {
4
- name = 'webhookResponse1704271899435'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`CREATE TABLE "user"."mailer_log" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "email" character varying(150) NOT NULL, "template" character varying(100) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), CONSTRAINT "PK_8f2f1bf1151bf572199fb251081" PRIMARY KEY ("id"))`);
8
- await queryRunner.query(`ALTER TABLE "user"."webhook_log" ADD "response" text`);
9
- }
10
-
11
- async down(queryRunner) {
12
- await queryRunner.query(`ALTER TABLE "user"."webhook_log" DROP COLUMN "response"`);
13
- await queryRunner.query(`DROP TABLE "user"."mailer_log"`);
14
- }
15
- }
@@ -1,13 +0,0 @@
1
- const { MigrationInterface, QueryRunner } = require("typeorm");
2
-
3
- module.exports = class surchargingEnabled1712740853812 {
4
- name = 'surchargingEnabled1712740853812'
5
-
6
- async up(queryRunner) {
7
- await queryRunner.query(`ALTER TABLE "user"."organisation" ADD "surcharging_enabled" boolean NOT NULL DEFAULT false`);
8
- }
9
-
10
- async down(queryRunner) {
11
- await queryRunner.query(`ALTER TABLE "user"."organisation" DROP COLUMN "surcharging_enabled"`);
12
- }
13
- }
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _validate = _interopRequireDefault(require("validate.js/validate"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- /* eslint-disable class-methods-use-this */
13
-
14
- /**
15
- * Model base class
16
- */
17
- class Model {
18
- /**
19
- * Instantiate a function with a value if defined
20
- *
21
- * @param classFunctionName string
22
- * @param value mixed
23
- */
24
- instantiateFunctionWithDefinedValue(classFunctionName, value) {
25
- if (typeof value !== 'undefined') {
26
- this[classFunctionName](value);
27
- }
28
- }
29
- /**
30
- * Validate values against constraints
31
- *
32
- * @param values object
33
- * @param constraints object
34
- * @returns {boolean}
35
- */
36
-
37
-
38
- validateAgainstConstraints(values, constraints) {
39
- const validation = (0, _validate.default)(values, constraints);
40
- return typeof validation === 'undefined';
41
- }
42
-
43
- }
44
-
45
- exports.default = Model;
@@ -1,159 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.RESPONSE_HEADERS = void 0;
7
-
8
- var _uuid = require("uuid");
9
-
10
- var _ = _interopRequireDefault(require(".."));
11
-
12
- var _statusCodes = _interopRequireDefault(require("./status-codes"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- /**
17
- *
18
- * @type {object}
19
- */
20
- const RESPONSE_HEADERS = exports.RESPONSE_HEADERS = {
21
- 'Content-Type': 'application/json',
22
- 'Access-Control-Allow-Origin': '*',
23
- // Required for CORS support to work
24
- 'Access-Control-Allow-Credentials': true // Required for cookies, authorization headers with HTTPS
25
-
26
- };
27
- /**
28
- * class ResponseModel
29
- */
30
-
31
- class Index extends _.default {
32
- /**
33
- * ResponseModel Constructor
34
- *
35
- * @param data
36
- * @param code
37
- */
38
- constructor(data = null, code = 200) {
39
- super();
40
- this.body = {
41
- data: data !== null ? data : {},
42
- errors: [],
43
- meta: {
44
- code: code !== null ? code : {},
45
- reason: typeof _statusCodes.default[code] !== 'undefined' ? _statusCodes.default[code].reason : '',
46
- message: typeof _statusCodes.default[code] !== 'undefined' ? _statusCodes.default[code].message : code,
47
- request_id: (0, _uuid.v4)()
48
- }
49
- };
50
- this.code = code !== null ? code : {};
51
- }
52
- /**
53
- * Add or update a body variable
54
- *
55
- * @param variable
56
- * @param value
57
- */
58
-
59
-
60
- setBodyVariable(variable, value) {
61
- this.body[variable] = value;
62
- }
63
- /**
64
- * Set Data
65
- *
66
- * @param data
67
- */
68
-
69
-
70
- setData(data) {
71
- this.body.data = data;
72
- }
73
- /**
74
- * Set Status Code
75
- *
76
- * @param code
77
- */
78
-
79
-
80
- setCode(code) {
81
- this.body.meta.reason = typeof _statusCodes.default[code] !== 'undefined' ? _statusCodes.default[code].reason : '';
82
- this.body.meta.message = typeof _statusCodes.default[code] !== 'undefined' ? _statusCodes.default[code].message : code;
83
- this.code = code;
84
- this.body.meta.code = code;
85
- }
86
- /**
87
- * Get errors
88
- */
89
-
90
-
91
- getErrors() {
92
- return this.body.errors;
93
- }
94
- /**
95
- * Set errors
96
- * @param error
97
- */
98
-
99
-
100
- addError(error) {
101
- this.body.errors.push(error);
102
- }
103
- /**
104
- * Set a meta variable
105
- * @param key
106
- * @param value
107
- */
108
-
109
-
110
- setMetaVariable(key, value) {
111
- this.body.meta[key] = value;
112
- }
113
- /**
114
- * Get Status Code
115
- *
116
- * @returns {*}
117
- */
118
-
119
-
120
- getCode() {
121
- return this.code;
122
- }
123
- /**
124
- * Geneate a response
125
- *
126
- * @returns {object}
127
- */
128
-
129
-
130
- generate() {
131
- return {
132
- statusCode: this.code,
133
- headers: RESPONSE_HEADERS,
134
- body: JSON.stringify(this.body)
135
- };
136
- }
137
- /**
138
- * Shorthand static method
139
- * that generates the response immediately
140
- * if no additional processing is required.
141
- *
142
- * Saves only 1 line of code
143
- * but keeps code terse in a lot of places.
144
- *
145
- * @param {*} data
146
- * @param {*} code
147
- * @param {*} message
148
- * @returns {object}
149
- */
150
-
151
-
152
- static generate(data = null, code = null, message = null) {
153
- const response = new this(data, code, message);
154
- return response.generate();
155
- }
156
-
157
- }
158
-
159
- exports.default = Index;
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- const ERRORS = {
8
- 200: {
9
- reason: 'OK',
10
- message: 'The request was successful'
11
- },
12
- 201: {
13
- reason: 'Created',
14
- message: 'The request was successful, and a new resource was created'
15
- },
16
- 204: {
17
- reason: 'No Content',
18
- message: 'The request was successful, but there is no response to send back'
19
- },
20
- 400: {
21
- reason: 'Bad Request',
22
- message: 'The request was invalid, for example due to missing headers'
23
- },
24
- 401: {
25
- reason: 'Unauthorized',
26
- message: 'An access token was not provided, or the provided token was invalid'
27
- },
28
- 403: {
29
- reason: 'Forbidden',
30
- message: 'A valid access token was provided, but it did not have sufficient permissions'
31
- },
32
- 404: {
33
- reason: 'Not Found',
34
- message: 'The requested resource does not exist'
35
- },
36
- 406: {
37
- reason: 'Not Acceptable',
38
- message: 'The response type you requested with your Accept header is not supported'
39
- },
40
- 410: {
41
- reason: 'Gone',
42
- message: 'Access to the target resource is no longer available.'
43
- },
44
- 413: {
45
- reason: 'Request Entity Too Large',
46
- message: 'Your request has exceeded our file size limit, please reduce your query size.'
47
- },
48
- 422: {
49
- reason: 'Unprocessable Entity',
50
- message: 'A validation error occurred'
51
- },
52
- 429: {
53
- reason: 'Too Many Requests',
54
- message: 'You made too many requests to the API in a short period of time'
55
- },
56
- 500: {
57
- reason: 'Internal Server Error',
58
- message: 'Something went wrong on our side. Contact support or try again later.'
59
- },
60
- 502: {
61
- reason: 'Bad Gateway',
62
- message: 'The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.'
63
- },
64
- 503: {
65
- reason: 'Service Unavailable',
66
- message: 'The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. Try again later.'
67
- },
68
- 504: {
69
- reason: 'Gateway Timeout',
70
- message: 'The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request. Try again later.'
71
- }
72
- };
73
-
74
- var _default = exports.default = ERRORS;
@@ -1,80 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.STATUS_TYPES = void 0;
7
-
8
- var _index = _interopRequireDefault(require("../index"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- const STATUS_TYPES = exports.STATUS_TYPES = {
13
- OK: 'OK',
14
- ACCEPTABLE_FAILURE: 'ACCEPTABLE_FAILURE',
15
- APPLICATION_FAILURE: 'APPLICATION_FAILURE'
16
- };
17
- /**
18
- * StatusModel Class
19
- */
20
-
21
- class Index extends _index.default {
22
- /**
23
- * StatusModel constructor
24
- *
25
- * @param service
26
- * @param status
27
- */
28
- constructor(service, status) {
29
- super();
30
- this.setService(service);
31
- this.setStatus(status);
32
- }
33
- /**
34
- * Get Service
35
- *
36
- * @returns {*}
37
- */
38
-
39
-
40
- getService() {
41
- return this.service;
42
- }
43
- /**
44
- * Set Service
45
- *
46
- * @param service
47
- */
48
-
49
-
50
- setService(service) {
51
- this.service = service;
52
- }
53
- /**
54
- * Set the status
55
- *
56
- * @param status
57
- */
58
-
59
-
60
- setStatus(status) {
61
- if (typeof STATUS_TYPES[status] === 'undefined') {
62
- throw new TypeError(`${Index.name} - ${status} is not a valid status type`);
63
- }
64
-
65
- this.status = status;
66
- }
67
- /**
68
- * Get status
69
- *
70
- * @returns {string|*}
71
- */
72
-
73
-
74
- getStatus() {
75
- return this.status;
76
- }
77
-
78
- }
79
-
80
- exports.default = Index;
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- class RefundWebhook {
9
- constructor(refund) {
10
- this.refund = refund;
11
- }
12
-
13
- get() {
14
- var _this$refund, _this$refund2, _this$refund$transact, _this$refund3, _this$refund3$status;
15
-
16
- return {
17
- authorisation_code: (_this$refund = this.refund) === null || _this$refund === void 0 ? void 0 : _this$refund.authorisation_code,
18
- actioned_at: (_this$refund2 = this.refund) === null || _this$refund2 === void 0 ? void 0 : _this$refund2.updated_at,
19
- transaction: {
20
- id: (_this$refund$transact = this.refund.transaction) === null || _this$refund$transact === void 0 ? void 0 : _this$refund$transact.id
21
- },
22
- status: {
23
- id: (_this$refund3 = this.refund) === null || _this$refund3 === void 0 ? void 0 : (_this$refund3$status = _this$refund3.status) === null || _this$refund3$status === void 0 ? void 0 : _this$refund3$status.id
24
- }
25
- };
26
- }
27
-
28
- }
29
-
30
- exports.default = RefundWebhook;