@felloh-org/lambda-wrapper 1.11.100 → 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.
- package/dist/index.js +1 -987
- package/package.json +13 -7
- package/webpack.config.js +36 -0
- package/dist/config/dependencies.js +0 -58
- package/dist/dependency-injection/dependency-aware.js +0 -43
- package/dist/dependency-injection/dependency-injection.js +0 -135
- package/dist/entity/acquirer/adjustment/index.js +0 -128
- package/dist/entity/acquirer/band/index.js +0 -60
- package/dist/entity/acquirer/band_rate/index.js +0 -65
- package/dist/entity/acquirer/batch/index.js +0 -165
- package/dist/entity/acquirer/bin/index.js +0 -142
- package/dist/entity/acquirer/bin-rules/index.js +0 -231
- package/dist/entity/acquirer/bin-type-grouping/index.js +0 -56
- package/dist/entity/acquirer/country-type/index.js +0 -44
- package/dist/entity/acquirer/fee/index.js +0 -127
- package/dist/entity/acquirer/index.js +0 -22
- package/dist/entity/acquirer/organisation-band/index.js +0 -61
- package/dist/entity/acquirer/transaction-settlement/index.js +0 -123
- package/dist/entity/agent-data/booking/index.js +0 -346
- package/dist/entity/agent-data/booking-bank-transaction/index.js +0 -68
- package/dist/entity/agent-data/booking-component/index.js +0 -153
- package/dist/entity/agent-data/booking-component-type/index.js +0 -42
- package/dist/entity/agent-data/booking-package-type/index.js +0 -38
- package/dist/entity/agent-data/index.js +0 -28
- package/dist/entity/agent-data/supplier/index.js +0 -87
- package/dist/entity/agent-data/supplier-type/index.js +0 -42
- package/dist/entity/aisp/gocardless-account/index.js +0 -142
- package/dist/entity/aisp/gocardless-agreement/index.js +0 -73
- package/dist/entity/aisp/gocardless-requisition/index.js +0 -132
- package/dist/entity/aisp/index.js +0 -20
- package/dist/entity/aisp/transaction/index.js +0 -231
- package/dist/entity/bank/account/index.js +0 -96
- package/dist/entity/bank/adjustment/index.js +0 -168
- package/dist/entity/bank/adjustment-batch/index.js +0 -83
- package/dist/entity/bank/amendment/index.js +0 -161
- package/dist/entity/bank/beneficiary/index.js +0 -125
- package/dist/entity/bank/currency/index.js +0 -66
- package/dist/entity/bank/disbursal/index.js +0 -210
- package/dist/entity/bank/index.js +0 -34
- package/dist/entity/bank/ledger/index.js +0 -212
- package/dist/entity/bank/settled-transaction/index.js +0 -117
- package/dist/entity/bank/transaction-batch/index.js +0 -93
- package/dist/entity/bank/vendor/index.js +0 -56
- package/dist/entity/basis-theory/index.js +0 -14
- package/dist/entity/basis-theory/token/index.js +0 -133
- package/dist/entity/index.js +0 -42
- package/dist/entity/nuapay/account/index.js +0 -95
- package/dist/entity/nuapay/balance/index.js +0 -63
- package/dist/entity/nuapay/beneficiary/index.js +0 -59
- package/dist/entity/nuapay/index.js +0 -20
- package/dist/entity/nuapay/transaction/index.js +0 -119
- package/dist/entity/nuvei/batch/index.js +0 -84
- package/dist/entity/nuvei/index.js +0 -20
- package/dist/entity/nuvei/merchant/index.js +0 -55
- package/dist/entity/nuvei/transaction/index.js +0 -229
- package/dist/entity/nuvei/transaction-metadata/index.js +0 -283
- package/dist/entity/operations/fingerprint-exclusion/index.js +0 -38
- package/dist/entity/operations/index.js +0 -14
- package/dist/entity/operations/ip-exclusion/index.js +0 -38
- package/dist/entity/payment/chargeback/index.js +0 -141
- package/dist/entity/payment/credit-note/index.js +0 -184
- package/dist/entity/payment/customer/index.js +0 -197
- package/dist/entity/payment/ecommerce/index.js +0 -321
- package/dist/entity/payment/index.js +0 -60
- package/dist/entity/payment/organisation-payment-provider/index.js +0 -233
- package/dist/entity/payment/organisation-payment-provider-method/index.js +0 -63
- package/dist/entity/payment/organisation-tokenisation-provider/index.js +0 -79
- package/dist/entity/payment/payment-link/index.js +0 -424
- package/dist/entity/payment/payment-link-type/index.js +0 -38
- package/dist/entity/payment/payment-provider/index.js +0 -89
- package/dist/entity/payment/refund/index.js +0 -210
- package/dist/entity/payment/refund-status/index.js +0 -44
- package/dist/entity/payment/tokenisation-provider/index.js +0 -51
- package/dist/entity/payment/transaction/index.js +0 -546
- package/dist/entity/payment/transaction-event/index.js +0 -81
- package/dist/entity/payment/transaction-event-type/index.js +0 -49
- package/dist/entity/payment/transaction-metadata/index.js +0 -158
- package/dist/entity/payment/transaction-method/index.js +0 -38
- package/dist/entity/payment/transaction-rate/index.js +0 -140
- package/dist/entity/payment/transaction-reason/index.js +0 -60
- package/dist/entity/payment/transaction-risk/index.js +0 -143
- package/dist/entity/payment/transaction-source/index.js +0 -38
- package/dist/entity/payment/transaction-status/index.js +0 -48
- package/dist/entity/payment/transaction-surcharge/index.js +0 -87
- package/dist/entity/payment/transaction-type/index.js +0 -38
- package/dist/entity/reference/country/index.js +0 -45
- package/dist/entity/reference/index.js +0 -14
- package/dist/entity/saltedge/account/index.js +0 -182
- package/dist/entity/saltedge/connection/index.js +0 -133
- package/dist/entity/saltedge/customer/index.js +0 -70
- package/dist/entity/saltedge/index.js +0 -22
- package/dist/entity/saltedge/lead/index.js +0 -75
- package/dist/entity/saltedge/transaction/index.js +0 -327
- package/dist/entity/scratch/abta-members/index.js +0 -282
- package/dist/entity/scratch/index.js +0 -14
- package/dist/entity/token/index.js +0 -14
- package/dist/entity/token/token/index.js +0 -143
- package/dist/entity/total-processing/index.js +0 -16
- package/dist/entity/total-processing/transaction/index.js +0 -174
- package/dist/entity/total-processing/transaction-metadata/index.js +0 -137
- package/dist/entity/trust-payments/account-fees/index.js +0 -94
- package/dist/entity/trust-payments/adjustment/index.js +0 -113
- package/dist/entity/trust-payments/batch/index.js +0 -84
- package/dist/entity/trust-payments/chargeback/index.js +0 -128
- package/dist/entity/trust-payments/index.js +0 -28
- package/dist/entity/trust-payments/ingested-data/index.js +0 -56
- package/dist/entity/trust-payments/merchant/index.js +0 -139
- package/dist/entity/trust-payments/transaction/index.js +0 -183
- package/dist/entity/trust-payments/transaction-charges/index.js +0 -81
- package/dist/entity/user/feature/index.js +0 -87
- package/dist/entity/user/index.js +0 -42
- package/dist/entity/user/login-link/index.js +0 -82
- package/dist/entity/user/mailer-log/index.js +0 -75
- package/dist/entity/user/organisation/index.js +0 -242
- package/dist/entity/user/organisation-feature/index.js +0 -68
- package/dist/entity/user/organisation-partner/index.js +0 -66
- package/dist/entity/user/organisation-payout-config/index.js +0 -96
- package/dist/entity/user/organisation-type/index.js +0 -43
- package/dist/entity/user/organisation-webhook/index.js +0 -119
- package/dist/entity/user/role/index.js +0 -124
- package/dist/entity/user/user/index.js +0 -218
- package/dist/entity/user/user-activity/index.js +0 -116
- package/dist/entity/user/user-role/index.js +0 -82
- package/dist/entity/user/webhook-log/index.js +0 -89
- package/dist/entity/user/webhook-types/index.js +0 -119
- package/dist/enums/payment-initation-types/index.js +0 -11
- package/dist/event/base-event/index.js +0 -76
- package/dist/event/csv/email/index.js +0 -23
- package/dist/event/index.js +0 -55
- package/dist/event/posc/request/index.js +0 -23
- package/dist/event/transaction/complete/email/index.js +0 -23
- package/dist/event/transaction/complete/index.js +0 -23
- package/dist/event/transaction/refund-request/index.js +0 -23
- package/dist/event/user/password/changed/index.js +0 -23
- package/dist/event/user/password/reset/index.js +0 -23
- package/dist/event/user/registration/index.js +0 -23
- package/dist/event/user/sandbox-registration/index.js +0 -23
- package/dist/migration/acquirer/1686830639312-acquirer_entities.js +0 -21
- package/dist/migration/acquirer/1686833169652-acquirer_batch_relation.js +0 -23
- package/dist/migration/acquirer/1686834512382-acquirer_batch_remove_organisation.js +0 -14
- package/dist/migration/acquirer/1686913849538-acquirer_batch_in_trust.js +0 -12
- package/dist/migration/acquirer/1692102029462-acquirer_adjustment.js +0 -19
- package/dist/migration/acquirer/1692873462263-acquirer_bin_list.js +0 -13
- package/dist/migration/acquirer/1692877747460-acquirer_bin_rules.js +0 -15
- package/dist/migration/acquirer/1692878000108-acquirer_bin_rules_nullable.js +0 -15
- package/dist/migration/acquirer/1705493819447-bin_rules_country.js +0 -19
- package/dist/migration/acquirer/1708596720562-bandings.js +0 -25
- package/dist/migration/acquirer/1708598335438-band_rate.js +0 -17
- package/dist/migration/acquirer/1708605040113-transaction_rate.js +0 -19
- package/dist/migration/acquirer/1708609916248-bin_type_grouping.js +0 -13
- package/dist/migration/acquirer/1708616903284-field_length.js +0 -25
- package/dist/migration/acquirer/1709030948477-update_precission_fee.js +0 -19
- package/dist/migration/acquirer/1709822228302-update_precission_band_rate.js +0 -13
- package/dist/migration/agent-data/1642121041760-inital.js +0 -15
- package/dist/migration/agent-data/1642121610577-organisation-suppliers.js +0 -13
- package/dist/migration/agent-data/1642121681610-organisation-suppliers-type.js +0 -13
- package/dist/migration/agent-data/1642122014731-booking-component-type.js +0 -13
- package/dist/migration/agent-data/1642505882721-booking-fields.js +0 -29
- package/dist/migration/agent-data/1642508385880-booking-id.js +0 -19
- package/dist/migration/agent-data/1642771380681-add-supplier-detail.js +0 -17
- package/dist/migration/agent-data/1642771909248-swap-uuid.js +0 -41
- package/dist/migration/agent-data/1656410109048-booking_gross.js +0 -13
- package/dist/migration/agent-data/1656411834978-booking_nullables.js +0 -13
- package/dist/migration/agent-data/1656421768668-booking_components.js +0 -27
- package/dist/migration/agent-data/1656422133900-booking_components_organisation.js +0 -15
- package/dist/migration/agent-data/1659707743290-booking_soft_delete.js +0 -13
- package/dist/migration/agent-data/1660137703368-booking-index.js +0 -13
- package/dist/migration/agent-data/1660741384852-bookings_is_temporary.js +0 -12
- package/dist/migration/agent-data/1664181706131-ecom.js +0 -19
- package/dist/migration/agent-data/1664790996613-payment_link_soft_delete.js +0 -13
- package/dist/migration/agent-data/1676565874446-booking-currency.js +0 -13
- package/dist/migration/agent-data/1680598468694-create-booking-package-type-table.js +0 -19
- package/dist/migration/agent-data/1683899996464-booking_atol_receipt_number.js +0 -13
- package/dist/migration/agent-data/1684158044886-booking_bank_transaction.js +0 -17
- package/dist/migration/aisp/1710334149128-aisp_agreement.js +0 -17
- package/dist/migration/aisp/1710340812651-aisp_requisition.js +0 -19
- package/dist/migration/aisp/1710342798216-aisp_commenced_completed.js +0 -15
- package/dist/migration/aisp/1710349579447-aisp_account.js +0 -17
- package/dist/migration/aisp/1710350514324-balancesandcurrencies.js +0 -17
- package/dist/migration/aisp/1710362598295-transaction_aisp.js +0 -21
- package/dist/migration/aisp/1710370387188-account_organisation.js +0 -15
- package/dist/migration/aisp/1710371316539-add_nickname.js +0 -13
- package/dist/migration/aisp/1710372510335-institution_name.js +0 -13
- package/dist/migration/aisp/1712138801073-aisp_type_code.js +0 -13
- package/dist/migration/aisp/1713354543529-transaction_batch_link.js +0 -15
- package/dist/migration/aisp/1713365208792-found_customer_account.js +0 -13
- package/dist/migration/bank/1642313073694-bank-initial.js +0 -15
- package/dist/migration/bank/1645101410250-bank_disbursal.js +0 -28
- package/dist/migration/bank/1645102501719-bank_disbursal_unique.js +0 -17
- package/dist/migration/bank/1645103420324-ledger.js +0 -19
- package/dist/migration/bank/1645103864454-ledger-defaults.js +0 -15
- package/dist/migration/bank/1645108723739-bank-settled-transaction.js +0 -19
- package/dist/migration/bank/1651658976210-batches.js +0 -17
- package/dist/migration/bank/1651659772400-batches_id_chage.js +0 -25
- package/dist/migration/bank/1651660836295-batches_completed_at.js +0 -13
- package/dist/migration/bank/1651671204869-beneficiary.js +0 -17
- package/dist/migration/bank/1657625543494-amendment.js +0 -19
- package/dist/migration/bank/1657630420519-amendment_undertaken_at.js +0 -12
- package/dist/migration/bank/1657630681583-vendor.js +0 -17
- package/dist/migration/bank/1657631323026-ammed_supplier_ref.js +0 -12
- package/dist/migration/bank/1657637492675-transaction-provider-metadata.js +0 -13
- package/dist/migration/bank/1657711121280-adjustment.js +0 -17
- package/dist/migration/bank/1657713850640-ledger_adjustment.js +0 -15
- package/dist/migration/bank/1658999065280-currency_table.js +0 -13
- package/dist/migration/bank/1664879624602-currency-metadata.js +0 -18
- package/dist/migration/bank/1665571290711-disbursement_provider_reference.js +0 -13
- package/dist/migration/bank/1665652395554-disbursement_ledgered.js +0 -13
- package/dist/migration/bank/1670517416837-disbursal_manual_review.js +0 -13
- package/dist/migration/bank/1670929960647-disbursal_updated_legacy_system.js +0 -13
- package/dist/migration/bank/1686303842122-bank_setlement_amount_and_currency.js +0 -17
- package/dist/migration/bank/1714140033660-adjustment_batch.js +0 -19
- package/dist/migration/bank/1714381892560-adjustment_column_fix.js +0 -19
- package/dist/migration/basis-theory/1704976983106-basis_theory.js +0 -13
- package/dist/migration/basis-theory/1705322282519-basis_theory_token_store.js +0 -15
- package/dist/migration/basis-theory/1705327854669-basis_theory_token_customer.js +0 -19
- package/dist/migration/basis-theory/1705330136016-basis_theory_token_bin_brand.js +0 -15
- package/dist/migration/nuapay/1642200051764-initial.js +0 -13
- package/dist/migration/nuapay/1642201303413-add-fields-nuapay.js +0 -15
- package/dist/migration/nuapay/1642282666475-add-nuapay-account.js +0 -13
- package/dist/migration/nuapay/1642283420696-fix-iban-length.js +0 -15
- package/dist/migration/nuapay/1642283781684-account-relation.js +0 -15
- package/dist/migration/nuapay/1642286393959-beneficiary.js +0 -13
- package/dist/migration/nuapay/1642316424390-account-ibans.js +0 -21
- package/dist/migration/nuapay/1642318117667-cleanup-beneficaries.js +0 -23
- package/dist/migration/nuapay/1642365244026-nullable-bic.js +0 -13
- package/dist/migration/nuapay/1642366232568-remove-bic.js +0 -13
- package/dist/migration/nuapay/1642370449589-transaction.js +0 -17
- package/dist/migration/nuvei/1658229415800-nuvei-transaction-schema.js +0 -13
- package/dist/migration/nuvei/1668703920070-nuvei-transaction-id-extend-length.js +0 -13
- package/dist/migration/nuvei/1669564062461-create_nuvei_transaction_metadata_table.js +0 -16
- package/dist/migration/nuvei/1670420255443-add-nuvei-webhook-additional-columns-to-trnasaction-metadata.js +0 -41
- package/dist/migration/nuvei/1670932754369-add_nuvei_transaction_id_column.js +0 -51
- package/dist/migration/nuvei/1671555132026-nuvei_batch_and_merchant.js +0 -17
- package/dist/migration/nuvei/1673268042534-nuvei-transaction-metadata-increase-avs-column-size.js +0 -13
- package/dist/migration/nuvei/1673432057176-nuvei-transaction-metadata-make-card-type-nullable.js +0 -13
- package/dist/migration/nuvei/1673532192232-make-merchant-columns-and-session-token-nullable-nuvei-trnsaction.js +0 -17
- package/dist/migration/operations/1695811546501-ip_exclusion_list.js +0 -13
- package/dist/migration/operations/1695820446445-fingerprint.js +0 -15
- package/dist/migration/payment/1642120204899-inital.js +0 -21
- package/dist/migration/payment/1642514728358-payment-link-updates.js +0 -39
- package/dist/migration/payment/1642516017835-payment-link-add-booking.js +0 -15
- package/dist/migration/payment/1642519453365-transaction.js +0 -63
- package/dist/migration/payment/1642520774562-transaction-payment-link.js +0 -15
- package/dist/migration/payment/1642533711013-transaction-metadata.js +0 -15
- package/dist/migration/payment/1642540883807-transaction-event.js +0 -27
- package/dist/migration/payment/1642805897210-payment-link-customer.js +0 -13
- package/dist/migration/payment/1643717852114-payment-providers.js +0 -19
- package/dist/migration/payment/1643718714719-payment-providers-method.js +0 -15
- package/dist/migration/payment/1643719203328-payment-providers-method.js +0 -22
- package/dist/migration/payment/1644395533722-transaction_provider.js +0 -15
- package/dist/migration/payment/1644396011044-transaction_provider_ref.js +0 -13
- package/dist/migration/payment/1647251762169-payment_link_methods.js +0 -15
- package/dist/migration/payment/1647271619083-payment_link_moto.js +0 -13
- package/dist/migration/payment/1647292573651-provider_secret_length.js +0 -15
- package/dist/migration/payment/1647294601399-provider_secret_length.js +0 -15
- package/dist/migration/payment/1647428635630-transaction_organisation_payment_provider.js +0 -15
- package/dist/migration/payment/1647437109221-transaction_message.js +0 -13
- package/dist/migration/payment/1647437500834-transaction_updated_at.js +0 -13
- package/dist/migration/payment/1649925229394-add_payment_link_status.js +0 -13
- package/dist/migration/payment/1650357812532-payment_chargeback.js +0 -15
- package/dist/migration/payment/1650974827938-update_to_with_timezones.js +0 -49
- package/dist/migration/payment/1651050178971-update_to_with_timestamp.js +0 -59
- package/dist/migration/payment/1651747895363-transaction_charges.js +0 -13
- package/dist/migration/payment/1653296149259-transaction_source.js +0 -17
- package/dist/migration/payment/1656341396697-payment_link_descriptions.js +0 -17
- package/dist/migration/payment/1656341762925-description_not_null.js +0 -13
- package/dist/migration/payment/1657616863683-payment-provider-public-creds.js +0 -13
- package/dist/migration/payment/1658478874188-payment-provider-active-weighting.js +0 -19
- package/dist/migration/payment/1658483667045-payment-provider-payment-method.js +0 -18
- package/dist/migration/payment/1658998508532-transactions_currency.js +0 -13
- package/dist/migration/payment/1658998881887-all_currencies.js +0 -23
- package/dist/migration/payment/1659431411240-organisation-payment-provider-enable-soft-delete.js +0 -15
- package/dist/migration/payment/1659527810407-organisation-payment-provider-name.js +0 -26
- package/dist/migration/payment/1661262743555-organisation-payment-provider-method-weight.js +0 -25
- package/dist/migration/payment/1661876528683-organisation-payment-provider-cleanup-weight-attr.js +0 -13
- package/dist/migration/payment/1662027037400-nullable_payment_link_urls.js +0 -17
- package/dist/migration/payment/1664283726285-organisation-payment-provider-currency.js +0 -19
- package/dist/migration/payment/1664285327423-organisation-payment-provider-currency-populate.js +0 -17
- package/dist/migration/payment/1665959547444-transaction_reason.js +0 -13
- package/dist/migration/payment/1666878091167-credit_note.js +0 -19
- package/dist/migration/payment/1666880510631-credit_notes_customer_name.js +0 -13
- package/dist/migration/payment/1666947609074-credit_notes_short_id.js +0 -13
- package/dist/migration/payment/1667918366826-insert_applepay_and_googlepay_transaction_types.js +0 -14
- package/dist/migration/payment/1667925229730-organisation_payment_provider_add_applepay_googlepay_columns.js +0 -15
- package/dist/migration/payment/1669031343148-ecommerce_deleted_at.js +0 -13
- package/dist/migration/payment/1669040104944-ecommerce_transaction.js +0 -15
- package/dist/migration/payment/1669300217086-preauth.js +0 -15
- package/dist/migration/payment/1670494400647-payment_link_metadata.js +0 -13
- package/dist/migration/payment/1671012060001-transaction_assigned_at.js +0 -13
- package/dist/migration/payment/1676992104022-create-payment-link-type-table.js +0 -21
- package/dist/migration/payment/1689673317316-customer_entity.js +0 -21
- package/dist/migration/payment/1690368777929-customer_organisation.js +0 -13
- package/dist/migration/payment/1690368949313-customer_organisation_notnull.js +0 -15
- package/dist/migration/payment/1692783372591-tokenisation_provider.js +0 -13
- package/dist/migration/payment/1692784096414-tokenisation_provider_links.js +0 -21
- package/dist/migration/payment/1695209857606-refund.js +0 -23
- package/dist/migration/payment/1695368446155-refund_org.js +0 -15
- package/dist/migration/payment/1695734492122-transaction_tracing.js +0 -15
- package/dist/migration/payment/1695986876527-refund_failure_reason.js +0 -15
- package/dist/migration/payment/1698312655310-swap_pk_refunds.js +0 -23
- package/dist/migration/payment/1701960843276-customer_fields.js +0 -19
- package/dist/migration/payment/1702583802282-status_grouping.js +0 -13
- package/dist/migration/payment/1704881345200-surcharge_table.js +0 -15
- package/dist/migration/payment/1705495053739-org_tokenisation_provider.js +0 -17
- package/dist/migration/payment/1707862771162-transaction_ris.js +0 -16
- package/dist/migration/payment/1707863333445-transaction_risk_fix.js +0 -13
- package/dist/migration/reference/1660724885440-countries.js +0 -13
- package/dist/migration/saltedge/1674567015124-saltedge_entities.js +0 -41
- package/dist/migration/saltedge/1674569837946-saltedge_last_updated_at.js +0 -13
- package/dist/migration/saltedge/1674572364647-saltedge_update_transaction_ibans.js +0 -21
- package/dist/migration/saltedge/1678721742595-saltedge_currencies.js +0 -17
- package/dist/migration/saltedge/1679405632954-saltedge_lead.js +0 -15
- package/dist/migration/saltedge/1679499976511-connection_to_lead.js +0 -17
- package/dist/migration/saltedge/1679500440910-account_to_lead.js +0 -15
- package/dist/migration/saltedge/1679670597259-saltedge_connection_status.js +0 -13
- package/dist/migration/saltedge/1680523636126-saltedge_tx_updates.js +0 -33
- package/dist/migration/saltedge/1680526517354-saltedge_tx_type_nullable.js +0 -15
- package/dist/migration/saltedge/1680530730952-saltedge_tx_disbursal.js +0 -15
- package/dist/migration/saltedge/1686156816151-saltedge_multi_account.js +0 -21
- package/dist/migration/saltedge/1686157077928-saltedge_multi_account_fix.js +0 -19
- package/dist/migration/saltedge/1686218317938-saltedge_account_nickname.js +0 -13
- package/dist/migration/saltedge/1699281692894-ai_fields.js +0 -23
- package/dist/migration/scratch/1651181353263-scratch_abta_members.js +0 -13
- package/dist/migration/scratch/1651183064044-scratch_abta_members_fix.js +0 -19
- package/dist/migration/scratch/1651183188924-scratch_abta_members_length_fix.js +0 -19
- package/dist/migration/scratch/1651187490208-scratch_abta_members_financials.js +0 -23
- package/dist/migration/scratch/1651223911459-scratch_abta_members_company_number.js +0 -13
- package/dist/migration/scratch/1651225059114-scratch_abta_members_atol.js +0 -14
- package/dist/migration/scratch/1651225316981-scratch_abta_members_atol_fix.js +0 -15
- package/dist/migration/scratch/1651241112556-scratch_abta_members_atol_group.js +0 -13
- package/dist/migration/scratch/1651241351537-scratch_abta_members_atol_tta_id.js +0 -15
- package/dist/migration/token/1645613145774-token.js +0 -15
- package/dist/migration/token/1645618345963-token_secret_length.js +0 -15
- package/dist/migration/token/1645621420506-token_user.js +0 -17
- package/dist/migration/token/1656064704919-token_entity_timezones.js +0 -21
- package/dist/migration/total-processing/1644309449035-tpro_transactions.js +0 -13
- package/dist/migration/total-processing/1644411639660-total_processing_entity.js +0 -13
- package/dist/migration/total-processing/1644842797566-relations.js +0 -19
- package/dist/migration/total-processing/1644926407236-tp_rec_nullable.js +0 -13
- package/dist/migration/total-processing/1644933594682-tp_rec_status.js +0 -13
- package/dist/migration/total-processing/1645010756173-tp_transaction_metadata.js +0 -15
- package/dist/migration/total-processing/1663945952356-tpmessagecode.js +0 -15
- package/dist/migration/total-processing/1664533758035-tp_transaction_batch_number.js +0 -13
- package/dist/migration/total-processing/1669385847562-tp_transaction_id.js +0 -13
- package/dist/migration/total-processing/1689160105601-total_uuid.js +0 -13
- package/dist/migration/total-processing/1689161863334-total_nullable_merchant_account_number.js +0 -12
- package/dist/migration/trust-payments/1644016335590-tp_merchants.js +0 -13
- package/dist/migration/trust-payments/1644018105481-tp_add_batch.js +0 -15
- package/dist/migration/trust-payments/1644020330502-tp_transaction.js +0 -17
- package/dist/migration/trust-payments/1644791277717-chargeback.js +0 -15
- package/dist/migration/trust-payments/1648137333608-trust_chargeback_due.js +0 -13
- package/dist/migration/trust-payments/1648204597084-trust_ftp_log.js +0 -13
- package/dist/migration/trust-payments/1648218902763-trust_charges.js +0 -15
- package/dist/migration/trust-payments/1648717679150-trust_account_fees.js +0 -15
- package/dist/migration/trust-payments/1653905489904-trust_adjustment.js +0 -13
- package/dist/migration/trust-payments/1653905701399-trust_adjustment_merchant_number.js +0 -15
- package/dist/migration/trust-payments/1653911779226-trust_adjustment_bank_ref.js +0 -15
- package/dist/migration/trust-payments/1660211087722-trust_in_omnipay.js +0 -13
- package/dist/migration/trust-payments/1663666433231-trust_rolling_reserve.js +0 -13
- package/dist/migration/trust-payments/1664533949460-trust_transaction_batch_number_fix.js +0 -15
- package/dist/migration/trust-payments/1686301976291-trust_settlement_amount.js +0 -13
- package/dist/migration/trust-payments/1686303440691-trust_settlement_currency.js +0 -13
- package/dist/migration/trust-payments/1688382475027-trust_always_scrape.js +0 -13
- package/dist/migration/trust-payments/1688382817741-trust_import_transactions.js +0 -13
- package/dist/migration/trust-payments/1688461589610-trust_organisation_mapping.js +0 -15
- package/dist/migration/user/1641774481300-initial.js +0 -27
- package/dist/migration/user/1641829697638-add_parent_org.js +0 -25
- package/dist/migration/user/1641901624008-add_roles.js +0 -21
- package/dist/migration/user/1641903059924-add_roles_kyc.js +0 -13
- package/dist/migration/user/1641903425025-roles-defaults.js +0 -15
- package/dist/migration/user/1641939221103-feature.js +0 -13
- package/dist/migration/user/1642019067334-organisation-feature.js +0 -17
- package/dist/migration/user/1642078564295-user-activity-relation.js +0 -16
- package/dist/migration/user/1642207858247-fix-user-constraint.js +0 -19
- package/dist/migration/user/1643154226214-user-cognito-sub.js +0 -15
- package/dist/migration/user/1643195417761-user-nullable-mobile.js +0 -13
- package/dist/migration/user/1643296114720-user-login-link.js +0 -15
- package/dist/migration/user/1643323827662-login-link-used.js +0 -13
- package/dist/migration/user/1645621100580-user_is_api_user.js +0 -13
- package/dist/migration/user/1651582800086-organisation_image.js +0 -13
- package/dist/migration/user/1656057725099-timezoned_users.js +0 -22
- package/dist/migration/user/1656062997392-nullable_user_email.js +0 -13
- package/dist/migration/user/1656063685417-nullable_user_names.js +0 -15
- package/dist/migration/user/1658920205370-org_legacy_id.js +0 -13
- package/dist/migration/user/1659017405242-password_changed.js +0 -12
- package/dist/migration/user/1659017792935-audit.js +0 -27
- package/dist/migration/user/1659081328054-uuid_id_string.js +0 -19
- package/dist/migration/user/1660126405407-webhooks.js +0 -26
- package/dist/migration/user/1660170110686-webhook_child_orgs.js +0 -21
- package/dist/migration/user/1664880667093-organisation_payout_config.js +0 -15
- package/dist/migration/user/1669151569675-organisation_type.js +0 -17
- package/dist/migration/user/1684418112293-org_unpaid_invoice.js +0 -13
- package/dist/migration/user/1684765687786-org_partner_table.js +0 -17
- package/dist/migration/user/1688040388864-org_billing_enabled.js +0 -13
- package/dist/migration/user/1692182636537-organisation_archive.js +0 -13
- package/dist/migration/user/1694768586499-feature_descriptions.js +0 -13
- package/dist/migration/user/1694771670423-feature_is_beta.js +0 -13
- package/dist/migration/user/1695127749722-dependent_feature.js +0 -13
- package/dist/migration/user/1696844776497-webhook_log.js +0 -15
- package/dist/migration/user/1704271899435-webhook_response.js +0 -15
- package/dist/migration/user/1712740853812-surcharging_enabled.js +0 -13
- package/dist/model/index.js +0 -45
- package/dist/model/response/index.js +0 -159
- package/dist/model/response/status-codes.js +0 -74
- package/dist/model/status/index.js +0 -80
- package/dist/model/webhook/refund/index.js +0 -30
- package/dist/model/webhook/transaction/index.js +0 -50
- package/dist/service/audit-logger.js +0 -37
- package/dist/service/authentication.js +0 -168
- package/dist/service/event-bridge.js +0 -41
- package/dist/service/http.js +0 -53
- package/dist/service/logger.js +0 -238
- package/dist/service/payment-initiation-object/index.js +0 -101
- package/dist/service/request.js +0 -355
- package/dist/service/secrets.js +0 -44
- package/dist/service/user.js +0 -74
- package/dist/service/warehouse.js +0 -99
- package/dist/util/lambda-termination.js +0 -39
- package/dist/util/promisified-delay.js +0 -59
- package/dist/wrapper/index.js +0 -163
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felloh-org/lambda-wrapper",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.101",
|
|
4
4
|
"description": "Lambda wrapper for all Felloh Serverless Projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=16"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "
|
|
10
|
+
"build": "webpack --mode production",
|
|
11
11
|
"build:orm": "./node_modules/.bin/babel src --out-dir dist --copy-files --ignore src/migration",
|
|
12
12
|
"concourse:deploy": "fly -t felloh-cicd set-pipeline -p lambda-wrapper -c .concourse/pipeline.yml -l .concourse/private.yml",
|
|
13
13
|
"concourse:login": "fly --target felloh-cicd login --insecure --concourse-url https://ci.services.felloh.org --team-name libraries",
|
|
@@ -34,9 +34,11 @@
|
|
|
34
34
|
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
35
35
|
"@babel/preset-env": "^7.16.11",
|
|
36
36
|
"@types/jest": "^27.4.1",
|
|
37
|
+
"alai": "^1.0.3",
|
|
37
38
|
"aws-sdk": "^2.1473.0",
|
|
38
39
|
"babel-eslint": "^10.1.0",
|
|
39
40
|
"babel-jest": "^27.5.1",
|
|
41
|
+
"babel-loader": "^9.1.3",
|
|
40
42
|
"babel-plugin-module-resolver": "^4.1.0",
|
|
41
43
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
42
44
|
"eslint": "^8.12.0",
|
|
@@ -47,9 +49,17 @@
|
|
|
47
49
|
"eslint-plugin-unicorn": "^42.0.0",
|
|
48
50
|
"jest": "^27.5.1",
|
|
49
51
|
"nyc": "^15.1.0",
|
|
52
|
+
"path-browserify": "^1.0.1",
|
|
50
53
|
"semantic-release": "^19.0.2",
|
|
54
|
+
"stream": "^0.0.2",
|
|
55
|
+
"stream-http": "^3.2.0",
|
|
51
56
|
"transform-class-properties": "^1.0.0-beta",
|
|
52
|
-
"
|
|
57
|
+
"tty-browserify": "^0.0.1",
|
|
58
|
+
"webpack": "^5.91.0",
|
|
59
|
+
"webpack-cli": "^5.1.4",
|
|
60
|
+
"webpack-node-externals": "^3.0.0",
|
|
61
|
+
"yarn-upgrade-all": "^0.7.1",
|
|
62
|
+
"zlib": "^1.0.5"
|
|
53
63
|
},
|
|
54
64
|
"peerDependencies": {
|
|
55
65
|
"aws-sdk": ">=2.831.0"
|
|
@@ -59,15 +69,11 @@
|
|
|
59
69
|
"@baselime/lambda-logger": "^0.2.2",
|
|
60
70
|
"@baselime/node-opentelemetry": "^0.5.8",
|
|
61
71
|
"@opentelemetry/auto-instrumentations-node": "^0.46.1",
|
|
62
|
-
"@opentelemetry/instrumentation-http": "^0.51.1",
|
|
63
72
|
"@opentelemetry/instrumentation-pg": "^0.41.0",
|
|
64
73
|
"@opentelemetry/sdk-trace-node": "^1.24.1",
|
|
65
|
-
"alai": "^1.0.3",
|
|
66
74
|
"async": "^3.2.3",
|
|
67
75
|
"axios": "^0.26.1",
|
|
68
76
|
"dotenv": "^16.0.0",
|
|
69
|
-
"epsagon": "^1.121.3",
|
|
70
|
-
"execution-time": "^1.4.1",
|
|
71
77
|
"geojson": "^0.5.0",
|
|
72
78
|
"moment": "^2.29.3",
|
|
73
79
|
"pg": "^8.11.3",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const nodeExternals = require('webpack-node-externals');
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
mode: 'production',
|
|
6
|
+
entry: './src/index.js',
|
|
7
|
+
target: 'node',
|
|
8
|
+
externals: [
|
|
9
|
+
nodeExternals({
|
|
10
|
+
modulesFromFile: true,
|
|
11
|
+
}),
|
|
12
|
+
],
|
|
13
|
+
output: {
|
|
14
|
+
path: path.resolve('dist'),
|
|
15
|
+
filename: 'index.js',
|
|
16
|
+
libraryTarget: 'commonjs2',
|
|
17
|
+
},
|
|
18
|
+
performance: {
|
|
19
|
+
hints: false,
|
|
20
|
+
},
|
|
21
|
+
module: {
|
|
22
|
+
rules: [
|
|
23
|
+
{
|
|
24
|
+
test: /\.js?$/,
|
|
25
|
+
exclude: /(node_modules)/,
|
|
26
|
+
use: 'babel-loader',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
resolve: {
|
|
31
|
+
extensions: ['.js'],
|
|
32
|
+
fallback: {
|
|
33
|
+
path: require.resolve('path-browserify'),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Dependencies = exports.DEFINITIONS = void 0;
|
|
7
|
-
|
|
8
|
-
var _auditLogger = _interopRequireDefault(require("../service/audit-logger"));
|
|
9
|
-
|
|
10
|
-
var _authentication = _interopRequireDefault(require("../service/authentication"));
|
|
11
|
-
|
|
12
|
-
var _eventBridge = _interopRequireDefault(require("../service/event-bridge"));
|
|
13
|
-
|
|
14
|
-
var _http = _interopRequireDefault(require("../service/http"));
|
|
15
|
-
|
|
16
|
-
var _logger = _interopRequireDefault(require("../service/logger"));
|
|
17
|
-
|
|
18
|
-
var _paymentInitiationObject = _interopRequireDefault(require("../service/payment-initiation-object"));
|
|
19
|
-
|
|
20
|
-
var _request = _interopRequireDefault(require("../service/request"));
|
|
21
|
-
|
|
22
|
-
var _secrets = _interopRequireDefault(require("../service/secrets"));
|
|
23
|
-
|
|
24
|
-
var _user = _interopRequireDefault(require("../service/user"));
|
|
25
|
-
|
|
26
|
-
var _warehouse = _interopRequireDefault(require("../service/warehouse"));
|
|
27
|
-
|
|
28
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
|
-
const DEFINITIONS = exports.DEFINITIONS = {
|
|
31
|
-
AUDIT_LOGGER: 'AUDIT_LOGGER',
|
|
32
|
-
AUTHENTICATION: 'AUTHENTICATION',
|
|
33
|
-
EVENT_BRIDGE: 'EVENT_BRIDGE',
|
|
34
|
-
HTTP: 'HTTP',
|
|
35
|
-
LOGGER: 'LOGGER',
|
|
36
|
-
PAYMENT_INITIATION_OBJECT: 'PAYMENT_INITIATION_OBJECT',
|
|
37
|
-
REQUEST: 'REQUEST',
|
|
38
|
-
USER: 'USER',
|
|
39
|
-
WAREHOUSE: 'WAREHOUSE',
|
|
40
|
-
SECRETS: 'SECRETS'
|
|
41
|
-
};
|
|
42
|
-
const Dependencies = exports.Dependencies = {
|
|
43
|
-
[DEFINITIONS.AUDIT_LOGGER]: _auditLogger.default,
|
|
44
|
-
[DEFINITIONS.EVENT_BRIDGE]: _eventBridge.default,
|
|
45
|
-
[DEFINITIONS.HTTP]: _http.default,
|
|
46
|
-
[DEFINITIONS.LOGGER]: _logger.default,
|
|
47
|
-
[DEFINITIONS.PAYMENT_INITIATION_OBJECT]: _paymentInitiationObject.default,
|
|
48
|
-
[DEFINITIONS.REQUEST]: _request.default,
|
|
49
|
-
[DEFINITIONS.WAREHOUSE]: _warehouse.default,
|
|
50
|
-
[DEFINITIONS.AUTHENTICATION]: _authentication.default,
|
|
51
|
-
[DEFINITIONS.USER]: _user.default,
|
|
52
|
-
[DEFINITIONS.SECRETS]: _secrets.default
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
var _default = exports.default = {
|
|
56
|
-
DEFINITIONS,
|
|
57
|
-
DEPENDENCIES: Dependencies
|
|
58
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* DependencyAwareClass Class
|
|
10
|
-
*/
|
|
11
|
-
class DependencyAware {
|
|
12
|
-
/**
|
|
13
|
-
* DependencyAwareClass constructor
|
|
14
|
-
*
|
|
15
|
-
* @param {DependencyInjection} di
|
|
16
|
-
*/
|
|
17
|
-
constructor(di) {
|
|
18
|
-
this.di = di;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get Dependency Injection Container
|
|
22
|
-
*
|
|
23
|
-
* @returns {DependencyInjection}
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
getContainer() {
|
|
28
|
-
return this.di;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Shortcut for `this.getContainer().definitions`
|
|
32
|
-
*
|
|
33
|
-
* @returns {object}
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
get definitions() {
|
|
38
|
-
return this.getContainer().definitions;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
exports.default = DependencyAware;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _dependencies = require("../config/dependencies");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* DependencyInjection class
|
|
12
|
-
*/
|
|
13
|
-
class DependencyInjection {
|
|
14
|
-
/**
|
|
15
|
-
* DependencyInjection constructor
|
|
16
|
-
*
|
|
17
|
-
* @param configuration
|
|
18
|
-
* @param event
|
|
19
|
-
* @param context
|
|
20
|
-
*/
|
|
21
|
-
constructor(configuration, event, context) {
|
|
22
|
-
this.event = event;
|
|
23
|
-
this.context = context;
|
|
24
|
-
this.dependencies = {};
|
|
25
|
-
this.configuration = configuration;
|
|
26
|
-
|
|
27
|
-
for (let x = 0; x <= 1; x += 1) {
|
|
28
|
-
// Iterate over dependencies and add to container
|
|
29
|
-
Object.keys(_dependencies.DEFINITIONS).forEach(dependencyKey => {
|
|
30
|
-
this.dependencies[dependencyKey] = new _dependencies.Dependencies[dependencyKey](this);
|
|
31
|
-
}); // Iterate over child dependencies and add to container
|
|
32
|
-
|
|
33
|
-
if (typeof configuration.DEPENDENCIES !== 'undefined') {
|
|
34
|
-
Object.keys(configuration.DEPENDENCIES).forEach(dependencyKey => {
|
|
35
|
-
this.dependencies[dependencyKey] = new configuration.DEPENDENCIES[dependencyKey](this);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Get Dependency
|
|
42
|
-
*
|
|
43
|
-
* @param definition
|
|
44
|
-
* @returns {*}
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
get(definition) {
|
|
49
|
-
if (typeof this.dependencies[definition] === 'undefined') {
|
|
50
|
-
throw new TypeError(`${definition} does not exist in di container`);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return this.dependencies[definition];
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Get Event
|
|
57
|
-
*
|
|
58
|
-
* @returns {*}
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
getEvent() {
|
|
63
|
-
return this.event;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Get Context
|
|
67
|
-
*
|
|
68
|
-
* @returns {*}
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
getContext() {
|
|
73
|
-
return this.context;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Get Configuration
|
|
77
|
-
*
|
|
78
|
-
* @param definition string
|
|
79
|
-
* @returns {*}
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
getConfiguration(definition = null) {
|
|
84
|
-
if (definition !== null && typeof this.configuration[definition] === 'undefined') {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (typeof this.configuration[definition] !== 'undefined') {
|
|
89
|
-
return this.configuration[definition];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return this.configuration;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Check whether the function
|
|
96
|
-
* is being executed in a serverless-offline context
|
|
97
|
-
*
|
|
98
|
-
* @returns {boolean}
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
get isOffline() {
|
|
103
|
-
const context = this.getContext() || {};
|
|
104
|
-
|
|
105
|
-
if (!Object.prototype.hasOwnProperty.call(context, 'invokedFunctionArn')) {
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (context.invokedFunctionArn.includes('offline')) {
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (process.env.USE_SERVERLESS_OFFLINE) {
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return false;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Returns the definitions
|
|
121
|
-
* associated to this DependencyInjection
|
|
122
|
-
* so that services can refer to them
|
|
123
|
-
* without causing circular imports.
|
|
124
|
-
*
|
|
125
|
-
* @returns {object}
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
get definitions() {
|
|
130
|
-
return this.configuration.DEFINITIONS;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
exports.default = DependencyInjection;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _transaction = _interopRequireDefault(require("../../payment/transaction"));
|
|
11
|
-
|
|
12
|
-
var _paymentProvider = _interopRequireDefault(require("../../payment/payment-provider"));
|
|
13
|
-
|
|
14
|
-
var _batch = _interopRequireDefault(require("../batch"));
|
|
15
|
-
|
|
16
|
-
var _organisation = _interopRequireDefault(require("../../user/organisation"));
|
|
17
|
-
|
|
18
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
23
|
-
|
|
24
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
25
|
-
|
|
26
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
27
|
-
|
|
28
|
-
let Adjustment = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
29
|
-
name: 'adjustment',
|
|
30
|
-
schema: 'acquirer'
|
|
31
|
-
}), _dec2 = (0, _typeorm.PrimaryColumn)("varchar"), _dec3 = (0, _typeorm.ManyToOne)(() => _batch.default), _dec4 = (0, _typeorm.JoinColumn)({
|
|
32
|
-
name: 'batch_id',
|
|
33
|
-
referencedColumnName: 'id'
|
|
34
|
-
}), _dec5 = (0, _typeorm.Column)({
|
|
35
|
-
type: "int",
|
|
36
|
-
nullable: true
|
|
37
|
-
}), _dec6 = (0, _typeorm.Column)({
|
|
38
|
-
type: "varchar",
|
|
39
|
-
length: "5",
|
|
40
|
-
nullable: true
|
|
41
|
-
}), _dec7 = (0, _typeorm.Column)({
|
|
42
|
-
type: "varchar",
|
|
43
|
-
length: "250"
|
|
44
|
-
}), _dec8 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec9 = (0, _typeorm.JoinColumn)({
|
|
45
|
-
name: 'payment_provider_id',
|
|
46
|
-
referencedColumnName: 'id'
|
|
47
|
-
}), _dec10 = (0, _typeorm.ManyToOne)(() => _organisation.default), _dec11 = (0, _typeorm.JoinColumn)({
|
|
48
|
-
name: 'organisation_id',
|
|
49
|
-
referencedColumnName: 'id'
|
|
50
|
-
}), _dec12 = (0, _typeorm.CreateDateColumn)({
|
|
51
|
-
type: 'timestamp with time zone'
|
|
52
|
-
}), _dec13 = (0, _typeorm.UpdateDateColumn)({
|
|
53
|
-
type: 'timestamp with time zone'
|
|
54
|
-
}), _dec(_class = (_class2 = class Adjustment {
|
|
55
|
-
constructor() {
|
|
56
|
-
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
57
|
-
|
|
58
|
-
_initializerDefineProperty(this, "batch", _descriptor2, this);
|
|
59
|
-
|
|
60
|
-
_initializerDefineProperty(this, "amount", _descriptor3, this);
|
|
61
|
-
|
|
62
|
-
_initializerDefineProperty(this, "currency", _descriptor4, this);
|
|
63
|
-
|
|
64
|
-
_initializerDefineProperty(this, "description", _descriptor5, this);
|
|
65
|
-
|
|
66
|
-
_initializerDefineProperty(this, "payment_provider", _descriptor6, this);
|
|
67
|
-
|
|
68
|
-
_initializerDefineProperty(this, "organisation", _descriptor7, this);
|
|
69
|
-
|
|
70
|
-
_initializerDefineProperty(this, "created_at", _descriptor8, this);
|
|
71
|
-
|
|
72
|
-
_initializerDefineProperty(this, "updated_at", _descriptor9, this);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
76
|
-
configurable: true,
|
|
77
|
-
enumerable: true,
|
|
78
|
-
writable: true,
|
|
79
|
-
initializer: function () {
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
82
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "batch", [_dec3, _dec4], {
|
|
83
|
-
configurable: true,
|
|
84
|
-
enumerable: true,
|
|
85
|
-
writable: true,
|
|
86
|
-
initializer: function () {
|
|
87
|
-
return _batch.default;
|
|
88
|
-
}
|
|
89
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "amount", [_dec5], {
|
|
90
|
-
configurable: true,
|
|
91
|
-
enumerable: true,
|
|
92
|
-
writable: true,
|
|
93
|
-
initializer: null
|
|
94
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "currency", [_dec6], {
|
|
95
|
-
configurable: true,
|
|
96
|
-
enumerable: true,
|
|
97
|
-
writable: true,
|
|
98
|
-
initializer: null
|
|
99
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "description", [_dec7], {
|
|
100
|
-
configurable: true,
|
|
101
|
-
enumerable: true,
|
|
102
|
-
writable: true,
|
|
103
|
-
initializer: null
|
|
104
|
-
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "payment_provider", [_dec8, _dec9], {
|
|
105
|
-
configurable: true,
|
|
106
|
-
enumerable: true,
|
|
107
|
-
writable: true,
|
|
108
|
-
initializer: function () {
|
|
109
|
-
return _paymentProvider.default;
|
|
110
|
-
}
|
|
111
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "organisation", [_dec10, _dec11], {
|
|
112
|
-
configurable: true,
|
|
113
|
-
enumerable: true,
|
|
114
|
-
writable: true,
|
|
115
|
-
initializer: function () {
|
|
116
|
-
return _organisation.default;
|
|
117
|
-
}
|
|
118
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "created_at", [_dec12], {
|
|
119
|
-
configurable: true,
|
|
120
|
-
enumerable: true,
|
|
121
|
-
writable: true,
|
|
122
|
-
initializer: null
|
|
123
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "updated_at", [_dec13], {
|
|
124
|
-
configurable: true,
|
|
125
|
-
enumerable: true,
|
|
126
|
-
writable: true,
|
|
127
|
-
initializer: null
|
|
128
|
-
})), _class2)) || _class);
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _paymentProvider = _interopRequireDefault(require("../../payment/payment-provider"));
|
|
11
|
-
|
|
12
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
17
|
-
|
|
18
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
19
|
-
|
|
20
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
21
|
-
|
|
22
|
-
let Band = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
23
|
-
name: 'band',
|
|
24
|
-
schema: 'acquirer'
|
|
25
|
-
}), _dec2 = (0, _typeorm.PrimaryGeneratedColumn)("uuid"), _dec3 = (0, _typeorm.Column)({
|
|
26
|
-
type: "varchar",
|
|
27
|
-
length: "128",
|
|
28
|
-
nullable: true
|
|
29
|
-
}), _dec4 = (0, _typeorm.ManyToOne)(() => _paymentProvider.default), _dec5 = (0, _typeorm.JoinColumn)({
|
|
30
|
-
name: 'payment_provider_id',
|
|
31
|
-
referencedColumnName: 'id'
|
|
32
|
-
}), _dec(_class = (_class2 = class Band {
|
|
33
|
-
constructor() {
|
|
34
|
-
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
35
|
-
|
|
36
|
-
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
37
|
-
|
|
38
|
-
_initializerDefineProperty(this, "payment_provider", _descriptor3, this);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "id", [_dec2], {
|
|
42
|
-
configurable: true,
|
|
43
|
-
enumerable: true,
|
|
44
|
-
writable: true,
|
|
45
|
-
initializer: null
|
|
46
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "name", [_dec3], {
|
|
47
|
-
configurable: true,
|
|
48
|
-
enumerable: true,
|
|
49
|
-
writable: true,
|
|
50
|
-
initializer: function () {
|
|
51
|
-
return "";
|
|
52
|
-
}
|
|
53
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "payment_provider", [_dec4, _dec5], {
|
|
54
|
-
configurable: true,
|
|
55
|
-
enumerable: true,
|
|
56
|
-
writable: true,
|
|
57
|
-
initializer: function () {
|
|
58
|
-
return _paymentProvider.default;
|
|
59
|
-
}
|
|
60
|
-
})), _class2)) || _class);
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _typeorm = require("typeorm");
|
|
9
|
-
|
|
10
|
-
var _fee = _interopRequireDefault(require("../fee"));
|
|
11
|
-
|
|
12
|
-
var _band = _interopRequireDefault(require("../band"));
|
|
13
|
-
|
|
14
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2, _descriptor, _descriptor2, _descriptor3;
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
19
|
-
|
|
20
|
-
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
21
|
-
|
|
22
|
-
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
|
|
23
|
-
|
|
24
|
-
let BandRate = exports.default = (_dec = (0, _typeorm.Entity)({
|
|
25
|
-
name: 'band_rate',
|
|
26
|
-
schema: 'acquirer'
|
|
27
|
-
}), _dec2 = (0, _typeorm.ManyToOne)(() => _fee.default, {
|
|
28
|
-
primary: true
|
|
29
|
-
}), _dec3 = (0, _typeorm.JoinColumn)({
|
|
30
|
-
name: 'fee_id',
|
|
31
|
-
referencedColumnName: 'id'
|
|
32
|
-
}), _dec4 = (0, _typeorm.ManyToOne)(() => _band.default, {
|
|
33
|
-
primary: true
|
|
34
|
-
}), _dec5 = (0, _typeorm.JoinColumn)({
|
|
35
|
-
name: 'band_id',
|
|
36
|
-
referencedColumnName: 'id'
|
|
37
|
-
}), _dec6 = (0, _typeorm.Column)('decimal', {
|
|
38
|
-
precision: 6,
|
|
39
|
-
scale: 3,
|
|
40
|
-
nullable: true
|
|
41
|
-
}), _dec(_class = (_class2 = class BandRate {
|
|
42
|
-
constructor() {
|
|
43
|
-
_initializerDefineProperty(this, "fee", _descriptor, this);
|
|
44
|
-
|
|
45
|
-
_initializerDefineProperty(this, "band", _descriptor2, this);
|
|
46
|
-
|
|
47
|
-
_initializerDefineProperty(this, "rate", _descriptor3, this);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "fee", [_dec2, _dec3], {
|
|
51
|
-
configurable: true,
|
|
52
|
-
enumerable: true,
|
|
53
|
-
writable: true,
|
|
54
|
-
initializer: null
|
|
55
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "band", [_dec4, _dec5], {
|
|
56
|
-
configurable: true,
|
|
57
|
-
enumerable: true,
|
|
58
|
-
writable: true,
|
|
59
|
-
initializer: null
|
|
60
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "rate", [_dec6], {
|
|
61
|
-
configurable: true,
|
|
62
|
-
enumerable: true,
|
|
63
|
-
writable: true,
|
|
64
|
-
initializer: null
|
|
65
|
-
})), _class2)) || _class);
|