@unchainedshop/plugins 4.3.5 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -0
- package/lib/delivery/post.d.ts +0 -1
- package/lib/delivery/post.js +0 -1
- package/lib/delivery/send-message.d.ts +0 -1
- package/lib/delivery/send-message.js +0 -1
- package/lib/delivery/stores.d.ts +0 -1
- package/lib/delivery/stores.js +0 -1
- package/lib/enrollments/licensed.d.ts +0 -1
- package/lib/enrollments/licensed.js +0 -1
- package/lib/events/aws-eventbridge.d.ts +0 -1
- package/lib/events/aws-eventbridge.js +0 -3
- package/lib/events/node-event-emitter.d.ts +0 -1
- package/lib/events/node-event-emitter.js +0 -1
- package/lib/events/redis.d.ts +0 -1
- package/lib/events/redis.js +0 -1
- package/lib/files/gridfs/adapter.d.ts +3 -4
- package/lib/files/gridfs/adapter.js +6 -6
- package/lib/files/gridfs/handler-express.d.ts +2 -3
- package/lib/files/gridfs/handler-express.js +6 -9
- package/lib/files/gridfs/handler-fastify.d.ts +1 -2
- package/lib/files/gridfs/handler-fastify.js +6 -9
- package/lib/files/gridfs/index.d.ts +2 -3
- package/lib/files/gridfs/index.js +2 -3
- package/lib/files/gridfs/module.d.ts +0 -1
- package/lib/files/gridfs/module.js +0 -4
- package/lib/files/gridfs/sign.d.ts +0 -1
- package/lib/files/gridfs/sign.js +0 -1
- package/lib/files/minio/handler-express.d.ts +0 -1
- package/lib/files/minio/handler-express.js +0 -1
- package/lib/files/minio/handler-fastify.d.ts +1 -2
- package/lib/files/minio/handler-fastify.js +2 -1
- package/lib/files/minio/index.d.ts +1 -2
- package/lib/files/minio/index.js +1 -5
- package/lib/filters/local-search.d.ts +1 -2
- package/lib/filters/local-search.js +3 -6
- package/lib/filters/strict-equal.d.ts +0 -1
- package/lib/filters/strict-equal.js +0 -1
- package/lib/payment/apple-iap/adapter.d.ts +0 -1
- package/lib/payment/apple-iap/adapter.js +3 -5
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.d.ts +1 -2
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.js +2 -1
- package/lib/payment/apple-iap/fix-periods.d.ts +1 -2
- package/lib/payment/apple-iap/fix-periods.js +1 -1
- package/lib/payment/apple-iap/handler-express.d.ts +0 -1
- package/lib/payment/apple-iap/handler-express.js +2 -5
- package/lib/payment/apple-iap/handler-fastify.d.ts +1 -2
- package/lib/payment/apple-iap/handler-fastify.js +4 -5
- package/lib/payment/apple-iap/index.d.ts +2 -3
- package/lib/payment/apple-iap/index.js +2 -3
- package/lib/payment/apple-iap/module.d.ts +1 -2
- package/lib/payment/apple-iap/module.js +1 -2
- package/lib/payment/apple-iap/verify-receipt.d.ts +0 -1
- package/lib/payment/apple-iap/verify-receipt.js +0 -4
- package/lib/payment/braintree.d.ts +0 -1
- package/lib/payment/braintree.js +0 -5
- package/lib/payment/cryptopay/db/CryptopayTransactions.d.ts +1 -2
- package/lib/payment/cryptopay/db/CryptopayTransactions.js +2 -1
- package/lib/payment/cryptopay/denote-amount.d.ts +0 -24
- package/lib/payment/cryptopay/denote-amount.js +2 -26
- package/lib/payment/cryptopay/derive-btc-address.d.ts +0 -1
- package/lib/payment/cryptopay/derive-btc-address.js +4 -14
- package/lib/payment/cryptopay/derive-eth-address.d.ts +0 -1
- package/lib/payment/cryptopay/derive-eth-address.js +1 -3
- package/lib/payment/cryptopay/handle-webhook.d.ts +2 -3
- package/lib/payment/cryptopay/handle-webhook.js +3 -3
- package/lib/payment/cryptopay/handler-express.d.ts +0 -1
- package/lib/payment/cryptopay/handler-express.js +1 -2
- package/lib/payment/cryptopay/handler-fastify.d.ts +1 -2
- package/lib/payment/cryptopay/handler-fastify.js +2 -2
- package/lib/payment/cryptopay/index.d.ts +2 -3
- package/lib/payment/cryptopay/index.js +2 -3
- package/lib/payment/cryptopay/module.d.ts +1 -2
- package/lib/payment/cryptopay/module.js +2 -3
- package/lib/payment/cryptopay/plugin.d.ts +1 -2
- package/lib/payment/cryptopay/plugin.js +8 -37
- package/lib/payment/datatrans-v2/api/authorize.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/authorize.js +0 -2
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.js +0 -1
- package/lib/payment/datatrans-v2/api/cancel.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/cancel.js +0 -1
- package/lib/payment/datatrans-v2/api/index.d.ts +8 -9
- package/lib/payment/datatrans-v2/api/index.js +9 -10
- package/lib/payment/datatrans-v2/api/init.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/init.js +2 -4
- package/lib/payment/datatrans-v2/api/makeFetcher.d.ts +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.js +0 -3
- package/lib/payment/datatrans-v2/api/secureFields.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/secureFields.js +1 -3
- package/lib/payment/datatrans-v2/api/settle.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/settle.js +0 -1
- package/lib/payment/datatrans-v2/api/status.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/status.js +0 -1
- package/lib/payment/datatrans-v2/api/types.d.ts +0 -1
- package/lib/payment/datatrans-v2/api/types.js +0 -1
- package/lib/payment/datatrans-v2/api/validate.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/validate.js +0 -1
- package/lib/payment/datatrans-v2/generateSignature.d.ts +0 -1
- package/lib/payment/datatrans-v2/generateSignature.js +0 -2
- package/lib/payment/datatrans-v2/getPaths.d.ts +0 -1
- package/lib/payment/datatrans-v2/getPaths.js +0 -1
- package/lib/payment/datatrans-v2/handler-express.d.ts +0 -1
- package/lib/payment/datatrans-v2/handler-express.js +1 -2
- package/lib/payment/datatrans-v2/handler-fastify.d.ts +1 -2
- package/lib/payment/datatrans-v2/handler-fastify.js +1 -2
- package/lib/payment/datatrans-v2/index.d.ts +0 -1
- package/lib/payment/datatrans-v2/index.js +3 -14
- package/lib/payment/datatrans-v2/parseRegistrationData.d.ts +4 -5
- package/lib/payment/datatrans-v2/parseRegistrationData.js +1 -2
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.d.ts +1 -2
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.js +0 -1
- package/lib/payment/datatrans-v2/splitProperties.d.ts +0 -1
- package/lib/payment/datatrans-v2/splitProperties.js +0 -2
- package/lib/payment/invoice-prepaid.d.ts +0 -1
- package/lib/payment/invoice-prepaid.js +0 -1
- package/lib/payment/invoice.d.ts +0 -1
- package/lib/payment/invoice.js +0 -1
- package/lib/payment/paypal-checkout.d.ts +0 -1
- package/lib/payment/paypal-checkout.js +0 -11
- package/lib/payment/payrexx/api/index.d.ts +15 -15
- package/lib/payment/payrexx/api/index.js +15 -27
- package/lib/payment/payrexx/api/makeFetcher.d.ts +0 -1
- package/lib/payment/payrexx/api/makeFetcher.js +0 -1
- package/lib/payment/payrexx/handler-express.d.ts +0 -1
- package/lib/payment/payrexx/handler-express.js +0 -4
- package/lib/payment/payrexx/handler-fastify.d.ts +1 -2
- package/lib/payment/payrexx/handler-fastify.js +0 -4
- package/lib/payment/payrexx/index.d.ts +0 -1
- package/lib/payment/payrexx/index.js +9 -35
- package/lib/payment/payrexx/payrexx.d.ts +0 -1
- package/lib/payment/payrexx/payrexx.js +0 -1
- package/lib/payment/postfinance-checkout/api-client.d.ts +0 -1
- package/lib/payment/postfinance-checkout/api-client.js +0 -6
- package/lib/payment/postfinance-checkout/api-types.d.ts +49 -44
- package/lib/payment/postfinance-checkout/api-types.js +43 -51
- package/lib/payment/postfinance-checkout/api.d.ts +1 -2
- package/lib/payment/postfinance-checkout/api.js +2 -3
- package/lib/payment/postfinance-checkout/handler-express.d.ts +0 -1
- package/lib/payment/postfinance-checkout/handler-express.js +1 -2
- package/lib/payment/postfinance-checkout/handler-fastify.d.ts +1 -2
- package/lib/payment/postfinance-checkout/handler-fastify.js +1 -2
- package/lib/payment/postfinance-checkout/index.d.ts +2 -3
- package/lib/payment/postfinance-checkout/index.js +7 -10
- package/lib/payment/postfinance-checkout/types.d.ts +11 -10
- package/lib/payment/postfinance-checkout/types.js +9 -12
- package/lib/payment/postfinance-checkout/utils.d.ts +2 -3
- package/lib/payment/postfinance-checkout/utils.js +1 -2
- package/lib/payment/saferpay/adapter.d.ts +1 -2
- package/lib/payment/saferpay/adapter.js +2 -5
- package/lib/payment/saferpay/api/api/SaferpayClient.d.ts +6 -7
- package/lib/payment/saferpay/api/api/SaferpayClient.js +2 -2
- package/lib/payment/saferpay/api/api/SaferpayConnection.d.ts +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.js +0 -1
- package/lib/payment/saferpay/api/index.d.ts +4 -5
- package/lib/payment/saferpay/api/index.js +1 -2
- package/lib/payment/saferpay/api/models/PaymentMethods.d.ts +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.js +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.d.ts +4 -5
- package/lib/payment/saferpay/api/models/PaymentPageAssert.js +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.d.ts +4 -5
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.js +0 -1
- package/lib/payment/saferpay/api/models/Request.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Request.js +0 -1
- package/lib/payment/saferpay/api/models/Response.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Response.js +0 -1
- package/lib/payment/saferpay/api/models/Transaction.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Transaction.js +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.d.ts +2 -3
- package/lib/payment/saferpay/api/models/TransactionCancel.js +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.d.ts +3 -4
- package/lib/payment/saferpay/api/models/TransactionCapture.js +0 -1
- package/lib/payment/saferpay/buildSignature.d.ts +0 -1
- package/lib/payment/saferpay/buildSignature.js +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.d.ts +1 -2
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.js +1 -1
- package/lib/payment/saferpay/getReturnPath.d.ts +0 -1
- package/lib/payment/saferpay/getReturnPath.js +0 -1
- package/lib/payment/saferpay/handler-express.d.ts +0 -1
- package/lib/payment/saferpay/handler-express.js +1 -2
- package/lib/payment/saferpay/handler-fastify.d.ts +1 -2
- package/lib/payment/saferpay/handler-fastify.js +1 -2
- package/lib/payment/saferpay/index.d.ts +2 -3
- package/lib/payment/saferpay/index.js +2 -3
- package/lib/payment/saferpay/module.d.ts +2 -3
- package/lib/payment/saferpay/module.js +2 -2
- package/lib/payment/stripe/handler-express.d.ts +0 -1
- package/lib/payment/stripe/handler-express.js +1 -2
- package/lib/payment/stripe/handler-fastify.d.ts +1 -2
- package/lib/payment/stripe/handler-fastify.js +1 -2
- package/lib/payment/stripe/index.d.ts +0 -1
- package/lib/payment/stripe/index.js +1 -4
- package/lib/payment/stripe/stripe.d.ts +1 -2
- package/lib/payment/stripe/stripe.js +1 -2
- package/lib/presets/all-express.d.ts +1 -2
- package/lib/presets/all-express.js +9 -10
- package/lib/presets/all-fastify.d.ts +2 -3
- package/lib/presets/all-fastify.js +9 -10
- package/lib/presets/all.d.ts +23 -24
- package/lib/presets/all.js +20 -25
- package/lib/presets/base-express.d.ts +0 -1
- package/lib/presets/base-express.js +1 -2
- package/lib/presets/base-fastify.d.ts +1 -2
- package/lib/presets/base-fastify.js +1 -3
- package/lib/presets/base.d.ts +23 -24
- package/lib/presets/base.js +23 -33
- package/lib/presets/countries/ch.d.ts +2 -3
- package/lib/presets/countries/ch.js +2 -3
- package/lib/presets/crypto-express.d.ts +1 -2
- package/lib/presets/crypto-express.js +2 -3
- package/lib/presets/crypto-fastify.d.ts +1 -2
- package/lib/presets/crypto-fastify.js +2 -3
- package/lib/presets/crypto.d.ts +6 -7
- package/lib/presets/crypto.js +6 -8
- package/lib/pricing/delivery-swiss-tax.d.ts +1 -2
- package/lib/pricing/delivery-swiss-tax.js +2 -3
- package/lib/pricing/discount-100-off.d.ts +1 -2
- package/lib/pricing/discount-100-off.js +0 -4
- package/lib/pricing/discount-half-price-manual.d.ts +1 -2
- package/lib/pricing/discount-half-price-manual.js +0 -4
- package/lib/pricing/discount-half-price.d.ts +1 -2
- package/lib/pricing/discount-half-price.js +0 -4
- package/lib/pricing/free-delivery.d.ts +1 -2
- package/lib/pricing/free-delivery.js +0 -1
- package/lib/pricing/free-payment.d.ts +1 -2
- package/lib/pricing/free-payment.js +0 -1
- package/lib/pricing/order-delivery.d.ts +1 -2
- package/lib/pricing/order-delivery.js +0 -2
- package/lib/pricing/order-discount.d.ts +1 -2
- package/lib/pricing/order-discount.js +0 -4
- package/lib/pricing/order-items-discount.d.ts +0 -1
- package/lib/pricing/order-items-discount.js +0 -5
- package/lib/pricing/order-items.d.ts +0 -1
- package/lib/pricing/order-items.js +0 -2
- package/lib/pricing/order-payment.d.ts +0 -1
- package/lib/pricing/order-payment.js +0 -2
- package/lib/pricing/order-round.d.ts +1 -2
- package/lib/pricing/order-round.js +0 -6
- package/lib/pricing/product-catalog-price-options.d.ts +0 -1
- package/lib/pricing/product-catalog-price-options.js +0 -1
- package/lib/pricing/product-catalog-price.d.ts +1 -2
- package/lib/pricing/product-catalog-price.js +2 -3
- package/lib/pricing/product-discount.d.ts +0 -1
- package/lib/pricing/product-discount.js +0 -1
- package/lib/pricing/product-price-rateconversion.d.ts +1 -2
- package/lib/pricing/product-price-rateconversion.js +0 -4
- package/lib/pricing/product-round.d.ts +1 -2
- package/lib/pricing/product-round.js +0 -1
- package/lib/pricing/product-swiss-tax.d.ts +1 -2
- package/lib/pricing/product-swiss-tax.js +2 -5
- package/lib/pricing/tax/ch.d.ts +2 -3
- package/lib/pricing/tax/ch.js +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.d.ts +1 -2
- package/lib/pricing/utils/isDeliveryAddressInCountry.js +0 -1
- package/lib/quotations/manual.d.ts +0 -1
- package/lib/quotations/manual.js +0 -1
- package/lib/warehousing/eth-minter.d.ts +0 -1
- package/lib/warehousing/eth-minter.js +2 -11
- package/lib/warehousing/store.d.ts +0 -1
- package/lib/warehousing/store.js +0 -1
- package/lib/worker/budgetsms.d.ts +0 -1
- package/lib/worker/budgetsms.js +4 -52
- package/lib/worker/bulk-import.d.ts +1 -2
- package/lib/worker/bulk-import.js +1 -3
- package/lib/worker/bulkgate.d.ts +0 -1
- package/lib/worker/bulkgate.js +7 -20
- package/lib/worker/email.d.ts +0 -1
- package/lib/worker/email.js +0 -3
- package/lib/worker/enrollment-order-generator.d.ts +0 -1
- package/lib/worker/enrollment-order-generator.js +1 -2
- package/lib/worker/error-notifications.d.ts +1 -2
- package/lib/worker/error-notifications.js +0 -1
- package/lib/worker/export-token.d.ts +1 -2
- package/lib/worker/export-token.js +1 -2
- package/lib/worker/external.d.ts +1 -2
- package/lib/worker/external.js +0 -1
- package/lib/worker/heartbeat.d.ts +0 -1
- package/lib/worker/heartbeat.js +0 -1
- package/lib/worker/http-request.d.ts +1 -2
- package/lib/worker/http-request.js +0 -3
- package/lib/worker/message.d.ts +2 -3
- package/lib/worker/message.js +2 -3
- package/lib/worker/push-notification.d.ts +0 -1
- package/lib/worker/push-notification.js +0 -1
- package/lib/worker/twilio.d.ts +0 -1
- package/lib/worker/twilio.js +1 -2
- package/lib/worker/update-coinbase-rates.d.ts +0 -1
- package/lib/worker/update-coinbase-rates.js +1 -3
- package/lib/worker/update-ecb-rates.d.ts +0 -1
- package/lib/worker/update-ecb-rates.js +0 -3
- package/lib/worker/update-token-ownership.d.ts +1 -2
- package/lib/worker/update-token-ownership.js +0 -1
- package/lib/worker/zombie-killer.d.ts +1 -2
- package/lib/worker/zombie-killer.js +0 -7
- package/package.json +20 -19
- package/lib/delivery/post.d.ts.map +0 -1
- package/lib/delivery/post.js.map +0 -1
- package/lib/delivery/send-message.d.ts.map +0 -1
- package/lib/delivery/send-message.js.map +0 -1
- package/lib/delivery/stores.d.ts.map +0 -1
- package/lib/delivery/stores.js.map +0 -1
- package/lib/enrollments/licensed.d.ts.map +0 -1
- package/lib/enrollments/licensed.js.map +0 -1
- package/lib/events/aws-eventbridge.d.ts.map +0 -1
- package/lib/events/aws-eventbridge.js.map +0 -1
- package/lib/events/node-event-emitter.d.ts.map +0 -1
- package/lib/events/node-event-emitter.js.map +0 -1
- package/lib/events/redis.d.ts.map +0 -1
- package/lib/events/redis.js.map +0 -1
- package/lib/files/gridfs/adapter.d.ts.map +0 -1
- package/lib/files/gridfs/adapter.js.map +0 -1
- package/lib/files/gridfs/handler-express.d.ts.map +0 -1
- package/lib/files/gridfs/handler-express.js.map +0 -1
- package/lib/files/gridfs/handler-fastify.d.ts.map +0 -1
- package/lib/files/gridfs/handler-fastify.js.map +0 -1
- package/lib/files/gridfs/index.d.ts.map +0 -1
- package/lib/files/gridfs/index.js.map +0 -1
- package/lib/files/gridfs/module.d.ts.map +0 -1
- package/lib/files/gridfs/module.js.map +0 -1
- package/lib/files/gridfs/sign.d.ts.map +0 -1
- package/lib/files/gridfs/sign.js.map +0 -1
- package/lib/files/minio/handler-express.d.ts.map +0 -1
- package/lib/files/minio/handler-express.js.map +0 -1
- package/lib/files/minio/handler-fastify.d.ts.map +0 -1
- package/lib/files/minio/handler-fastify.js.map +0 -1
- package/lib/files/minio/index.d.ts.map +0 -1
- package/lib/files/minio/index.js.map +0 -1
- package/lib/filters/local-search.d.ts.map +0 -1
- package/lib/filters/local-search.js.map +0 -1
- package/lib/filters/strict-equal.d.ts.map +0 -1
- package/lib/filters/strict-equal.js.map +0 -1
- package/lib/payment/apple-iap/adapter.d.ts.map +0 -1
- package/lib/payment/apple-iap/adapter.js.map +0 -1
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.d.ts.map +0 -1
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.js.map +0 -1
- package/lib/payment/apple-iap/fix-periods.d.ts.map +0 -1
- package/lib/payment/apple-iap/fix-periods.js.map +0 -1
- package/lib/payment/apple-iap/handler-express.d.ts.map +0 -1
- package/lib/payment/apple-iap/handler-express.js.map +0 -1
- package/lib/payment/apple-iap/handler-fastify.d.ts.map +0 -1
- package/lib/payment/apple-iap/handler-fastify.js.map +0 -1
- package/lib/payment/apple-iap/index.d.ts.map +0 -1
- package/lib/payment/apple-iap/index.js.map +0 -1
- package/lib/payment/apple-iap/module.d.ts.map +0 -1
- package/lib/payment/apple-iap/module.js.map +0 -1
- package/lib/payment/apple-iap/verify-receipt.d.ts.map +0 -1
- package/lib/payment/apple-iap/verify-receipt.js.map +0 -1
- package/lib/payment/braintree.d.ts.map +0 -1
- package/lib/payment/braintree.js.map +0 -1
- package/lib/payment/cryptopay/db/CryptopayTransactions.d.ts.map +0 -1
- package/lib/payment/cryptopay/db/CryptopayTransactions.js.map +0 -1
- package/lib/payment/cryptopay/denote-amount.d.ts.map +0 -1
- package/lib/payment/cryptopay/denote-amount.js.map +0 -1
- package/lib/payment/cryptopay/derive-btc-address.d.ts.map +0 -1
- package/lib/payment/cryptopay/derive-btc-address.js.map +0 -1
- package/lib/payment/cryptopay/derive-eth-address.d.ts.map +0 -1
- package/lib/payment/cryptopay/derive-eth-address.js.map +0 -1
- package/lib/payment/cryptopay/handle-webhook.d.ts.map +0 -1
- package/lib/payment/cryptopay/handle-webhook.js.map +0 -1
- package/lib/payment/cryptopay/handler-express.d.ts.map +0 -1
- package/lib/payment/cryptopay/handler-express.js.map +0 -1
- package/lib/payment/cryptopay/handler-fastify.d.ts.map +0 -1
- package/lib/payment/cryptopay/handler-fastify.js.map +0 -1
- package/lib/payment/cryptopay/index.d.ts.map +0 -1
- package/lib/payment/cryptopay/index.js.map +0 -1
- package/lib/payment/cryptopay/module.d.ts.map +0 -1
- package/lib/payment/cryptopay/module.js.map +0 -1
- package/lib/payment/cryptopay/plugin.d.ts.map +0 -1
- package/lib/payment/cryptopay/plugin.js.map +0 -1
- package/lib/payment/datatrans-v2/api/authorize.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/authorize.js.map +0 -1
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.js.map +0 -1
- package/lib/payment/datatrans-v2/api/cancel.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/cancel.js.map +0 -1
- package/lib/payment/datatrans-v2/api/index.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/index.js.map +0 -1
- package/lib/payment/datatrans-v2/api/init.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/init.js.map +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.js.map +0 -1
- package/lib/payment/datatrans-v2/api/secureFields.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/secureFields.js.map +0 -1
- package/lib/payment/datatrans-v2/api/settle.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/settle.js.map +0 -1
- package/lib/payment/datatrans-v2/api/status.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/status.js.map +0 -1
- package/lib/payment/datatrans-v2/api/types.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/types.js.map +0 -1
- package/lib/payment/datatrans-v2/api/validate.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/validate.js.map +0 -1
- package/lib/payment/datatrans-v2/generateSignature.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/generateSignature.js.map +0 -1
- package/lib/payment/datatrans-v2/getPaths.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/getPaths.js.map +0 -1
- package/lib/payment/datatrans-v2/handler-express.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/handler-express.js.map +0 -1
- package/lib/payment/datatrans-v2/handler-fastify.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/handler-fastify.js.map +0 -1
- package/lib/payment/datatrans-v2/index.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/index.js.map +0 -1
- package/lib/payment/datatrans-v2/parseRegistrationData.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/parseRegistrationData.js.map +0 -1
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.js.map +0 -1
- package/lib/payment/datatrans-v2/splitProperties.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/splitProperties.js.map +0 -1
- package/lib/payment/invoice-prepaid.d.ts.map +0 -1
- package/lib/payment/invoice-prepaid.js.map +0 -1
- package/lib/payment/invoice.d.ts.map +0 -1
- package/lib/payment/invoice.js.map +0 -1
- package/lib/payment/paypal-checkout.d.ts.map +0 -1
- package/lib/payment/paypal-checkout.js.map +0 -1
- package/lib/payment/payrexx/api/index.d.ts.map +0 -1
- package/lib/payment/payrexx/api/index.js.map +0 -1
- package/lib/payment/payrexx/api/makeFetcher.d.ts.map +0 -1
- package/lib/payment/payrexx/api/makeFetcher.js.map +0 -1
- package/lib/payment/payrexx/handler-express.d.ts.map +0 -1
- package/lib/payment/payrexx/handler-express.js.map +0 -1
- package/lib/payment/payrexx/handler-fastify.d.ts.map +0 -1
- package/lib/payment/payrexx/handler-fastify.js.map +0 -1
- package/lib/payment/payrexx/index.d.ts.map +0 -1
- package/lib/payment/payrexx/index.js.map +0 -1
- package/lib/payment/payrexx/payrexx.d.ts.map +0 -1
- package/lib/payment/payrexx/payrexx.js.map +0 -1
- package/lib/payment/postfinance-checkout/api-client.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api-client.js.map +0 -1
- package/lib/payment/postfinance-checkout/api-types.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api-types.js.map +0 -1
- package/lib/payment/postfinance-checkout/api.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api.js.map +0 -1
- package/lib/payment/postfinance-checkout/handler-express.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/handler-express.js.map +0 -1
- package/lib/payment/postfinance-checkout/handler-fastify.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/handler-fastify.js.map +0 -1
- package/lib/payment/postfinance-checkout/index.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/index.js.map +0 -1
- package/lib/payment/postfinance-checkout/types.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/types.js.map +0 -1
- package/lib/payment/postfinance-checkout/utils.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/utils.js.map +0 -1
- package/lib/payment/saferpay/adapter.d.ts.map +0 -1
- package/lib/payment/saferpay/adapter.js.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayClient.d.ts.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayClient.js.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.d.ts.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.js.map +0 -1
- package/lib/payment/saferpay/api/index.d.ts.map +0 -1
- package/lib/payment/saferpay/api/index.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.js.map +0 -1
- package/lib/payment/saferpay/api/models/Request.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Request.js.map +0 -1
- package/lib/payment/saferpay/api/models/Response.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Response.js.map +0 -1
- package/lib/payment/saferpay/api/models/Transaction.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Transaction.js.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.js.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.js.map +0 -1
- package/lib/payment/saferpay/buildSignature.d.ts.map +0 -1
- package/lib/payment/saferpay/buildSignature.js.map +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.d.ts.map +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.js.map +0 -1
- package/lib/payment/saferpay/getReturnPath.d.ts.map +0 -1
- package/lib/payment/saferpay/getReturnPath.js.map +0 -1
- package/lib/payment/saferpay/handler-express.d.ts.map +0 -1
- package/lib/payment/saferpay/handler-express.js.map +0 -1
- package/lib/payment/saferpay/handler-fastify.d.ts.map +0 -1
- package/lib/payment/saferpay/handler-fastify.js.map +0 -1
- package/lib/payment/saferpay/index.d.ts.map +0 -1
- package/lib/payment/saferpay/index.js.map +0 -1
- package/lib/payment/saferpay/module.d.ts.map +0 -1
- package/lib/payment/saferpay/module.js.map +0 -1
- package/lib/payment/stripe/handler-express.d.ts.map +0 -1
- package/lib/payment/stripe/handler-express.js.map +0 -1
- package/lib/payment/stripe/handler-fastify.d.ts.map +0 -1
- package/lib/payment/stripe/handler-fastify.js.map +0 -1
- package/lib/payment/stripe/index.d.ts.map +0 -1
- package/lib/payment/stripe/index.js.map +0 -1
- package/lib/payment/stripe/stripe.d.ts.map +0 -1
- package/lib/payment/stripe/stripe.js.map +0 -1
- package/lib/presets/all-express.d.ts.map +0 -1
- package/lib/presets/all-express.js.map +0 -1
- package/lib/presets/all-fastify.d.ts.map +0 -1
- package/lib/presets/all-fastify.js.map +0 -1
- package/lib/presets/all.d.ts.map +0 -1
- package/lib/presets/all.js.map +0 -1
- package/lib/presets/base-express.d.ts.map +0 -1
- package/lib/presets/base-express.js.map +0 -1
- package/lib/presets/base-fastify.d.ts.map +0 -1
- package/lib/presets/base-fastify.js.map +0 -1
- package/lib/presets/base.d.ts.map +0 -1
- package/lib/presets/base.js.map +0 -1
- package/lib/presets/countries/ch.d.ts.map +0 -1
- package/lib/presets/countries/ch.js.map +0 -1
- package/lib/presets/crypto-express.d.ts.map +0 -1
- package/lib/presets/crypto-express.js.map +0 -1
- package/lib/presets/crypto-fastify.d.ts.map +0 -1
- package/lib/presets/crypto-fastify.js.map +0 -1
- package/lib/presets/crypto.d.ts.map +0 -1
- package/lib/presets/crypto.js.map +0 -1
- package/lib/pricing/delivery-swiss-tax.d.ts.map +0 -1
- package/lib/pricing/delivery-swiss-tax.js.map +0 -1
- package/lib/pricing/discount-100-off.d.ts.map +0 -1
- package/lib/pricing/discount-100-off.js.map +0 -1
- package/lib/pricing/discount-half-price-manual.d.ts.map +0 -1
- package/lib/pricing/discount-half-price-manual.js.map +0 -1
- package/lib/pricing/discount-half-price.d.ts.map +0 -1
- package/lib/pricing/discount-half-price.js.map +0 -1
- package/lib/pricing/free-delivery.d.ts.map +0 -1
- package/lib/pricing/free-delivery.js.map +0 -1
- package/lib/pricing/free-payment.d.ts.map +0 -1
- package/lib/pricing/free-payment.js.map +0 -1
- package/lib/pricing/order-delivery.d.ts.map +0 -1
- package/lib/pricing/order-delivery.js.map +0 -1
- package/lib/pricing/order-discount.d.ts.map +0 -1
- package/lib/pricing/order-discount.js.map +0 -1
- package/lib/pricing/order-items-discount.d.ts.map +0 -1
- package/lib/pricing/order-items-discount.js.map +0 -1
- package/lib/pricing/order-items.d.ts.map +0 -1
- package/lib/pricing/order-items.js.map +0 -1
- package/lib/pricing/order-payment.d.ts.map +0 -1
- package/lib/pricing/order-payment.js.map +0 -1
- package/lib/pricing/order-round.d.ts.map +0 -1
- package/lib/pricing/order-round.js.map +0 -1
- package/lib/pricing/product-catalog-price-options.d.ts.map +0 -1
- package/lib/pricing/product-catalog-price-options.js.map +0 -1
- package/lib/pricing/product-catalog-price.d.ts.map +0 -1
- package/lib/pricing/product-catalog-price.js.map +0 -1
- package/lib/pricing/product-discount.d.ts.map +0 -1
- package/lib/pricing/product-discount.js.map +0 -1
- package/lib/pricing/product-price-rateconversion.d.ts.map +0 -1
- package/lib/pricing/product-price-rateconversion.js.map +0 -1
- package/lib/pricing/product-round.d.ts.map +0 -1
- package/lib/pricing/product-round.js.map +0 -1
- package/lib/pricing/product-swiss-tax.d.ts.map +0 -1
- package/lib/pricing/product-swiss-tax.js.map +0 -1
- package/lib/pricing/tax/ch.d.ts.map +0 -1
- package/lib/pricing/tax/ch.js.map +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.d.ts.map +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.js.map +0 -1
- package/lib/quotations/manual.d.ts.map +0 -1
- package/lib/quotations/manual.js.map +0 -1
- package/lib/warehousing/eth-minter.d.ts.map +0 -1
- package/lib/warehousing/eth-minter.js.map +0 -1
- package/lib/warehousing/store.d.ts.map +0 -1
- package/lib/warehousing/store.js.map +0 -1
- package/lib/worker/budgetsms.d.ts.map +0 -1
- package/lib/worker/budgetsms.js.map +0 -1
- package/lib/worker/bulk-import.d.ts.map +0 -1
- package/lib/worker/bulk-import.js.map +0 -1
- package/lib/worker/bulkgate.d.ts.map +0 -1
- package/lib/worker/bulkgate.js.map +0 -1
- package/lib/worker/email.d.ts.map +0 -1
- package/lib/worker/email.js.map +0 -1
- package/lib/worker/enrollment-order-generator.d.ts.map +0 -1
- package/lib/worker/enrollment-order-generator.js.map +0 -1
- package/lib/worker/error-notifications.d.ts.map +0 -1
- package/lib/worker/error-notifications.js.map +0 -1
- package/lib/worker/export-token.d.ts.map +0 -1
- package/lib/worker/export-token.js.map +0 -1
- package/lib/worker/external.d.ts.map +0 -1
- package/lib/worker/external.js.map +0 -1
- package/lib/worker/heartbeat.d.ts.map +0 -1
- package/lib/worker/heartbeat.js.map +0 -1
- package/lib/worker/http-request.d.ts.map +0 -1
- package/lib/worker/http-request.js.map +0 -1
- package/lib/worker/message.d.ts.map +0 -1
- package/lib/worker/message.js.map +0 -1
- package/lib/worker/push-notification.d.ts.map +0 -1
- package/lib/worker/push-notification.js.map +0 -1
- package/lib/worker/twilio.d.ts.map +0 -1
- package/lib/worker/twilio.js.map +0 -1
- package/lib/worker/update-coinbase-rates.d.ts.map +0 -1
- package/lib/worker/update-coinbase-rates.js.map +0 -1
- package/lib/worker/update-ecb-rates.d.ts.map +0 -1
- package/lib/worker/update-ecb-rates.js.map +0 -1
- package/lib/worker/update-token-ownership.d.ts.map +0 -1
- package/lib/worker/update-token-ownership.js.map +0 -1
- package/lib/worker/zombie-killer.d.ts.map +0 -1
- package/lib/worker/zombie-killer.js.map +0 -1
- package/readme.md +0 -5
- package/src/delivery/post.ts +0 -30
- package/src/delivery/send-message.ts +0 -50
- package/src/delivery/stores.ts +0 -53
- package/src/enrollments/licensed.ts +0 -61
- package/src/events/aws-eventbridge.ts +0 -45
- package/src/events/node-event-emitter.ts +0 -18
- package/src/events/redis.ts +0 -34
- package/src/files/gridfs/adapter.ts +0 -176
- package/src/files/gridfs/handler-express.ts +0 -145
- package/src/files/gridfs/handler-fastify.ts +0 -177
- package/src/files/gridfs/index.ts +0 -6
- package/src/files/gridfs/module.ts +0 -54
- package/src/files/gridfs/sign.ts +0 -28
- package/src/files/minio/handler-express.ts +0 -35
- package/src/files/minio/handler-fastify.ts +0 -44
- package/src/files/minio/index.ts +0 -232
- package/src/filters/local-search.ts +0 -101
- package/src/filters/strict-equal.ts +0 -30
- package/src/payment/apple-iap/adapter.ts +0 -153
- package/src/payment/apple-iap/db/AppleTransactionsCollection.ts +0 -14
- package/src/payment/apple-iap/fix-periods.ts +0 -31
- package/src/payment/apple-iap/handler-express.ts +0 -140
- package/src/payment/apple-iap/handler-fastify.ts +0 -147
- package/src/payment/apple-iap/index.ts +0 -6
- package/src/payment/apple-iap/module.ts +0 -34
- package/src/payment/apple-iap/verify-receipt.ts +0 -27
- package/src/payment/braintree.ts +0 -167
- package/src/payment/cryptopay/db/CryptopayTransactions.ts +0 -16
- package/src/payment/cryptopay/denote-amount.test.ts +0 -28
- package/src/payment/cryptopay/denote-amount.ts +0 -29
- package/src/payment/cryptopay/derive-btc-address.test.ts +0 -22
- package/src/payment/cryptopay/derive-btc-address.ts +0 -46
- package/src/payment/cryptopay/derive-eth-address.test.ts +0 -22
- package/src/payment/cryptopay/derive-eth-address.ts +0 -40
- package/src/payment/cryptopay/handle-webhook.ts +0 -103
- package/src/payment/cryptopay/handler-express.ts +0 -21
- package/src/payment/cryptopay/handler-fastify.ts +0 -24
- package/src/payment/cryptopay/index.ts +0 -7
- package/src/payment/cryptopay/module.ts +0 -138
- package/src/payment/cryptopay/plugin.ts +0 -282
- package/src/payment/cryptopay/readme.md +0 -23
- package/src/payment/datatrans-v2/api/authorize.ts +0 -17
- package/src/payment/datatrans-v2/api/authorizeAuthenticated.ts +0 -20
- package/src/payment/datatrans-v2/api/cancel.ts +0 -13
- package/src/payment/datatrans-v2/api/index.ts +0 -24
- package/src/payment/datatrans-v2/api/init.ts +0 -43
- package/src/payment/datatrans-v2/api/makeFetcher.ts +0 -52
- package/src/payment/datatrans-v2/api/secureFields.ts +0 -19
- package/src/payment/datatrans-v2/api/settle.ts +0 -13
- package/src/payment/datatrans-v2/api/status.ts +0 -8
- package/src/payment/datatrans-v2/api/types.ts +0 -378
- package/src/payment/datatrans-v2/api/validate.ts +0 -13
- package/src/payment/datatrans-v2/generateSignature.test.ts +0 -18
- package/src/payment/datatrans-v2/generateSignature.ts +0 -36
- package/src/payment/datatrans-v2/getPaths.ts +0 -25
- package/src/payment/datatrans-v2/handler-express.ts +0 -91
- package/src/payment/datatrans-v2/handler-fastify.ts +0 -97
- package/src/payment/datatrans-v2/index.ts +0 -524
- package/src/payment/datatrans-v2/parseRegistrationData.ts +0 -34
- package/src/payment/datatrans-v2/roundedAmountFromOrder.ts +0 -16
- package/src/payment/datatrans-v2/splitProperties.ts +0 -58
- package/src/payment/invoice-prepaid.ts +0 -40
- package/src/payment/invoice.ts +0 -36
- package/src/payment/paypal-checkout.ts +0 -127
- package/src/payment/payrexx/api/index.ts +0 -84
- package/src/payment/payrexx/api/makeFetcher.ts +0 -83
- package/src/payment/payrexx/handler-express.ts +0 -93
- package/src/payment/payrexx/handler-fastify.ts +0 -105
- package/src/payment/payrexx/index.ts +0 -248
- package/src/payment/payrexx/payrexx.ts +0 -65
- package/src/payment/payrexx/readme.md +0 -4
- package/src/payment/postfinance-checkout/api-client.ts +0 -111
- package/src/payment/postfinance-checkout/api-types.ts +0 -111
- package/src/payment/postfinance-checkout/api.ts +0 -114
- package/src/payment/postfinance-checkout/handler-express.ts +0 -44
- package/src/payment/postfinance-checkout/handler-fastify.ts +0 -53
- package/src/payment/postfinance-checkout/index.ts +0 -271
- package/src/payment/postfinance-checkout/types.ts +0 -27
- package/src/payment/postfinance-checkout/utils.ts +0 -39
- package/src/payment/saferpay/adapter.ts +0 -273
- package/src/payment/saferpay/api/api/SaferpayClient.ts +0 -79
- package/src/payment/saferpay/api/api/SaferpayConnection.ts +0 -36
- package/src/payment/saferpay/api/index.ts +0 -8
- package/src/payment/saferpay/api/models/PaymentMethods.ts +0 -26
- package/src/payment/saferpay/api/models/PaymentPageAssert.ts +0 -75
- package/src/payment/saferpay/api/models/PaymentPageInitialize.ts +0 -58
- package/src/payment/saferpay/api/models/Request.ts +0 -14
- package/src/payment/saferpay/api/models/Response.ts +0 -9
- package/src/payment/saferpay/api/models/Transaction.ts +0 -6
- package/src/payment/saferpay/api/models/TransactionCancel.ts +0 -15
- package/src/payment/saferpay/api/models/TransactionCapture.ts +0 -20
- package/src/payment/saferpay/buildSignature.ts +0 -9
- package/src/payment/saferpay/db/SaferpayTransactionsCollection.ts +0 -13
- package/src/payment/saferpay/getReturnPath.ts +0 -10
- package/src/payment/saferpay/handler-express.ts +0 -71
- package/src/payment/saferpay/handler-fastify.ts +0 -80
- package/src/payment/saferpay/index.ts +0 -6
- package/src/payment/saferpay/module.ts +0 -41
- package/src/payment/stripe/handler-express.ts +0 -135
- package/src/payment/stripe/handler-fastify.ts +0 -151
- package/src/payment/stripe/index.ts +0 -163
- package/src/payment/stripe/readme.md +0 -12
- package/src/payment/stripe/stripe.ts +0 -137
- package/src/presets/all-express.ts +0 -51
- package/src/presets/all-fastify.ts +0 -72
- package/src/presets/all.ts +0 -37
- package/src/presets/base-express.ts +0 -7
- package/src/presets/base-fastify.ts +0 -20
- package/src/presets/base.ts +0 -42
- package/src/presets/countries/ch.ts +0 -2
- package/src/presets/crypto-express.ts +0 -12
- package/src/presets/crypto-fastify.ts +0 -15
- package/src/presets/crypto.ts +0 -11
- package/src/pricing/delivery-swiss-tax.ts +0 -78
- package/src/pricing/discount-100-off.test.ts +0 -41
- package/src/pricing/discount-100-off.ts +0 -48
- package/src/pricing/discount-half-price-manual.test.ts +0 -52
- package/src/pricing/discount-half-price-manual.ts +0 -47
- package/src/pricing/discount-half-price.test.ts +0 -52
- package/src/pricing/discount-half-price.ts +0 -50
- package/src/pricing/free-delivery.test.ts +0 -10
- package/src/pricing/free-delivery.ts +0 -36
- package/src/pricing/free-payment.ts +0 -37
- package/src/pricing/licenced-enrollment.test.ts +0 -38
- package/src/pricing/order-delivery.test.ts +0 -9
- package/src/pricing/order-delivery.ts +0 -47
- package/src/pricing/order-discount.test.ts +0 -10
- package/src/pricing/order-discount.ts +0 -123
- package/src/pricing/order-items-discount.ts +0 -86
- package/src/pricing/order-items.ts +0 -61
- package/src/pricing/order-payment.ts +0 -48
- package/src/pricing/order-round.ts +0 -174
- package/src/pricing/plugins-index.test.ts +0 -5
- package/src/pricing/product-catalog-price-options.ts +0 -67
- package/src/pricing/product-catalog-price.ts +0 -71
- package/src/pricing/product-discount.ts +0 -97
- package/src/pricing/product-price-rateconversion.ts +0 -74
- package/src/pricing/product-round.ts +0 -66
- package/src/pricing/product-swiss-tax.ts +0 -102
- package/src/pricing/tax/ch.test.ts +0 -20
- package/src/pricing/tax/ch.ts +0 -65
- package/src/pricing/utils/isDeliveryAddressInCountry.test.ts +0 -106
- package/src/pricing/utils/isDeliveryAddressInCountry.ts +0 -26
- package/src/quotations/manual.ts +0 -26
- package/src/warehousing/eth-minter.ts +0 -167
- package/src/warehousing/store.ts +0 -45
- package/src/worker/budgetsms.ts +0 -268
- package/src/worker/bulk-import.ts +0 -77
- package/src/worker/bulkgate.ts +0 -138
- package/src/worker/email.ts +0 -165
- package/src/worker/enrollment-order-generator.ts +0 -94
- package/src/worker/error-notifications.ts +0 -83
- package/src/worker/export-token.ts +0 -32
- package/src/worker/external.ts +0 -17
- package/src/worker/heartbeat.ts +0 -37
- package/src/worker/http-request.ts +0 -71
- package/src/worker/message.ts +0 -56
- package/src/worker/push-notification.ts +0 -121
- package/src/worker/twilio.ts +0 -78
- package/src/worker/update-coinbase-rates.ts +0 -76
- package/src/worker/update-ecb-rates.ts +0 -115
- package/src/worker/update-token-ownership.ts +0 -70
- package/src/worker/zombie-killer.ts +0 -139
- package/tests/mock/datatrans/v1/secure-fields.json +0 -4
- package/tests/mock/datatrans/v1/transactions/authorize.json +0 -48
- package/tests/mock/datatrans/v1/transactions/card_check_authorized.json +0 -47
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized/settle.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized.json +0 -48
- package/tests/mock/datatrans/v1/transactions/payment_authorized/cancel.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized/settle.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized.json +0 -48
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount/cancel.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount.json +0 -48
- package/tests/mock/datatrans/v1/transactions/validate.json +0 -1
- package/tests/mock/datatrans/v1/transactions.json +0 -4
- package/tests/mock/payrexx/Gateway/1000001.json +0 -106
- package/tests/mock/payrexx/Gateway.json +0 -24
- package/tests/mock/payrexx/transaction_example1.json +0 -65
- package/tests/mock/payrexx/transaction_example2.json +0 -65
- package/tests/mock/payrexx/transaction_example3.json +0 -94
- package/tsconfig.json +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProductPricingDirector, ProductPricingAdapter, ProductPricingRowCategory, } from '@unchainedshop/core';
|
|
2
|
-
import { resolveTaxCategoryFromDeliveryProvider, resolveTaxCategoryFromProduct, SwissTaxCategories, } from
|
|
3
|
-
import isDeliveryAddressInCountry from
|
|
2
|
+
import { resolveTaxCategoryFromDeliveryProvider, resolveTaxCategoryFromProduct, SwissTaxCategories, } from "./tax/ch.js";
|
|
3
|
+
import isDeliveryAddressInCountry from "./utils/isDeliveryAddressInCountry.js";
|
|
4
4
|
export const ProductSwissTax = {
|
|
5
5
|
...ProductPricingAdapter,
|
|
6
6
|
key: 'shop.unchained.pricing.product-swiss-tax',
|
|
@@ -29,7 +29,6 @@ export const ProductSwissTax = {
|
|
|
29
29
|
}
|
|
30
30
|
let taxCategory = resolveTaxCategoryFromProduct(context.product);
|
|
31
31
|
if (!taxCategory) {
|
|
32
|
-
// No special tax category found, use default from delivery provider
|
|
33
32
|
const provider = orderDelivery?.deliveryProviderId
|
|
34
33
|
? await context.modules.delivery.findProvider({
|
|
35
34
|
deliveryProviderId: orderDelivery?.deliveryProviderId,
|
|
@@ -38,7 +37,6 @@ export const ProductSwissTax = {
|
|
|
38
37
|
if (provider)
|
|
39
38
|
taxCategory = resolveTaxCategoryFromDeliveryProvider(provider);
|
|
40
39
|
}
|
|
41
|
-
// If still no tax category found, use default
|
|
42
40
|
if (!taxCategory)
|
|
43
41
|
taxCategory = SwissTaxCategories.DEFAULT;
|
|
44
42
|
const taxRate = taxCategory.rate(context.order?.ordered);
|
|
@@ -76,4 +74,3 @@ export const ProductSwissTax = {
|
|
|
76
74
|
},
|
|
77
75
|
};
|
|
78
76
|
ProductPricingDirector.registerAdapter(ProductSwissTax);
|
|
79
|
-
//# sourceMappingURL=product-swiss-tax.js.map
|
package/lib/pricing/tax/ch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeliveryProvider } from '@unchainedshop/core-delivery';
|
|
2
|
-
import { Product } from '@unchainedshop/core-products';
|
|
1
|
+
import type { DeliveryProvider } from '@unchainedshop/core-delivery';
|
|
2
|
+
import type { Product } from '@unchainedshop/core-products';
|
|
3
3
|
export interface SwissTaxCategoryResolver {
|
|
4
4
|
value: string;
|
|
5
5
|
rate: (referenceDate?: Date) => number;
|
|
@@ -7,4 +7,3 @@ export interface SwissTaxCategoryResolver {
|
|
|
7
7
|
export declare const SwissTaxCategories: Record<string, SwissTaxCategoryResolver>;
|
|
8
8
|
export declare const resolveTaxCategoryFromDeliveryProvider: (provider: DeliveryProvider) => SwissTaxCategoryResolver | null;
|
|
9
9
|
export declare const resolveTaxCategoryFromProduct: (product: Product) => SwissTaxCategoryResolver | null;
|
|
10
|
-
//# sourceMappingURL=ch.d.ts.map
|
package/lib/pricing/tax/ch.js
CHANGED
|
@@ -44,4 +44,3 @@ export const resolveTaxCategoryFromProduct = (product) => {
|
|
|
44
44
|
const taxCategory = Object.values(SwissTaxCategories).find((t) => `swiss-tax-category:${t.value}` === productSpecialTaxTag?.trim().toLowerCase());
|
|
45
45
|
return taxCategory || null;
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=ch.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Order, OrderDelivery } from '@unchainedshop/core-orders';
|
|
1
|
+
import type { Order, OrderDelivery } from '@unchainedshop/core-orders';
|
|
2
2
|
export default function isDeliveryAddressInCountry({ orderDelivery, order, countryCode: forceCountryCode, }: {
|
|
3
3
|
orderDelivery?: OrderDelivery | null;
|
|
4
4
|
order?: Order | null;
|
|
5
5
|
countryCode?: string | null;
|
|
6
6
|
}, allowedCountryCodes: string[]): boolean;
|
|
7
|
-
//# sourceMappingURL=isDeliveryAddressInCountry.d.ts.map
|
package/lib/quotations/manual.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WarehousingError, WarehousingDirector, WarehousingAdapter, } from '@unchainedshop/core';
|
|
2
2
|
import { WarehousingProviderType } from '@unchainedshop/core-warehousing';
|
|
3
|
-
import { ProductContractStandard,
|
|
3
|
+
import { ProductContractStandard, ProductType } from '@unchainedshop/core-products';
|
|
4
4
|
import { systemLocale } from '@unchainedshop/utils';
|
|
5
5
|
import { generateDbObjectId } from '@unchainedshop/mongodb';
|
|
6
6
|
import { getFileAdapter } from '@unchainedshop/core-files';
|
|
@@ -35,7 +35,7 @@ const ETHMinter = {
|
|
|
35
35
|
return {
|
|
36
36
|
...WarehousingAdapter.actions(configuration, context),
|
|
37
37
|
isActive() {
|
|
38
|
-
return product?.type ===
|
|
38
|
+
return product?.type === ProductType.TOKENIZED_PRODUCT;
|
|
39
39
|
},
|
|
40
40
|
configurationError() {
|
|
41
41
|
if (contractStandard === 'ERC1155' && !tokenId) {
|
|
@@ -49,9 +49,6 @@ const ETHMinter = {
|
|
|
49
49
|
return supply ? supply - tokensCreated : 0;
|
|
50
50
|
},
|
|
51
51
|
tokenize: async () => {
|
|
52
|
-
// Upload Image to IPFS
|
|
53
|
-
// Upload Metadata to IPFS
|
|
54
|
-
// Prepare metadata
|
|
55
52
|
const chainId = configuration.find(({ key }) => key === 'chainId')?.value || undefined;
|
|
56
53
|
const meta = { contractStandard };
|
|
57
54
|
const tokensCreated = await getTokensCreated();
|
|
@@ -59,7 +56,6 @@ const ETHMinter = {
|
|
|
59
56
|
throw new Error('Order position not found in context');
|
|
60
57
|
}
|
|
61
58
|
if (contractStandard === 'ERC721') {
|
|
62
|
-
// ERC721 is non-fungible, thus every tokenSerialNumber unique!
|
|
63
59
|
const items = new Array(orderPosition.quantity).fill(null).map((_, i) => ({
|
|
64
60
|
_id: generateDbObjectId(),
|
|
65
61
|
tokenSerialNumber: Number(parseInt(MINTER_TOKEN_OFFSET, 10) + tokensCreated + (i + 1)).toString(),
|
|
@@ -70,7 +66,6 @@ const ETHMinter = {
|
|
|
70
66
|
}));
|
|
71
67
|
return items;
|
|
72
68
|
}
|
|
73
|
-
// ERC1155 is fungible, allow the same tokenId
|
|
74
69
|
return [
|
|
75
70
|
{
|
|
76
71
|
_id: generateDbObjectId(),
|
|
@@ -83,9 +78,6 @@ const ETHMinter = {
|
|
|
83
78
|
];
|
|
84
79
|
},
|
|
85
80
|
tokenMetadata: async (tokenSerialNumber) => {
|
|
86
|
-
// Metadata standards supported
|
|
87
|
-
// https://eips.ethereum.org/EIPS/eip-1155 (backward compatible with 721)
|
|
88
|
-
// https://eips.ethereum.org/EIPS/eip-721
|
|
89
81
|
if (!product) {
|
|
90
82
|
throw new Error('Product not found in context');
|
|
91
83
|
}
|
|
@@ -126,4 +118,3 @@ const ETHMinter = {
|
|
|
126
118
|
},
|
|
127
119
|
};
|
|
128
120
|
WarehousingDirector.registerAdapter(ETHMinter);
|
|
129
|
-
//# sourceMappingURL=eth-minter.js.map
|
package/lib/warehousing/store.js
CHANGED
package/lib/worker/budgetsms.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { WorkerAdapter, WorkerDirector } from '@unchainedshop/core';
|
|
2
2
|
const { BUDGETSMS_USERNAME, BUDGETSMS_USERID, BUDGETSMS_HANDLE } = process.env;
|
|
3
|
-
// BudgetSMS Plugin - Verified against official API documentation
|
|
4
|
-
// Note: BudgetSMS API has a quirk where it returns error 1001 (authentication failed)
|
|
5
|
-
// when you have insufficient credit, instead of the correct error 1003.
|
|
6
3
|
const BudgetSMSWorker = {
|
|
7
4
|
...WorkerAdapter,
|
|
8
5
|
key: 'shop.unchained.worker-plugin.budgetsms',
|
|
@@ -11,37 +8,30 @@ const BudgetSMSWorker = {
|
|
|
11
8
|
type: 'BUDGETSMS',
|
|
12
9
|
doWork: async ({ from, to, text, test = false, customid, price = false, mccmnc = false, credit = false, ...params }) => {
|
|
13
10
|
try {
|
|
14
|
-
// Validate credentials
|
|
15
11
|
if (!BUDGETSMS_USERNAME || !BUDGETSMS_USERID || !BUDGETSMS_HANDLE) {
|
|
16
12
|
throw new Error('Missing BudgetSMS credentials. Please set BUDGETSMS_USERNAME, BUDGETSMS_USERID, and BUDGETSMS_HANDLE');
|
|
17
13
|
}
|
|
18
|
-
// Trim credentials to remove any whitespace
|
|
19
14
|
const username = BUDGETSMS_USERNAME.trim();
|
|
20
15
|
const userid = BUDGETSMS_USERID.trim();
|
|
21
16
|
const handle = BUDGETSMS_HANDLE.trim();
|
|
22
|
-
// Validate userid is numeric only
|
|
23
17
|
if (!/^\d+$/.test(userid)) {
|
|
24
18
|
throw new Error('BUDGETSMS_USERID must be numeric only. Found: ' + userid);
|
|
25
19
|
}
|
|
26
|
-
// Choose endpoint based on test mode
|
|
27
20
|
const url = test ? 'https://api.budgetsms.net/testsms/' : 'https://api.budgetsms.net/sendsms/';
|
|
28
|
-
// Format phone number according to E.164 (no + or 00, no spaces/dashes)
|
|
29
21
|
const formattedTo = to.replace(/^\+|^00/, '').replace(/[\s-]/g, '');
|
|
30
|
-
// Build query parameters
|
|
31
22
|
const queryParams = new URLSearchParams({
|
|
32
23
|
username: username,
|
|
33
24
|
userid: userid,
|
|
34
25
|
handle: handle,
|
|
35
|
-
msg: text || '',
|
|
26
|
+
msg: text || '',
|
|
36
27
|
from: from || '',
|
|
37
28
|
to: formattedTo,
|
|
38
29
|
...(customid && { customid }),
|
|
39
|
-
...(!test && price && { price: '1' }),
|
|
40
|
-
...(!test && mccmnc && { mccmnc: '1' }),
|
|
41
|
-
...(!test && credit && { credit: '1' }),
|
|
30
|
+
...(!test && price && { price: '1' }),
|
|
31
|
+
...(!test && mccmnc && { mccmnc: '1' }),
|
|
32
|
+
...(!test && credit && { credit: '1' }),
|
|
42
33
|
...params,
|
|
43
34
|
});
|
|
44
|
-
// Make GET request
|
|
45
35
|
const fullUrl = `${url}?${queryParams.toString()}`;
|
|
46
36
|
const response = await fetch(fullUrl, {
|
|
47
37
|
method: 'GET',
|
|
@@ -51,7 +41,6 @@ const BudgetSMSWorker = {
|
|
|
51
41
|
},
|
|
52
42
|
});
|
|
53
43
|
const responseText = await response.text().then((text) => text.trim());
|
|
54
|
-
// Parse response: "OK <smsid> [price] [parts] [mccmnc] [credit]" or "ERR <errorcode>"
|
|
55
44
|
if (responseText.startsWith('OK')) {
|
|
56
45
|
const parts = responseText.split(' ');
|
|
57
46
|
const result = {
|
|
@@ -63,7 +52,6 @@ const BudgetSMSWorker = {
|
|
|
63
52
|
result.message = 'Test SMS validated successfully (no credit deducted)';
|
|
64
53
|
}
|
|
65
54
|
else {
|
|
66
|
-
// Parse additional info based on parameters used
|
|
67
55
|
let index = 2;
|
|
68
56
|
if (price && parts[index] && parts[index + 1]) {
|
|
69
57
|
result.price = parseFloat(parts[index]);
|
|
@@ -87,7 +75,6 @@ const BudgetSMSWorker = {
|
|
|
87
75
|
if (responseText.startsWith('ERR')) {
|
|
88
76
|
const parts = responseText.split(' ');
|
|
89
77
|
const errorCode = parts[1] || 'UNKNOWN';
|
|
90
|
-
// Error code mappings from documentation
|
|
91
78
|
const errorMessages = {
|
|
92
79
|
'1001': 'Authentication failed OR insufficient credit (BudgetSMS returns 1001 for both)',
|
|
93
80
|
'1002': 'Account not active',
|
|
@@ -118,7 +105,6 @@ const BudgetSMSWorker = {
|
|
|
118
105
|
'4001': 'System error, related to customid',
|
|
119
106
|
'4002': 'System error, temporary issue',
|
|
120
107
|
};
|
|
121
|
-
// Special handling for 1001 error
|
|
122
108
|
let message = errorMessages[errorCode] || `Unknown error code: ${errorCode}`;
|
|
123
109
|
if (errorCode === '1001') {
|
|
124
110
|
message += '. Note: Check your account balance - BudgetSMS may return 1001 when credit is 0.';
|
|
@@ -132,7 +118,6 @@ const BudgetSMSWorker = {
|
|
|
132
118
|
},
|
|
133
119
|
};
|
|
134
120
|
}
|
|
135
|
-
// Unexpected response
|
|
136
121
|
return {
|
|
137
122
|
success: false,
|
|
138
123
|
error: {
|
|
@@ -155,38 +140,6 @@ const BudgetSMSWorker = {
|
|
|
155
140
|
},
|
|
156
141
|
};
|
|
157
142
|
WorkerDirector.registerAdapter(BudgetSMSWorker);
|
|
158
|
-
// Environment variables needed:
|
|
159
|
-
// BUDGETSMS_USERNAME=your_username (alphanumeric)
|
|
160
|
-
// BUDGETSMS_USERID=your_userid (NUMERIC ONLY - found in BudgetSMS control panel)
|
|
161
|
-
// BUDGETSMS_HANDLE=your_api_handle (alphanumeric - found in BudgetSMS control panel)
|
|
162
|
-
// IMPORTANT: The userid MUST be numeric only. You can find it in the BudgetSMS control panel after login.
|
|
163
|
-
// Example: BUDGETSMS_USERID=12345 (NOT "user12345" or any non-numeric value)
|
|
164
|
-
// Usage examples:
|
|
165
|
-
//
|
|
166
|
-
// Send real SMS (requires credits):
|
|
167
|
-
// await WorkerDirector.doWork({
|
|
168
|
-
// type: 'BUDGETSMS',
|
|
169
|
-
// from: 'YourCompany',
|
|
170
|
-
// to: '+41791234567',
|
|
171
|
-
// text: 'Your message here',
|
|
172
|
-
// price: true, // Get price info
|
|
173
|
-
// credit: true, // Get remaining credit
|
|
174
|
-
// });
|
|
175
|
-
//
|
|
176
|
-
// Test SMS (no credit deducted):
|
|
177
|
-
// await WorkerDirector.doWork({
|
|
178
|
-
// type: 'BUDGETSMS',
|
|
179
|
-
// test: true,
|
|
180
|
-
// from: 'YourCompany',
|
|
181
|
-
// to: '+41791234567',
|
|
182
|
-
// text: 'Test message',
|
|
183
|
-
// });
|
|
184
|
-
//
|
|
185
|
-
// IMPORTANT: If you get error 1001, it could mean either:
|
|
186
|
-
// 1. Authentication failed (wrong credentials)
|
|
187
|
-
// 2. Insufficient credit (0 balance)
|
|
188
|
-
// Use the checkBudgetSmsCredentials() helper to verify which one it is.
|
|
189
|
-
// Helper function to check credentials and balance
|
|
190
143
|
export async function checkBudgetSmsCredentials() {
|
|
191
144
|
const url = 'https://api.budgetsms.net/checkcredit/';
|
|
192
145
|
const username = process.env.BUDGETSMS_USERNAME?.trim();
|
|
@@ -214,4 +167,3 @@ export async function checkBudgetSmsCredentials() {
|
|
|
214
167
|
return { error: err.message };
|
|
215
168
|
}
|
|
216
169
|
}
|
|
217
|
-
//# sourceMappingURL=budgetsms.js.map
|
|
@@ -7,7 +7,7 @@ export const BulkImportWorker = {
|
|
|
7
7
|
label: 'Bulk Import',
|
|
8
8
|
version: '1.0.0',
|
|
9
9
|
type: 'BULK_IMPORT',
|
|
10
|
-
maxParallelAllocations: 1,
|
|
10
|
+
maxParallelAllocations: 1,
|
|
11
11
|
doWork: async (rawPayload, unchainedAPI) => {
|
|
12
12
|
try {
|
|
13
13
|
const { createShouldUpsertIfIDExists = false, skipCacheInvalidation = false, updateShouldUpsertIfIDNotExists = false, } = rawPayload;
|
|
@@ -17,7 +17,6 @@ export const BulkImportWorker = {
|
|
|
17
17
|
skipCacheInvalidation,
|
|
18
18
|
});
|
|
19
19
|
if (rawPayload.payloadId) {
|
|
20
|
-
// stream payload from gridfs
|
|
21
20
|
const readStream = await unchainedAPI.services.files.createDownloadStream({
|
|
22
21
|
fileId: rawPayload.payloadId,
|
|
23
22
|
});
|
|
@@ -64,4 +63,3 @@ export const BulkImportWorker = {
|
|
|
64
63
|
},
|
|
65
64
|
};
|
|
66
65
|
WorkerDirector.registerAdapter(BulkImportWorker);
|
|
67
|
-
//# sourceMappingURL=bulk-import.js.map
|
package/lib/worker/bulkgate.d.ts
CHANGED
package/lib/worker/bulkgate.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WorkerAdapter, WorkerDirector } from '@unchainedshop/core';
|
|
2
2
|
const { BULKGATE_APPLICATION_ID, BULKGATE_APPLICATION_TOKEN } = process.env;
|
|
3
|
-
// BulkGate Simple API for SMS (transactional by default, promotional via boolean)
|
|
4
3
|
const BulkGateWorker = {
|
|
5
4
|
...WorkerAdapter,
|
|
6
5
|
key: 'shop.unchained.worker-plugin.bulkgate',
|
|
@@ -9,22 +8,20 @@ const BulkGateWorker = {
|
|
|
9
8
|
type: 'BULKGATE',
|
|
10
9
|
doWork: async ({ from, to, text, unicode = false, country, schedule, promotional = false, ...params }) => {
|
|
11
10
|
try {
|
|
12
|
-
// Choose API endpoint based on promotional flag
|
|
13
11
|
const url = promotional
|
|
14
12
|
? 'https://portal.bulkgate.com/api/1.0/simple/promotional'
|
|
15
13
|
: 'https://portal.bulkgate.com/api/1.0/simple/transactional';
|
|
16
|
-
// Prepare the request body
|
|
17
14
|
const requestBody = {
|
|
18
15
|
application_id: BULKGATE_APPLICATION_ID,
|
|
19
16
|
application_token: BULKGATE_APPLICATION_TOKEN,
|
|
20
|
-
number: to,
|
|
17
|
+
number: to,
|
|
21
18
|
text: text || '',
|
|
22
|
-
unicode: unicode,
|
|
23
|
-
sender_id: from ? 'gText' : 'gSystem',
|
|
24
|
-
sender_id_value: from || '',
|
|
25
|
-
...(country && { country }),
|
|
26
|
-
...(schedule && { schedule }),
|
|
27
|
-
...params,
|
|
19
|
+
unicode: unicode,
|
|
20
|
+
sender_id: from ? 'gText' : 'gSystem',
|
|
21
|
+
sender_id_value: from || '',
|
|
22
|
+
...(country && { country }),
|
|
23
|
+
...(schedule && { schedule }),
|
|
24
|
+
...params,
|
|
28
25
|
};
|
|
29
26
|
const response = await fetch(url, {
|
|
30
27
|
method: 'POST',
|
|
@@ -35,7 +32,6 @@ const BulkGateWorker = {
|
|
|
35
32
|
body: JSON.stringify(requestBody),
|
|
36
33
|
});
|
|
37
34
|
const responseData = await response.json();
|
|
38
|
-
// Check if we have an error response
|
|
39
35
|
if (responseData.error || responseData.type) {
|
|
40
36
|
return {
|
|
41
37
|
success: false,
|
|
@@ -49,9 +45,7 @@ const BulkGateWorker = {
|
|
|
49
45
|
},
|
|
50
46
|
};
|
|
51
47
|
}
|
|
52
|
-
// Success response (transactional has specific structure, promotional might vary)
|
|
53
48
|
if (responseData.data) {
|
|
54
|
-
// For transactional SMS, check for specific accepted status
|
|
55
49
|
if (!promotional && responseData.data.status === 'accepted') {
|
|
56
50
|
return {
|
|
57
51
|
success: true,
|
|
@@ -65,7 +59,6 @@ const BulkGateWorker = {
|
|
|
65
59
|
error: null,
|
|
66
60
|
};
|
|
67
61
|
}
|
|
68
|
-
// For promotional SMS or other successful responses
|
|
69
62
|
if (promotional || responseData.data.status) {
|
|
70
63
|
return {
|
|
71
64
|
success: true,
|
|
@@ -74,7 +67,6 @@ const BulkGateWorker = {
|
|
|
74
67
|
};
|
|
75
68
|
}
|
|
76
69
|
}
|
|
77
|
-
// Unexpected response format
|
|
78
70
|
return {
|
|
79
71
|
success: false,
|
|
80
72
|
error: {
|
|
@@ -96,9 +88,4 @@ const BulkGateWorker = {
|
|
|
96
88
|
}
|
|
97
89
|
},
|
|
98
90
|
};
|
|
99
|
-
// Register the plugin
|
|
100
91
|
WorkerDirector.registerAdapter(BulkGateWorker);
|
|
101
|
-
// Environment variables needed:
|
|
102
|
-
// BULKGATE_APPLICATION_ID=your_application_id
|
|
103
|
-
// BULKGATE_APPLICATION_TOKEN=your_application_token
|
|
104
|
-
//# sourceMappingURL=bulkgate.js.map
|
package/lib/worker/email.d.ts
CHANGED
package/lib/worker/email.js
CHANGED
|
@@ -59,7 +59,6 @@ const openInBrowser = async (options) => {
|
|
|
59
59
|
${messageBody}
|
|
60
60
|
</body>
|
|
61
61
|
</html>`;
|
|
62
|
-
// Create a temporary directory and file
|
|
63
62
|
const tempDir = await mkdtemp(join(tmpdir(), 'unchained-email-'));
|
|
64
63
|
const tempFile = join(tempDir, 'email-preview.html');
|
|
65
64
|
await writeFile(tempFile, content, 'utf8');
|
|
@@ -69,7 +68,6 @@ const openInBrowser = async (options) => {
|
|
|
69
68
|
stdio: 'ignore',
|
|
70
69
|
});
|
|
71
70
|
child.unref();
|
|
72
|
-
// Resolve immediately after spawning since process is detached
|
|
73
71
|
resolve(true);
|
|
74
72
|
});
|
|
75
73
|
};
|
|
@@ -136,4 +134,3 @@ const EmailWorkerPlugin = {
|
|
|
136
134
|
},
|
|
137
135
|
};
|
|
138
136
|
WorkerDirector.registerAdapter(EmailWorkerPlugin);
|
|
139
|
-
//# sourceMappingURL=email.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { enrollmentsSettings, EnrollmentStatus } from '@unchainedshop/core-enrollments';
|
|
2
|
-
import { EnrollmentDirector, WorkerDirector, WorkerAdapter } from '@unchainedshop/core';
|
|
2
|
+
import { EnrollmentDirector, WorkerDirector, WorkerAdapter, } from '@unchainedshop/core';
|
|
3
3
|
const GenerateOrderWorker = {
|
|
4
4
|
...WorkerAdapter,
|
|
5
5
|
key: 'shop.unchained.worker-plugin.generate-enrollment-orders',
|
|
@@ -75,4 +75,3 @@ export const configureGenerateOrderAutoscheduling = () => {
|
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=enrollment-order-generator.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWorkerAdapter } from '@unchainedshop/core';
|
|
1
|
+
import { type IWorkerAdapter } from '@unchainedshop/core';
|
|
2
2
|
interface Arg {
|
|
3
3
|
secondsPassed?: number;
|
|
4
4
|
}
|
|
@@ -7,4 +7,3 @@ interface Result {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const ErrorNotifications: IWorkerAdapter<Arg, Result>;
|
|
9
9
|
export default ErrorNotifications;
|
|
10
|
-
//# sourceMappingURL=error-notifications.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IWorkerAdapter, UnchainedCore } from '@unchainedshop/core';
|
|
1
|
+
import { type IWorkerAdapter, type UnchainedCore } from '@unchainedshop/core';
|
|
2
2
|
export declare const ExportTokenWorker: IWorkerAdapter<void, void>;
|
|
3
3
|
export declare const configureExportToken: (unchainedAPI: UnchainedCore) => void;
|
|
4
4
|
export default configureExportToken;
|
|
5
|
-
//# sourceMappingURL=export-token.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkerEventTypes } from '@unchainedshop/core-worker';
|
|
2
|
-
import { WorkerAdapter, WorkerDirector } from '@unchainedshop/core';
|
|
2
|
+
import { WorkerAdapter, WorkerDirector, } from '@unchainedshop/core';
|
|
3
3
|
import { subscribe } from '@unchainedshop/events';
|
|
4
4
|
export const ExportTokenWorker = {
|
|
5
5
|
...WorkerAdapter,
|
|
@@ -24,4 +24,3 @@ export const configureExportToken = (unchainedAPI) => {
|
|
|
24
24
|
};
|
|
25
25
|
export default configureExportToken;
|
|
26
26
|
WorkerDirector.registerAdapter(ExportTokenWorker);
|
|
27
|
-
//# sourceMappingURL=export-token.js.map
|
package/lib/worker/external.d.ts
CHANGED
package/lib/worker/external.js
CHANGED
package/lib/worker/heartbeat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWorkerAdapter } from '@unchainedshop/core';
|
|
1
|
+
import { type IWorkerAdapter } from '@unchainedshop/core';
|
|
2
2
|
declare const HttpRequestWorkerPlugin: IWorkerAdapter<{
|
|
3
3
|
url?: string;
|
|
4
4
|
data?: any;
|
|
@@ -6,4 +6,3 @@ declare const HttpRequestWorkerPlugin: IWorkerAdapter<{
|
|
|
6
6
|
method: 'POST' | 'GET';
|
|
7
7
|
}, any>;
|
|
8
8
|
export default HttpRequestWorkerPlugin;
|
|
9
|
-
//# sourceMappingURL=http-request.d.ts.map
|
|
@@ -3,8 +3,6 @@ const postFetch = async (url, { data, headers }) => {
|
|
|
3
3
|
return fetch(url, {
|
|
4
4
|
method: 'POST',
|
|
5
5
|
body: JSON.stringify(data),
|
|
6
|
-
// eslint-disable-next-line
|
|
7
|
-
// @ts-ignore
|
|
8
6
|
duplex: 'half',
|
|
9
7
|
headers: { 'Content-Type': 'application/json', ...headers },
|
|
10
8
|
});
|
|
@@ -56,4 +54,3 @@ const HttpRequestWorkerPlugin = {
|
|
|
56
54
|
};
|
|
57
55
|
WorkerDirector.registerAdapter(HttpRequestWorkerPlugin);
|
|
58
56
|
export default HttpRequestWorkerPlugin;
|
|
59
|
-
//# sourceMappingURL=http-request.js.map
|
package/lib/worker/message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IWorkerAdapter } from '@unchainedshop/core';
|
|
2
|
-
import { Work } from '@unchainedshop/core-worker';
|
|
1
|
+
import { type IWorkerAdapter } from '@unchainedshop/core';
|
|
2
|
+
import type { Work } from '@unchainedshop/core-worker';
|
|
3
3
|
export declare const MessageWorker: IWorkerAdapter<{
|
|
4
4
|
template: string;
|
|
5
5
|
_id: string;
|
|
@@ -8,4 +8,3 @@ export declare const MessageWorker: IWorkerAdapter<{
|
|
|
8
8
|
info?: string;
|
|
9
9
|
forked?: Work[];
|
|
10
10
|
}>;
|
|
11
|
-
//# sourceMappingURL=message.d.ts.map
|
package/lib/worker/message.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MessagingDirector, WorkerAdapter, WorkerDirector } from '@unchainedshop/core';
|
|
1
|
+
import { MessagingDirector, WorkerAdapter, WorkerDirector, } from '@unchainedshop/core';
|
|
2
2
|
export const MessageWorker = {
|
|
3
3
|
...WorkerAdapter,
|
|
4
4
|
key: 'shop.unchained.worker-plugin.message',
|
|
@@ -20,7 +20,7 @@ export const MessageWorker = {
|
|
|
20
20
|
...workConfiguration,
|
|
21
21
|
originalWorkId: workId,
|
|
22
22
|
});
|
|
23
|
-
delete work.input;
|
|
23
|
+
delete work.input;
|
|
24
24
|
return work;
|
|
25
25
|
}));
|
|
26
26
|
return { success: true, result: { forked } };
|
|
@@ -40,4 +40,3 @@ export const MessageWorker = {
|
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
WorkerDirector.registerAdapter(MessageWorker);
|
|
43
|
-
//# sourceMappingURL=message.js.map
|
package/lib/worker/twilio.d.ts
CHANGED
package/lib/worker/twilio.js
CHANGED
|
@@ -23,7 +23,7 @@ const SmsWorkerPlugin = {
|
|
|
23
23
|
Body: text || '',
|
|
24
24
|
From: from || TWILIO_SMS_FROM,
|
|
25
25
|
To: to,
|
|
26
|
-
...params,
|
|
26
|
+
...params,
|
|
27
27
|
}),
|
|
28
28
|
});
|
|
29
29
|
const data = await response.json();
|
|
@@ -57,4 +57,3 @@ const SmsWorkerPlugin = {
|
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
WorkerDirector.registerAdapter(SmsWorkerPlugin);
|
|
60
|
-
//# sourceMappingURL=twilio.js.map
|
|
@@ -18,11 +18,10 @@ const UpdateCoinbaseRates = {
|
|
|
18
18
|
doWork: async (input, unchainedAPI) => {
|
|
19
19
|
try {
|
|
20
20
|
const currencies = await unchainedAPI.modules.currencies.findCurrencies({ includeInactive: true });
|
|
21
|
-
const currencyCode = resolveBestCurrency(null, currencies);
|
|
21
|
+
const currencyCode = resolveBestCurrency(null, currencies);
|
|
22
22
|
const currencyCodes = currencies.map((currency) => currency.isoCode);
|
|
23
23
|
const { currency: baseCurrency, rates: pairs } = await getExchangeRates(currencyCode);
|
|
24
24
|
const timestamp = new Date();
|
|
25
|
-
// five minutes
|
|
26
25
|
const expiresAt = new Date(new Date().getTime() + 5 * 60 * 1000);
|
|
27
26
|
const rates = Object.entries(pairs)
|
|
28
27
|
.map(([quoteCurrency, rate]) => {
|
|
@@ -59,4 +58,3 @@ WorkerDirector.configureAutoscheduling({
|
|
|
59
58
|
type: UpdateCoinbaseRates.type,
|
|
60
59
|
schedule: everyMinute,
|
|
61
60
|
});
|
|
62
|
-
//# sourceMappingURL=update-coinbase-rates.js.map
|
|
@@ -20,8 +20,6 @@ const getExchangeRates = async () => {
|
|
|
20
20
|
.filter((e) => e.name.toLowerCase() === 'cube')[0]
|
|
21
21
|
?.elements[0]?.elements.map((element) => element.attributes));
|
|
22
22
|
};
|
|
23
|
-
// https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html
|
|
24
|
-
// CET = UTC + 1
|
|
25
23
|
const everyDayAtFour = later.parse.cron('0 15 * * *');
|
|
26
24
|
const baseCurrency = 'EUR';
|
|
27
25
|
const UpdateECBRates = {
|
|
@@ -93,4 +91,3 @@ if (xml2json) {
|
|
|
93
91
|
retries: 5,
|
|
94
92
|
});
|
|
95
93
|
}
|
|
96
|
-
//# sourceMappingURL=update-ecb-rates.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IWorkerAdapter } from '@unchainedshop/core';
|
|
1
|
+
import { type IWorkerAdapter } from '@unchainedshop/core';
|
|
2
2
|
export declare const UpdateTokenOwnership: IWorkerAdapter<void, void>;
|
|
3
3
|
export declare const RefreshTokens: IWorkerAdapter<void, any>;
|
|
4
|
-
//# sourceMappingURL=update-token-ownership.d.ts.map
|