@qonto/embed-sdk 0.64.0 → 0.64.2
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/auth-links/client/auth-links.client.d.ts.map +1 -1
- package/dist/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/cards/client/cards.client.d.ts +1 -1
- package/dist/cards/client/cards.client.d.ts.map +1 -1
- package/dist/common/analytics/analytics-tracker.d.ts +18 -2
- package/dist/common/analytics/analytics-tracker.d.ts.map +1 -1
- package/dist/common/analytics/analytics.constants.d.ts +18 -2
- package/dist/common/analytics/analytics.constants.d.ts.map +1 -1
- package/dist/index.server.d.ts +7 -1
- package/dist/index.server.d.ts.map +1 -1
- package/dist/index.umd.js +81 -81
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/property.js +1 -1
- package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/reactive-element.js +1 -1
- package/dist/node_modules/.pnpm/{lit-element@4.2.1 → lit-element@4.2.2}/node_modules/lit-element/lit-element.js +2 -2
- package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/lit-html.js +1 -1
- package/dist/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
- package/dist/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/organizations/index.d.ts +2 -2
- package/dist/organizations/index.server.d.ts +2 -2
- package/dist/payment-links/client/payment-links.client.d.ts.map +1 -1
- package/dist/payment-links/index.d.ts +2 -2
- package/dist/payment-links/index.server.d.ts +1 -1
- package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
- package/dist/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
- package/dist/server/auth-links/client/auth-links.client.d.ts.map +1 -1
- package/dist/server/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/server/cards/client/cards.client.d.ts +1 -1
- package/dist/server/cards/client/cards.client.d.ts.map +1 -1
- package/dist/server/common/analytics/analytics-tracker.d.ts +18 -2
- package/dist/server/common/analytics/analytics-tracker.d.ts.map +1 -1
- package/dist/server/common/analytics/analytics.constants.d.ts +18 -2
- package/dist/server/common/analytics/analytics.constants.d.ts.map +1 -1
- package/dist/server/index.server.d.ts +7 -1
- package/dist/server/index.server.d.ts.map +1 -1
- package/dist/server/index.server.umd.js +1 -1
- package/dist/server/mocks/handlers.d.ts.map +1 -1
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-connector@1.6.4/node_modules/@amplitude/analytics-connector/dist/analytics-connector.esm.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/config.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/language.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/session.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.5.8/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.6.5/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +1 -0
- package/dist/server/node_modules/.pnpm/@amplitude_plugin-web-vitals-browser@1.1.2/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -0
- package/dist/server/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js +1 -0
- package/dist/server/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
- package/dist/server/node_modules/.pnpm/web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js +1 -0
- package/dist/server/node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js +1 -0
- package/dist/server/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/server/organizations/index.d.ts +2 -2
- package/dist/server/organizations/index.server.d.ts +2 -2
- package/dist/server/payment-links/client/payment-links.client.d.ts.map +1 -1
- package/dist/server/payment-links/index.d.ts +2 -2
- package/dist/server/payment-links/index.server.d.ts +1 -1
- package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
- package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
- package/dist/server/src/auth-links/auth-links.js +1 -1
- package/dist/server/src/auth-links/index.server.js +1 -0
- package/dist/server/src/auth-links/server/auth-links.server.js +1 -0
- package/dist/server/src/beneficiaries/index.server.js +1 -0
- package/dist/server/src/beneficiaries/server/beneficiaries.server.js +1 -0
- package/dist/server/src/beneficiaries/shared/beneficiaries.api.js +1 -1
- package/dist/server/src/beneficiaries/shared/beneficiaries.serializer.js +1 -1
- package/dist/server/src/beneficiaries/shared/beneficiaries.validate.js +1 -1
- package/dist/server/src/cards/index.server.js +1 -0
- package/dist/server/src/cards/server/cards.server.js +1 -0
- package/dist/server/src/cards/shared/cards.api.js +1 -0
- package/dist/server/src/cards/shared/cards.serializer.js +1 -0
- package/dist/server/src/cards/shared/cards.types.js +1 -0
- package/dist/server/src/cards/shared/cards.validate.js +1 -0
- package/dist/server/src/common/analytics/amplitude-manager.js +1 -0
- package/dist/server/src/common/analytics/analytics-tracker.js +1 -0
- package/dist/server/src/common/analytics/analytics.constants.js +1 -0
- package/dist/server/src/common/logger/logger.js +1 -0
- package/dist/server/src/index.server.js +1 -1
- package/dist/server/src/organizations/index.server.js +1 -0
- package/dist/server/src/organizations/server/organizations.server.js +1 -0
- package/dist/server/src/organizations/shared/organizations.api.js +1 -0
- package/dist/server/src/organizations/shared/organizations.serializer.js +1 -0
- package/dist/server/src/payment-links/index.server.js +1 -0
- package/dist/server/src/payment-links/server/payment-links.server.js +1 -0
- package/dist/server/src/payment-links/shared/currency.validation.js +1 -0
- package/dist/server/src/payment-links/shared/payment-links.types.js +1 -0
- package/dist/server/src/payment-links/shared/payment-links.validate.js +1 -0
- package/dist/server/src/payment-links/shared/unit.validation.js +1 -0
- package/dist/server/src/sepa-transfers/bulk-transfers/server/bulk-transfers.server.js +1 -1
- package/dist/server/src/sepa-transfers/server/sepa-transfers.server.js +1 -1
- package/dist/server/src/transactions/index.server.js +1 -0
- package/dist/server/src/transactions/server/transactions.server.js +1 -0
- package/dist/server/src/transactions/shared/transactions.api.js +1 -0
- package/dist/server/src/transactions/shared/transactions.serializer.js +1 -0
- package/dist/server/src/transactions/shared/transactions.validation.js +1 -0
- package/dist/server/transactions/client/transactions.client.d.ts.map +1 -1
- package/dist/src/auth-links/client/auth-links.client.js +1 -1
- package/dist/src/beneficiaries/client/beneficiaries.client.js +1 -1
- package/dist/src/beneficiaries/shared/beneficiaries.api.js +1 -1
- package/dist/src/cards/client/cards.client.js +1 -1
- package/dist/src/cards/shared/cards.serializer.js +1 -1
- package/dist/src/common/analytics/analytics-tracker.js +1 -1
- package/dist/src/common/analytics/analytics.constants.js +1 -1
- package/dist/src/iframe/iframe-message-builder.js +1 -1
- package/dist/src/organizations/client/organizations.client.js +1 -1
- package/dist/src/payment-links/client/payment-links.client.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -1
- package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
- package/dist/src/transactions/client/transactions.client.js +1 -1
- package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.js +1 -1
- package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.styles.js +1 -1
- package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.js +1 -1
- package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.styles.js +1 -1
- package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.js +1 -1
- package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.js +1 -1
- package/dist/src/ui/customizable-components/button/qonto-button.js +1 -1
- package/dist/src/ui/customizable-components/button/qonto-button.styles.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-checkmark-rounded-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-clock-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-declined.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-error-filled.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-in-progress.js +1 -1
- package/dist/src/ui/customizable-components/icons/icon-warning.js +1 -1
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.js +1 -1
- package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-option.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-select-field.js +1 -1
- package/dist/src/ui/customizable-components/select-field/qonto-select-field.styles.js +1 -1
- package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.js +1 -1
- package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.styles.js +1 -1
- package/dist/src/ui/customizable-components/styles/component-styles/table-styles.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-body.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-body.styles.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-heading.js +1 -1
- package/dist/src/ui/customizable-components/text/qonto-text-heading.styles.js +1 -1
- package/dist/src/ui/customizable-components/text-field/qonto-text-field.js +1 -1
- package/dist/src/ui/customizable-components/text-field/qonto-text-field.styles.js +1 -1
- package/dist/src/ui/ui-elements/list-utils/list.utils.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.js +1 -1
- package/dist/src/ui/ui-elements/transaction-list/transaction-list.js +1 -1
- package/dist/src/ui/ui-elements/transfer-list/transfer-list.js +1 -1
- package/dist/transactions/client/transactions.client.d.ts.map +1 -1
- package/package.json +18 -18
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/css-tag.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/base.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/query.js +0 -0
- /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/state.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/async-directive.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive-helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/ref.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/unsafe-html.js +0 -0
- /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/static.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
- /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
- /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getPaymentLinkCreationFlowUrl as e}from"./server/payment-links.server.js";const r={getPaymentLinkCreationFlowUrl:e};export{r as paymentLinks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{request as t}from"../../auth-links/server/auth-links.server.js";import{AUTH_LINK_ACTIONS as n}from"../../common/constants.js";import{validateItems as r,validatePaymentLinkCreationFlowParams as s}from"../shared/payment-links.validate.js";const e=async({paymentLinkSettings:e,operationSettings:i})=>{const{items:o}=e;r(o);const a=s(e),m=await t({requestSettings:{action:n.PAYMENT_LINK_CREATE,callbackUrl:a},operationSettings:i}),c=new URLSearchParams({...o?{items:JSON.stringify(o)}:{}});return c.toString()?`${m.url}?${c.toString()}`:m.url};export{e as getPaymentLinkCreationFlowUrl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{InvalidParametersError as D}from"../../errors/InvalidParametersError.js";const N={AED:"AED",AUD:"AUD",BGN:"BGN",CAD:"CAD",CHF:"CHF",CNY:"CNY",CZK:"CZK",DKK:"DKK",EUR:"EUR",GBP:"GBP",GHS:"GHS",HKD:"HKD",HUF:"HUF",ILS:"ILS",INR:"INR",MXN:"MXN",NOK:"NOK",NZD:"NZD",PEN:"PEN",PLN:"PLN",RON:"RON",RSD:"RSD",SAR:"SAR",SEK:"SEK",SGD:"SGD",TRY:"TRY",USD:"USD",ZAR:"ZAR",ZMW:"ZMW"},r=r=>{if(!(D=>Object.values(N).includes(D))(r))throw new D(`currency ${r} is not valid, valid currencies are ${Object.values(N).join(", ")}`)};export{r as validateCurrency};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={GOOD:"good",SERVICE:"service"};export{o as LINK_TYPES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{validatePresenceOfRequiredParams as t,validateExpectedStringValues as e,validateExpectedNumericValues as r}from"../../validation/input-param-validation.js";import{validateCurrency as i}from"./currency.validation.js";import{LINK_TYPES as a}from"./payment-links.types.js";import{validateUnit as n}from"./unit.validation.js";import{InvalidParametersError as c}from"../../errors/InvalidParametersError.js";const l=[{name:"id"},{name:"title"},{name:"type"},{name:"quantity"},{name:"measureUnit"},{name:"unitPrice"},{name:"vatRate"}],o=[{name:"currency"},{name:"value"}];function m(a){if(!a||!Array.isArray(a))return[];a.forEach((a=>{t(a,l),t(a.unitPrice,o);const m=[...e({id:a.id,title:a.title,vatRate:a.vatRate,currency:a.unitPrice.currency,measureUnit:a.measureUnit,unitPrice:a.unitPrice.value,...a.description?{description:a.description}:{}}),...r({quantity:a.quantity})].flat();if(m.length>0)throw new c(m);u(a.type),i(a.unitPrice.currency),n(a.measureUnit)}))}const u=t=>{if(!Object.values(a).includes(t))throw new c(`type ${t} is not valid, valid types are ${Object.values(a).join(", ")}`)};function s(t){if(!t?.callbackUrl)throw new c("callbackUrl parameter is required for the payment link creation flow");if("string"!=typeof t.callbackUrl)throw new c("callbackUrl must be a string");if(""===t.callbackUrl.trim())throw new c("callbackUrl cannot be empty");return t.callbackUrl}export{m as validateItems,s as validatePaymentLinkCreationFlowParams,u as validateType};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{InvalidParametersError as e}from"../../errors/InvalidParametersError.js";const r={UNIT:"unit",HOUR:"hour",DAY:"day",MONTH:"month",GRAM:"gram",KILOGRAM:"kilogram",LITER:"liter",METER:"meter",SQUARE_METER:"square_meter",CUBIC_METER:"cubic_meter",AMPERE:"ampere",NUMBER_OF_ARTICLES:"number_of_articles",CENTIMETER:"centimeter",CUBIC_METER_PER_HOUR:"cubic_meter_per_hour",GIGAJOULE:"gigajoule",GIGAWATT:"gigawatt",GIGAWATT_HOUR:"gigawatt_hour",HALF_YEAR:"half_year",JOULE:"joule",KILOJOULE:"kilojoule",KILOVAR:"kilovar",KILOWATT:"kilowatt",KILOWATT_HOUR:"kilowatt_hour",MEGAJOULE:"megajoule",MEGAWATT:"megawatt",MEGAWATT_HOUR:"megawatt_hour",MILLIGRAM:"milligram",MILLILITER:"milliliter",MILLIMETER:"millimeter",MINUTE:"minute",PAIR:"pair",QUARTER:"quarter",SECOND:"second",SET:"set",TON:"ton",TWO_WEEK:"two_week",WATT_HOUR:"watt_hour",WEEK:"week",YEAR:"year"},t=t=>{if(!(e=>Object.values(r).includes(e))(t))throw new e(`unit ${t} is not valid, valid units are ${Object.values(r).join(", ")}`)};export{t as validateUnit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{serializePaginationResponse as n}from"../../../common/api-pagination/api-pagination.js";import"../../../common/auth/auth.js";import{validatePresenceOfAuthToken as s}from"../../../common/auth/auth.validate.js";import{VOP_DECISIONS as e}from"../../../common/constants.js";import{verifySepaPayees as a,createBulkTransfer as t,getBulkTransfer as o,getBulkTransfers as r}from"../shared/bulk-transfers.api.js";import{serializeToBulkVopVerificationResult as i,serializeBulkTransfer as c}from"../shared/bulk-transfers.serializer.js";import{validateCreateBulkTransferParams as m,validateBulkTransferParams as u}from"../shared/bulk-transfers.validate.js";import k from"../../../../node_modules/.pnpm/uuid@
|
|
1
|
+
import{serializePaginationResponse as n}from"../../../common/api-pagination/api-pagination.js";import"../../../common/auth/auth.js";import{validatePresenceOfAuthToken as s}from"../../../common/auth/auth.validate.js";import{VOP_DECISIONS as e}from"../../../common/constants.js";import{verifySepaPayees as a,createBulkTransfer as t,getBulkTransfer as o,getBulkTransfers as r}from"../shared/bulk-transfers.api.js";import{serializeToBulkVopVerificationResult as i,serializeBulkTransfer as c}from"../shared/bulk-transfers.serializer.js";import{validateCreateBulkTransferParams as m,validateBulkTransferParams as u}from"../shared/bulk-transfers.validate.js";import k from"../../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";async function f(e){const{accessToken:a,stagingToken:t,paginationSettings:o}=e?.operationSettings||{},i=a||s(),m=await r({accessToken:i,stagingToken:t,paginationSettings:o}),u=m.bulkTransfers?.map(c),k=n(m.meta);return{bulkTransfers:u,...k?{meta:k}:{}}}async function T({bulkTransferSettings:n,operationSettings:e}){const a=u(n?.bulkTransferId),{accessToken:t,stagingToken:r}=e||{},i=t||s(),m=await o({accessToken:i,stagingToken:r,bulkTransferId:a});return c(m)}async function*p({bulkTransferSettings:n,operationSettings:o}){const{accessToken:r,stagingToken:u,scaSessionToken:f,idempotencyKey:T}=o||{},p=r||s(),g=T||k(),l=m(n),d=new Map;for(const n of l.bulkTransfers){const s=n.beneficiary;if(s){const n=s.iban;n&&!d.has(n)&&d.set(n,{name:s.name,iban:n})}}const b=Array.from(d.values()),y=await a({sepaPayees:b,accessToken:p,stagingToken:u});if((yield y.requests.map(i))===e.REJECT)return;const S=await t({bulkTransfers:l.bulkTransfers,bankAccountId:l.bankAccountId,accessToken:p,stagingToken:u,scaSessionToken:f,idempotencyKey:g});return{bulkTransfer:c(S),meta:{idempotencyKey:g}}}export{p as createBulkTransfer,T as getBulkTransfer,f as getBulkTransfers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{request as e}from"../../auth-links/auth-links.js";import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as s}from"../../common/auth/auth.validate.js";import{VOP_DECISIONS as a,AUTH_LINK_ACTIONS as t}from"../../common/constants.js";import{cancelSepaTransfer as o,verifySepaPayee as r,createSepaTransfer as i,getSepaTransfer as c,getSepaTransfers as p}from"../shared/sepa-transfers.api.js";import{serializeToVopVerificationResult as f,serializeSepaTransfer as g}from"../shared/sepa-transfers.serializer.js";import{decorateUrlWithExtraParams as T,findBeneficiary as m}from"../shared/sepa-transfers.utils.js";import{validateGetSepaTransferCreationFlowLinkParams as k,validateCancelSepaTransferParams as u,validateTransferBeneficiaryParams as S,validateCreateSepaTransferParams as d,validateGetSepaTransferParams as l}from"../shared/sepa-transfers.validate.js";import y from"../../../node_modules/.pnpm/uuid@
|
|
1
|
+
import{request as e}from"../../auth-links/auth-links.js";import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as s}from"../../common/auth/auth.validate.js";import{VOP_DECISIONS as a,AUTH_LINK_ACTIONS as t}from"../../common/constants.js";import{cancelSepaTransfer as o,verifySepaPayee as r,createSepaTransfer as i,getSepaTransfer as c,getSepaTransfers as p}from"../shared/sepa-transfers.api.js";import{serializeToVopVerificationResult as f,serializeSepaTransfer as g}from"../shared/sepa-transfers.serializer.js";import{decorateUrlWithExtraParams as T,findBeneficiary as m}from"../shared/sepa-transfers.utils.js";import{validateGetSepaTransferCreationFlowLinkParams as k,validateCancelSepaTransferParams as u,validateTransferBeneficiaryParams as S,validateCreateSepaTransferParams as d,validateGetSepaTransferParams as l}from"../shared/sepa-transfers.validate.js";import y from"../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";async function h(e){const{accessToken:a,stagingToken:t,paginationSettings:o}=e?.operationSettings||{},r=a||s(),i=await p({accessToken:r,stagingToken:t,paginationSettings:o}),c=i.transfers.map(g),f=n(i.meta);return{transfers:c,...f?{meta:f}:{}}}async function j({sepaTransferSettings:e,operationSettings:n}){const a=l(e?.sepaTransferId),{accessToken:t,stagingToken:o}=n||{},r=t||s(),i=await c({sepaTransferId:a,accessToken:r,stagingToken:o});return g(i)}async function E({sepaTransferSettings:e,operationSettings:n}){const a=u(e?.sepaTransferId),{accessToken:t,stagingToken:r}=n||{},i=t||s();await o({sepaTransferId:a,accessToken:i,stagingToken:r})}async function*w({sepaTransferSettings:e,operationSettings:n}){const{accessToken:t,stagingToken:o,scaSessionToken:c,idempotencyKey:p}=n||{},T=t||s(),k=p||y();S(e);const u=e?.beneficiary?e.beneficiary:await m({sepaTransferSettings:e,operationSettings:n}),l={name:u.name,iban:u.iban},h=await r({sepaPayee:l,accessToken:T,stagingToken:o}),j=yield f(h);let E;if("string"==typeof j){if(j===a.REJECT)return}else{if(j.vopDecision===a.REJECT)return;E=j.sepaTransferSettings}const w={...e,...E};d(w);const b={...w,beneficiary:u},v=await i({transfer:b,vopProofToken:h.proof_token.token,accessToken:T,stagingToken:o,scaSessionToken:c,idempotencyKey:k});return{transfer:g(v),meta:{idempotencyKey:k}}}async function b({sepaTransferSettings:n,operationSettings:a}){const o=k(n),{accessToken:r,stagingToken:i}=a||{},c=r||s(),p=await e({requestSettings:{action:t.SEPA_TRANSFER_CREATE,callbackUrl:o},operationSettings:{stagingToken:i,accessToken:c}});return{...p,url:T(p.url,a)}}export{E as cancelSepaTransfer,w as createSepaTransfer,j as getSepaTransfer,b as getSepaTransferCreationFlowLink,h as getSepaTransfers};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getTransaction as r,getTransactions as s}from"./server/transactions.server.js";const t={getTransactions:s,getTransaction:r};export{t as transactions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{serializePaginationResponse as t}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as a}from"../../common/auth/auth.validate.js";import{getTransaction as n,getTransactions as s}from"../shared/transactions.api.js";import{serializeTransaction as o}from"../shared/transactions.serializer.js";import{validateGetTransactionParams as i}from"../shared/transactions.validation.js";async function r(n){const{accessToken:i,stagingToken:r,paginationSettings:e}=n?.operationSettings||{},c={...n?.transactionSettings||{},paginationSettings:e},g=i||a(),m=await s({...c,accessToken:g,stagingToken:r});return{transactions:m.transactions.map(o),meta:t(m.meta)}}async function e({transactionSettings:t,operationSettings:s}){const{accessToken:r,stagingToken:e}=s||{},{transactionId:c}=i(t),g=r||a(),m=await n({transactionId:c,accessToken:g,stagingToken:e});return o(m)}export{e as getTransaction,r as getTransactions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{buildPaginationParams as t}from"../../common/api-pagination/api-pagination.js";import{makeNetworkCall as n}from"../../common/network/network.js";const a="/v2/transactions";function e({bankAccountId:n,iban:e,status:o,updatedAtFrom:s,updatedAtTo:p,emittedAtFrom:i,emittedAtTo:d,settledAtFrom:c,settledAtTo:r,side:m,operationType:u,withAttachments:_,paginationSettings:g,accessToken:T,stagingToken:k}){const f={method:"GET",headers:{accessToken:T,stagingToken:k}},h=new URLSearchParams;n&&h.append("bank_account_id",n),e&&h.append("iban",e),o&&h.append("status",o),s&&h.append("updated_at_from",s),p&&h.append("updated_at_to",p),i&&h.append("emitted_at_from",i),d&&h.append("emitted_at_to",d),c&&h.append("settled_at_from",c),r&&h.append("settled_at_to",r),m&&h.append("side",m),u&&h.append("operation_type",u),void 0!==_&&h.append("with_attachments",String(_));const A=t(g);for(const[t,n]of A)h.append(t,n);const w=h.toString();return{path:`${a}${w?`?${w}`:""}`,options:f}}async function o(t){const a=e(t),{transactions:o,meta:s}=await n(a);return{transactions:o,meta:s}}function s({transactionId:t,accessToken:n,stagingToken:e}){return{path:`${a}/${t}`,options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}}async function p(t){const a=s(t),{transaction:e}=await n(a);return e}export{p as getTransaction,o as getTransactions,s as prepareGetTransactionCall,e as prepareGetTransactionsCall};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){return{transactionId:t.transaction_id,amount:t.amount,amountCents:t.amount_cents,settledBalance:t.settled_balance,settledBalanceCents:t.settled_balance_cents,attachmentIds:t.attachment_ids,localAmount:t.local_amount,localAmountCents:t.local_amount_cents,side:t.side,operationType:t.operation_type,currency:t.currency,localCurrency:t.local_currency,label:t.label,settledAt:new Date(t.settled_at),emittedAt:new Date(t.emitted_at),updatedAt:new Date(t.updated_at),status:t.status,note:t.note,reference:t.reference,vatAmount:t.vat_amount,vatAmountCents:t.vat_amount_cents,vatRate:t.vat_rate,initiatorId:t.initiator_id,labelIds:t.label_ids,attachmentLost:t.attachment_lost,attachmentRequired:t.attachment_required,cardLastDigits:t.card_last_digits,category:t.category,cashflowCategory:{name:t.cashflow_category?.name||""},cashflowSubcategory:{name:t.cashflow_subcategory?.name||""},id:t.id,subjectType:t.subject_type,...t.transfer?{transfer:{counterpartyAccountNumber:t.transfer.counterparty_account_number,counterpartyName:t.transfer.counterparty_name,counterpartyBic:t.transfer.counterparty_bic,counterpartyIban:t.transfer.counterparty_iban}}:{}}}export{t as serializeTransaction};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{InvalidParametersError as t}from"../../errors/InvalidParametersError.js";function r(r){if(!r)throw new t("transactionSettings parameter is required for the called function");if(!r.transactionId)throw new t("transactionSettings.transactionId parameter is required for the called function");if(r.transactionId&&"string"!=typeof r.transactionId)throw new t("transactionSettings.transactionId must be a string.");return r}export{r as validateGetTransactionParams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,eAAe,CACnC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,GACjE,OAAO,CAAC,uBAAuB,CAAC,CA8BlC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAyBlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as t}from"../../common/common.utils.js";import{validateClientOperationSettings as r}from"../../validation/operation-settings-validation.js";import{prepareAuthLinkRequest as e}from"../shared/auth-links.api.js";import{serializeAuthLink as i}from"../shared/auth-links.serializer.js";import{validateAuthLinkRequestSettings as n}from"../shared/auth-links.validate.js";async function s({requestSettings:s,operationSettings:a}){o.authLinksRequest(),n(s);const{proxyRequestFunction:c,proxyEndpointDescriptor:p,stagingToken:l}=r(a,'Client-side auth-links operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/auth-links/server" only in server-side/backend environments.'),m=e({stagingToken:l,action:s.action,callbackUrl:s.callbackUrl}),u=await t({proxyFunction:c,proxyEndpointDescriptor:p,networkCallDescriptor:m});return i(u.body)}export{s as request};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tracker as e}from"../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as i}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as n}from"../../common/auth/auth.validate.js";import{callProxyFunction as r}from"../../common/common.utils.js";import{ACTIONS as o}from"../../common/constants.js";import{buildRequestHeaders as t}from"../../common/network/network.js";import{validateClientOperationSettings as s,validateOperationSettingsParams as a}from"../../validation/operation-settings-validation.js";import{buildIframeUrl as c,createIframe as p}from"../../iframe/iframe-manager.js";import{prepareUntrustBeneficiaryCall as y,prepareUpdateBeneficiaryCall as d,prepareAddBeneficiaryCall as m,prepareGetBeneficiaryCall as b,prepareGetBeneficiariesCall as f}from"../shared/beneficiaries.api.js";import{serializeBeneficiary as u}from"../shared/beneficiaries.serializer.js";import{validateTrustBeneficiariesParams as x,validateUpdateBeneficiaryParams as l,validateAddBeneficiaryParams as k,validateGetBeneficiaryParams as v}from"../shared/beneficiaries.validate.js";async function g(n){e.beneficiariesList();const{proxyRequestFunction:o,proxyEndpointDescriptor:t,paginationSettings:a}=s(n?.operationSettings,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),c=f({paginationSettings:a}),p=await r({proxyFunction:o,proxyEndpointDescriptor:t,networkCallDescriptor:c}),y=p.body.beneficiaries.map((e=>u(e))),d=i(p.body.meta);return{beneficiaries:y,...d?{meta:d}:{}}}async function q({beneficiarySettings:i,operationSettings:n}){e.beneficiariesGet();const o=v(i?.beneficiaryId),{proxyRequestFunction:t,proxyEndpointDescriptor:a}=s(n,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),c=b({beneficiaryId:o}),p=await r({proxyFunction:t,proxyEndpointDescriptor:a,networkCallDescriptor:c});return u(p.body.beneficiary)}async function D({beneficiarySettings:i,operationSettings:n}){e.beneficiariesAdd();const o=k(i),{proxyRequestFunction:a,proxyEndpointDescriptor:c,idempotencyKey:p}=s(n,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),y=m({beneficiary:o,idempotencyKey:p});y.options.headers=t({...y.options.headers});const d=await r({proxyFunction:a,proxyEndpointDescriptor:c,networkCallDescriptor:y});return u(d.body.beneficiary)}async function E({beneficiarySettings:i,operationSettings:n}){e.beneficiariesUpdate();const o=l(i),{proxyRequestFunction:t,proxyEndpointDescriptor:a,idempotencyKey:c,mfaPreference:p}=s(n,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),y=d({beneficiaryParamsBeingEdited:o,idempotencyKey:c,mfaPreference:p}),m=await r({proxyFunction:t,proxyEndpointDescriptor:a,networkCallDescriptor:y});return u(m.body.beneficiary)}async function F({beneficiarySettings:i,operationSettings:r}){e.beneficiariesTrust();const{accessToken:t,uiParentElementId:s,debugMode:y}=a(r,{requiresUI:!0}),d=t||n(),m=x(i?.beneficiaryIds),b=c({accessToken:d,debugMode:y}),f=await p({parentElementId:s,iframeUrl:b});return(await f.postMessage({actionId:o.BENEFICIARIES_TRUST,actionData:{body:{beneficiaryIds:m}}})).beneficiaries}async function h({beneficiarySettings:i,operationSettings:n}){e.beneficiariesUntrust();const o=x(i?.beneficiaryIds),{proxyRequestFunction:t,proxyEndpointDescriptor:a}=s(n,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),c=y({beneficiaryIds:o});return(await r({proxyFunction:t,proxyEndpointDescriptor:a,networkCallDescriptor:c})).body.beneficiaries.map(u)}export{D as addBeneficiary,g as getBeneficiaries,q as getBeneficiary,F as trustBeneficiaries,h as untrustBeneficiaries,E as updateBeneficiary};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildPaginationParams as e}from"../../common/api-pagination/api-pagination.js";import{makeNetworkCall as n}from"../../common/network/network.js";import{serializeToNewBeneficiaryDataObject as i}from"./beneficiaries.serializer.js";import o from"../../../node_modules/.pnpm/uuid@
|
|
1
|
+
import{buildPaginationParams as e}from"../../common/api-pagination/api-pagination.js";import{makeNetworkCall as n}from"../../common/network/network.js";import{serializeToNewBeneficiaryDataObject as i}from"./beneficiaries.serializer.js";import o from"../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";const a="/v2/sepa/beneficiaries";function t({paginationSettings:n,accessToken:i,stagingToken:o}){const t={method:"GET",headers:{accessToken:i,stagingToken:o}},s=e(n),c=s.size?`?${s.toString()}`:"";return{path:`${a}${c}`,options:t}}async function s({paginationSettings:e,accessToken:i,stagingToken:o}){const a=t({paginationSettings:e,accessToken:i,stagingToken:o}),{beneficiaries:s,meta:c}=await n(a);return{beneficiaries:s,meta:c}}function c({beneficiaryId:e,accessToken:n,stagingToken:i}){return{path:`${a}/${e}`,options:{method:"GET",headers:{accessToken:n,stagingToken:i}}}}async function r({accessToken:e,stagingToken:i,beneficiaryId:o}){const a=c({beneficiaryId:o,accessToken:e,stagingToken:i}),{beneficiary:t}=await n(a);return t}function g({beneficiary:e,accessToken:n,stagingToken:t,idempotencyKey:s=o()}){return{path:a,options:{method:"POST",headers:{accessToken:n,stagingToken:t,idempotencyKey:s},body:{beneficiary:i(e)}}}}function T({beneficiaryIds:e,accessToken:n,stagingToken:i}){return{path:`${a}/untrust`,options:{method:"PATCH",headers:{accessToken:n,stagingToken:i},body:{ids:e}}}}function m({beneficiaryParamsBeingEdited:e,accessToken:n,stagingToken:i,idempotencyKey:o,mfaPreference:t}){const{name:s,email:c,activityTag:r}=e,g={method:"PATCH",headers:{accessToken:n,stagingToken:i,idempotencyKey:o,mfaPreference:t},body:{beneficiary:{name:s,email:c,activity_tag:r}}};return{path:`${a}/${e.id}`,options:g}}export{s as getBeneficiaries,r as getBeneficiary,g as prepareAddBeneficiaryCall,t as prepareGetBeneficiariesCall,c as prepareGetBeneficiaryCall,T as prepareUntrustBeneficiaryCall,m as prepareUpdateBeneficiaryCall};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tracker as e}from"../../common/analytics/analytics-tracker.js";import{authManager as r}from"../../common/auth/auth.js";import{validatePresenceOfAuthToken as t}from"../../common/auth/auth.validate.js";import{callProxyFunction as n}from"../../common/common.utils.js";import{validateOperationSettingsParams as o,validateClientOperationSettings as i}from"../../validation/operation-settings-validation.js";import{InvalidParametersError as s}from"../../errors/InvalidParametersError.js";import{buildIframeUrl as a,createIframe as d}from"../../iframe/iframe-manager.js";import{prepareGetCardIframeUrl as c,prepareGetCardCall as p,prepareGetCardsCall as m}from"../shared/cards.api.js";import{createEmbedUI as u}from"../shared/cards.helper.js";import{serializeUnlockCardPayload as g,serializeCard as l,serializeOrderCardPayload as y}from"../shared/cards.serializer.js";import{validateDisplayCardParams as f,validateUnlockCardParams as k,validateOrderCardParams as h,validateGetCardParams as w}from"../shared/cards.validate.js";async function b(r){e.cardsList();const t=r?.cardSettings?.membershipId;if(t&&"string"!=typeof t)throw new s("membershipId must be a string");const{proxyRequestFunction:o,proxyEndpointDescriptor:a,stagingToken:d}=i(r?.operationSettings,'Client-side card operations require either proxyEndpointDescriptor or proxyRequestFunction. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/cards/server" only in server-side/backend environments.'),c=m({membershipId:t,stagingToken:d});return(await n({proxyFunction:o,proxyEndpointDescriptor:a,networkCallDescriptor:c})).body.cards.map((e=>l(e)))}async function I({cardSettings:r,operationSettings:t}){e.cardsGet(),w(r);const o=r.cardId,{proxyRequestFunction:a,proxyEndpointDescriptor:d,stagingToken:c}=i(t,'Client-side card operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/cards/server" only in server-side/backend environments.'),m=p({cardId:o,stagingToken:c}),u=(await n({proxyFunction:a,proxyEndpointDescriptor:d,networkCallDescriptor:m})).body.cards;if(Array.isArray(u)&&u.length>0)return l(u[0]);throw new s("Unable to retrieve card data")}async function x(n){e.cardsOrder();const o=t(),{uiParentElementId:i,debugMode:c}=n.operationSettings;if(!i)throw new s("uiParentElementId is required");h(n.cardSettings);const p=a({accessToken:o,stagingToken:r.getStagingToken()||void 0,debugMode:c}),m=await d({iframeUrl:p,parentElementId:i}),u=y(n.cardSettings),g=await m.postMessage(u);return m.destroy(),l(g)}async function E(n){e.cardsUnlock();const o=t(),{uiParentElementId:i,debugMode:c}=n.operationSettings;if(!i)throw new s("uiParentElementId is required");k(n.cardSettings);const p=a({accessToken:o,stagingToken:r.getStagingToken()||void 0,debugMode:c}),m=await d({iframeUrl:p,parentElementId:i}),u=g(n),y=await m.postMessage(u);return m.destroy(),l(y)}async function S(r){e.cardsDisplay();const{uiParentElementId:i,accessToken:a,stagingToken:d,debugMode:p,mfaPreference:m,proxyRequestFunction:g,proxyEndpointDescriptor:l}=o(r.operationSettings,{requiresUI:!0});if(!i)throw new s("uiParentElementId is required");if(f(r.cardSettings),g||l){const e=c({stagingToken:d}),t=(await n({proxyFunction:g,proxyEndpointDescriptor:l,networkCallDescriptor:e})).body.embed_auth_link;return u({decorationParams:r.cardSettings,operationSettings:{uiParentElementId:i,debugMode:p},cardIframeUrl:t.url})}{const e=a||t(),{getCardIframeURL:n}=await import("../shared/cards.api.js"),o=await n({...r.cardSettings,accessToken:e,stagingToken:d});return u({decorationParams:r.cardSettings,operationSettings:{uiParentElementId:i,debugMode:p},cardIframeUrl:o.url})}}export{S as displayCard,I as getCard,b as getCards,x as orderCard,E as unlockCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isVirtualCardOrderSettings as t}from"./cards.helper.js";import{ACTIONS as i}from"../../common/constants.js";import{CardCategories as a}from"./cards.types.js";import n from"../../../node_modules/.pnpm/uuid@
|
|
1
|
+
import{isVirtualCardOrderSettings as t}from"./cards.helper.js";import{ACTIONS as i}from"../../common/constants.js";import{CardCategories as a}from"./cards.types.js";import n from"../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";function e(a){return t(a)?function(t){const a=s(t.categories);return{actionId:i.CARD_ORDER,actionData:{idempotencyKey:n(),body:{card:{payment_monthly_limit:t.monthlyLimit,payment_daily_limit:t.dailyLimit,payment_daily_limit_option:t.hasDailyLimit,payment_transaction_limit:t.transactionLimit,payment_transaction_limit_option:t.hasTransactionLimit,active_days:t.activeDays||[],holder_id:t.membershipId,organization_id:t.organizationId,bank_account_id:t.bankAccountId,categories:a,card_level:t.cardLevel}}}}}(a):function(t){const a=s(t.categories);return{actionId:i.CARD_ORDER,actionData:{idempotencyKey:n(),body:{card:{payment_monthly_limit:t.monthlyLimit,payment_daily_limit:t.dailyLimit,payment_daily_limit_option:t.hasDailyLimit,payment_transaction_limit:t.transactionLimit,payment_transaction_limit_option:t.hasTransactionLimit,active_days:t.activeDays||[],holder_id:t.membershipId,organization_id:t.organizationId,bank_account_id:t.bankAccountId,categories:a,card_level:t.cardLevel,card_design:t.cardDesign,..."plus"===t.cardLevel&&{type_of_print:t.typeOfPrint},ship_to_business_address:t.shipToBusiness,atm_option:t.hasAtmOption,nfc_option:t.hasNfcOption,foreign_option:t.hasForeignPaymentOption,online_option:t.hasOnlinePaymentOption,atm_daily_limit:t.atmDailyLimit,atm_monthly_limit:t.atmMonthlyLimit,...!t.shipToBusiness&&{address:{contact_name:t.address?.contactName,first_line:t.address?.firstLine,second_line:t.address?.secondLine,third_line:t.address?.thirdLine,zipcode:t.address?.zipCode,city:t.address?.city,country:t.address?.country}}}}}}}(a)}function o(t){return{id:t.id,nickname:t.nickname,embossedName:t.embossed_name,status:t.status,maskPan:t.mask_pan,expMonth:parseInt(t.exp_month,10),expYear:parseInt(t.exp_year,10),lastActivityAt:new Date(t.last_activity_at),lastDigits:t.last_digits,shipToBusiness:t.ship_to_business,atmOption:t.atm_option,atmDailyLimitOption:t.atm_daily_limit_option,nfcOption:t.nfc_option,onlineOption:t.online_option,foreignOption:t.foreign_option,atmMonthlyLimit:t.atm_monthly_limit,atmMonthlySpent:t.atm_monthly_spent,atmDailyLimit:t.atm_daily_limit,atmDailySpent:t.atm_daily_spent,paymentMonthlyLimit:t.payment_monthly_limit,paymentMonthlySpent:t.payment_monthly_spent,paymentDailyLimit:t.payment_daily_limit,paymentDailySpent:t.payment_daily_spent,paymentDailyLimitOption:t.payment_daily_limit_option,paymentTransactionLimit:t.payment_transaction_limit,paymentTransactionLimitOption:t.payment_transaction_limit_option,activeDays:t.active_days,holderId:t.holder_id,bankAccountId:t.bank_account_id,organizationId:t.organization_id,updatedAt:new Date(t.updated_at),createdAt:new Date(t.created_at),shippedAt:new Date(t.shipped_at),cardType:t.card_type,cardLevel:t.card_level,paymentLifespanLimit:t.payment_lifespan_limit,paymentLifespanSpent:t.payment_lifespan_spent,preExpiresAt:new Date(t.pre_expires_at),categories:t.categories,renewed:t.renewed,renewal:t.renewal,...t.parent_card_summary&&{parentCardSummary:{id:t.parent_card_summary.id,lastDigits:t.parent_card_summary.last_digits}},hadOperation:t.had_operation,hadPinOperation:t.had_pin_operation,cardDesign:t.card_design,typeOfPrint:t.type_of_print,upsold:t.upsold,upsell:t.upsell,discardOn:new Date(t.discard_on),reordered:t.reordered}}function s(t){const i=Object.values(a);return(t||[]).filter((t=>i.includes(t)))}function d(t){return{actionId:i.CARD_UNLOCK,actionData:{body:{cardId:t.cardSettings.cardId}}}}export{s as filterValidCategories,o as serializeCard,e as serializeOrderCardPayload,d as serializeUnlockCardPayload};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{amplitudeManager as e}from"./amplitude-manager.js";import{ANALYTICS_EVENTS as
|
|
1
|
+
import{amplitudeManager as e}from"./amplitude-manager.js";import{ANALYTICS_EVENTS as E}from"./analytics.constants.js";function a(){e.initialize()}function s(){e.reset()}function T(E,a){e.track(E,a)}const A={cardsList:e=>{T(E.CARDS_LIST,e)},cardsGet:e=>{T(E.CARDS_GET,e)},cardsOrder:e=>{T(E.CARDS_ORDER,e)},cardsUnlock:e=>{T(E.CARDS_UNLOCK,e)},cardsDisplay:e=>{T(E.CARDS_DISPLAY,e)},beneficiariesList:e=>{T(E.BENEFICIARIES_LIST,e)},beneficiariesGet:e=>{T(E.BENEFICIARIES_GET,e)},beneficiariesAdd:e=>{T(E.BENEFICIARIES_ADD,e)},beneficiariesUpdate:e=>{T(E.BENEFICIARIES_UPDATE,e)},beneficiariesTrust:e=>{T(E.BENEFICIARIES_TRUST,e)},beneficiariesUntrust:e=>{T(E.BENEFICIARIES_UNTRUST,e)},sepaTransferList:e=>{T(E.SEPA_TRANSFER_LIST,e)},sepaTransferGet:e=>{T(E.SEPA_TRANSFER_GET,e)},sepaTransferCreate:e=>{T(E.SEPA_TRANSFER_CREATE,e)},sepaTransferCancel:e=>{T(E.SEPA_TRANSFER_CANCEL,e)},sepaTransferCreationFlowLink:e=>{T(E.SEPA_TRANSFER_CREATION_FLOW_LINK,e)},sepaTransferBulkList:e=>{T(E.SEPA_TRANSFER_BULK_LIST,e)},sepaTransferBulkGet:e=>{T(E.SEPA_TRANSFER_BULK_GET,e)},sepaTransferBulkCreate:e=>{T(E.SEPA_TRANSFER_BULK_CREATE,e)},transactionsList:e=>{T(E.TRANSACTIONS_LIST,e)},transactionsGet:e=>{T(E.TRANSACTIONS_GET,e)},organizationsList:e=>{T(E.ORGANIZATIONS_LIST,e)},organizationsBankAccounts:e=>{T(E.ORGANIZATIONS_BANK_ACCOUNTS,e)},paymentLinksCreate:e=>{T(E.PAYMENT_LINKS_CREATE,e)},paymentLinksRedirect:e=>{T(E.PAYMENT_LINKS_REDIRECT,e)},authLinksRequest:e=>{T(E.AUTH_LINKS_REQUEST,e)},uiElementCreated:(e,a)=>{T(E.UI_ELEMENT_CREATED,{uiElementType:e,...a})}};export{a as initialize,s as reset,T as trackEvent,A as tracker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const E={SDK_INITIALIZED:"SDK Initialized",CARDS_LIST:"Cards List",
|
|
1
|
+
const E={SDK_INITIALIZED:"SDK Initialized",CARDS_LIST:"Cards List",CARDS_GET:"Cards Get",CARDS_ORDER:"Cards Order Virtual",CARDS_UNLOCK:"Cards Unlock",CARDS_DISPLAY:"Cards Display",BENEFICIARIES_LIST:"Beneficiaries List",BENEFICIARIES_GET:"Beneficiaries Get",BENEFICIARIES_ADD:"Beneficiaries Add",BENEFICIARIES_UPDATE:"Beneficiaries Update",BENEFICIARIES_TRUST:"Beneficiaries Trust",BENEFICIARIES_UNTRUST:"Beneficiaries Untrust",SEPA_TRANSFER_LIST:"SEPA Transfer List",SEPA_TRANSFER_GET:"SEPA Transfer Get",SEPA_TRANSFER_CREATE:"SEPA Transfer Create",SEPA_TRANSFER_CANCEL:"SEPA Transfer Cancel",SEPA_TRANSFER_CREATION_FLOW_LINK:"SEPA Transfer Creation Flow Link",SEPA_TRANSFER_BULK_LIST:"SEPA Transfer Bulk List",SEPA_TRANSFER_BULK_GET:"SEPA Transfer Bulk Get",SEPA_TRANSFER_BULK_CREATE:"SEPA Transfer Bulk Create",TRANSACTIONS_LIST:"Transactions List",TRANSACTIONS_GET:"Transactions Get",ORGANIZATIONS_LIST:"Organizations List",ORGANIZATIONS_BANK_ACCOUNTS:"Organizations Bank Accounts",PAYMENT_LINKS_CREATE:"Payment Links Create",PAYMENT_LINKS_REDIRECT:"Payment Links Redirect",AUTH_LINKS_REQUEST:"Auth Links Request",UI_ELEMENT_CREATED:"UI Element Created"};export{E as ANALYTICS_EVENTS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{operationSettingsManager as e}from"../common/operation-settings/operation-settings.js";import o from"../../node_modules/.pnpm/uuid@
|
|
1
|
+
import{operationSettingsManager as e}from"../common/operation-settings/operation-settings.js";import o from"../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";function t({actionId:t,actionData:n}){const i=e.getMFAPreference();return{actionId:t,actionData:{...n,scaPreference:n.scaPreference||i,idempotencyKey:n.idempotencyKey||o()}}}export{t as buildIframeMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as n}from"../../common/common.utils.js";import{validateClientOperationSettings as t}from"../../validation/operation-settings-validation.js";import{prepareGetBankAccounts as i,prepareGetOrganization as r}from"../shared/organizations.api.js";import{serializeBankAccount as e,serializeOrganization as s}from"../shared/organizations.serializer.js";const a=async({operationSettings:i})=>{o.organizationsList();const{stagingToken:e,proxyRequestFunction:a,proxyEndpointDescriptor:p}=t(i,"Client-side organizations operations require either proxyEndpointDescriptor or proxyRequestFunction."),c=r({stagingToken:e}),g=await n({proxyFunction:a,proxyEndpointDescriptor:p,networkCallDescriptor:c});return s(g.body.organization)},p=async({operationSettings:r})=>{o.organizationsBankAccounts();const{stagingToken:s,proxyRequestFunction:a,proxyEndpointDescriptor:p}=t(r,"Client-side organizations operations require either proxyEndpointDescriptor or proxyRequestFunction."),c=i({stagingToken:s});return(await n({proxyFunction:a,proxyEndpointDescriptor:p,networkCallDescriptor:c})).body.bank_accounts.map(e)};export{p as getBankAccounts,a as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{authLinks as t}from"../../auth-links/index.js";import{
|
|
1
|
+
import{authLinks as t}from"../../auth-links/index.js";import{tracker as e}from"../../common/analytics/analytics-tracker.js";import{AUTH_LINK_ACTIONS as n}from"../../common/constants.js";import{validateClientOperationSettings as i}from"../../validation/operation-settings-validation.js";import{validateItems as o,validatePaymentLinkCreationFlowParams as r}from"../shared/payment-links.validate.js";const s=async({paymentLinkSettings:s,operationSettings:a})=>{e.paymentLinksCreate(),i(a,'Client-side payment link operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/payment-links/server" only in server-side/backend environments.');const{items:m}=s;o(m);const p=r(s),c=await t.request({requestSettings:{action:n.PAYMENT_LINK_CREATE,callbackUrl:p},operationSettings:a}),l=new URLSearchParams({...m?{items:JSON.stringify(m)}:{}});return l.toString()?`${c.url}?${l.toString()}`:c.url},a=async({paymentLinkSettings:t,operationSettings:n})=>{e.paymentLinksRedirect();const i=await s({paymentLinkSettings:t,operationSettings:n});window.location.href=i};export{s as getPaymentLinkCreationFlowUrl,a as redirectToPaymentLinkCreationFlow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tracker as e}from"../../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as r}from"../../../common/api-pagination/api-pagination.js";import{authManager as n}from"../../../common/auth/auth.js";import{callProxyFunction as o}from"../../../common/common.utils.js";import{VOP_DECISIONS as t}from"../../../common/constants.js";import{isRunningInBrowser as s}from"../../../common/runtime/runtime.validation.js";import{validateClientOperationSettings as i}from"../../../validation/operation-settings-validation.js";import{InvalidRuntimeError as a,RUNTIME_ENVIRONMENT as p}from"../../../errors/InvalidRuntimeError.js";import{prepareCreateBulkTransferCall as c,prepareGetBulkTransferCall as u,prepareGetBulkTransfersCall as m,prepareVerifySepaPayeesCall as d}from"../shared/bulk-transfers.api.js";import{serializeToBulkVopVerificationResult as y,serializeBulkTransfer as l}from"../shared/bulk-transfers.serializer.js";import{validateCreateBulkTransferParams as f,validateBulkTransferParams as k}from"../shared/bulk-transfers.validate.js";import b from"../../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";async function x(n){e.sepaTransferBulkList();const{proxyRequestFunction:t,proxyEndpointDescriptor:s,paginationSettings:a}=i(n?.operationSettings,'Client-side bulk transfer operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/bulk-transfers/server" only in server-side/backend environments.'),p=m({paginationSettings:a}),c=await o({proxyFunction:t,proxyEndpointDescriptor:s,networkCallDescriptor:p}),u=c.body.bulk_transfers.map(l),d=r(c.body.meta);return{bulkTransfers:u,...d?{meta:d}:{}}}async function v({bulkTransferSettings:r,operationSettings:n}){e.sepaTransferBulkGet();const t=k(r?.bulkTransferId),{proxyRequestFunction:s,proxyEndpointDescriptor:a}=i(n,'Client-side bulk transfer operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/bulk-transfers/server" only in server-side/backend environments.'),p=u({bulkTransferId:t}),c=await o({proxyFunction:s,proxyEndpointDescriptor:a,networkCallDescriptor:p});return l(c.body.bulk_transfer)}async function*g({bulkTransferSettings:r,operationSettings:u}){e.sepaTransferBulkCreate();const{proxyRequestFunction:m,proxyEndpointDescriptor:k}=i(u,'Client-side bulk transfer operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/bulk-transfers/server" only in server-side/backend environments.');if(!s())throw new a(p.BROWSER);const x=n.getStagingToken(),v=u?.idempotencyKey||b();f(r);const g=new Map;for(const e of r.bulkTransfers){const r=e.beneficiary.iban;r&&!g.has(r)&&g.set(r,{name:e.beneficiary.name,iban:r})}const D=Array.from(g.values()),E=await async function({sepaPayees:e,proxyRequestFunction:r,proxyEndpointDescriptor:n}){const t=d({sepaPayees:e});return(await o({proxyFunction:r,proxyEndpointDescriptor:n,networkCallDescriptor:t})).body}({sepaPayees:D,proxyRequestFunction:m,proxyEndpointDescriptor:k});if((yield E.requests.map(y))===t.REJECT)return;const q=c({bulkTransfers:r.bulkTransfers,bankAccountId:r.bankAccountId,stagingToken:x||void 0,idempotencyKey:v}),w=(await o({proxyFunction:m,proxyEndpointDescriptor:k,networkCallDescriptor:q})).body.bulk_transfer;return{bulkTransfer:l(w),meta:{idempotencyKey:v}}}export{g as createBulkTransfer,v as getBulkTransfer,x as getBulkTransfers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{authLinks as e}from"../../auth-links/index.js";import{
|
|
1
|
+
import{authLinks as e}from"../../auth-links/index.js";import{tracker as r}from"../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as o}from"../../common/api-pagination/api-pagination.js";import{authManager as n}from"../../common/auth/auth.js";import{callProxyFunction as t}from"../../common/common.utils.js";import{VOP_DECISIONS as s,HTTP_CODES as i,AUTH_LINK_ACTIONS as a}from"../../common/constants.js";import{isRunningInBrowser as p}from"../../common/runtime/runtime.validation.js";import{validateClientOperationSettings as c}from"../../validation/operation-settings-validation.js";import{EmbedApiError as d}from"../../errors/EmbedApiError.js";import{InvalidParametersError as u}from"../../errors/InvalidParametersError.js";import{InvalidRuntimeError as m,RUNTIME_ENVIRONMENT as y}from"../../errors/InvalidRuntimeError.js";import{serializePreconditionRequiredResponse as f}from"../../sca/sca.serializer.js";import{prepareCreateSepaTransferCall as l,prepareCancelSepaTransferCall as x,prepareGetSepaTransferCall as k,prepareGetSepaTransfersCall as E,prepareVerifySepaPayeeCall as g}from"../shared/sepa-transfers.api.js";import{serializeToVopVerificationResult as v,serializeSepaTransfer as b}from"../shared/sepa-transfers.serializer.js";import{findBeneficiary as w,createSepaTransferScaElement as q,waitForSepaTransferScaResult as D,decorateUrlWithExtraParams as S}from"../shared/sepa-transfers.utils.js";import{validateTransferBeneficiaryParams as T,validateCreateSepaTransferParams as F,validateGetSepaTransferCreationFlowLinkParams as R,validateCancelSepaTransferParams as h,validateGetSepaTransferParams as C}from"../shared/sepa-transfers.validate.js";import"../../ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js";import j from"../../../node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js";async function I(e){r.sepaTransferList();const{proxyRequestFunction:n,proxyEndpointDescriptor:s,paginationSettings:i}=c(e?.operationSettings,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/server" only in server-side/backend environments.'),a=E({paginationSettings:i}),p=await t({proxyFunction:n,proxyEndpointDescriptor:s,networkCallDescriptor:a}),d=p.body.transfers.map(b),u=o(p.body.meta);return{transfers:d,...u?{meta:u}:{}}}async function P({sepaTransferSettings:e,operationSettings:o}){r.sepaTransferGet();const n=C(e?.sepaTransferId),{proxyRequestFunction:s,proxyEndpointDescriptor:i}=c(o,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/server" only in server-side/backend environments.'),a=k({sepaTransferId:n}),p=await t({proxyFunction:s,proxyEndpointDescriptor:i,networkCallDescriptor:a});return b(p.body.transfer)}async function*U({sepaTransferSettings:e,operationSettings:o}){r.sepaTransferCreate();const{proxyRequestFunction:a,proxyEndpointDescriptor:x,uiParentElementId:k,locale:E}=c(o),S=n.getStagingToken(),R=o?.idempotencyKey||j();let h;T(e);const C=await w({sepaTransferSettings:e,operationSettings:o}),I={name:C.name,iban:C.iban},P=await async function({sepaPayee:e,operationSettings:r}){const{proxyRequestFunction:o,proxyEndpointDescriptor:n}=c(r,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/server" only in server-side/backend environments.'),s=g({sepaPayee:e}),i=await t({proxyFunction:o,proxyEndpointDescriptor:n,networkCallDescriptor:s});return i.body}({sepaPayee:I,operationSettings:o}),U=yield v(P);let _;if("string"==typeof U){if(U===s.REJECT)return}else{if(U.vopDecision===s.REJECT)return;_=U.sepaTransferSettings}const A={...e,..._};F(A);const K={...A,beneficiary:C};if(K.beneficiary?.trusted){const e=l({transfer:K,vopProofToken:P.proof_token.token,idempotencyKey:R});h=(await t({proxyFunction:a,proxyEndpointDescriptor:x,networkCallDescriptor:e})).body.transfer}else{if(!p())throw new m(y.BROWSER);if(!k)throw new u("operationSettings.uiParentElementId is required for creating transfers to untrusted beneficiaries. This operation requires UI interaction for SCA.");const e=l({transfer:K,vopProofToken:P.proof_token.token,stagingToken:S||void 0,idempotencyKey:R});let r;try{h=(await t({proxyFunction:a,proxyEndpointDescriptor:x,networkCallDescriptor:e})).body.transfer}catch(e){if(!(e instanceof d&&e.code===i.PRECONDITION_REQUIRED))throw e;r=f(e.data.body).scaSessionToken}const o=q({networkCallDescriptor:e,scaSessionToken:r,operationSettings:{uiParentElementId:k,proxyRequestFunction:a,locale:E}});try{h=await D(o)}finally{o.remove()}}return{transfer:b(h),meta:{idempotencyKey:R}}}async function _({sepaTransferSettings:e,operationSettings:o}){r.sepaTransferCancel();const n=h(e?.sepaTransferId),{proxyRequestFunction:s,proxyEndpointDescriptor:i}=c(o,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/server" only in server-side/backend environments.'),a=x({sepaTransferId:n});await t({proxyFunction:s,proxyEndpointDescriptor:i,networkCallDescriptor:a})}async function A({sepaTransferSettings:o,operationSettings:n}){r.sepaTransferCreationFlowLink();const t=R(o),{proxyRequestFunction:s,proxyEndpointDescriptor:i}=c(n,'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/sepa-transfers/server" only in server-side/backend environments.'),p=await e.request({requestSettings:{action:a.SEPA_TRANSFER_CREATE,callbackUrl:t},operationSettings:{proxyRequestFunction:s,proxyEndpointDescriptor:i}});return{...p,url:S(p.url,n)}}export{_ as cancelSepaTransfer,U as createSepaTransfer,P as getSepaTransfer,A as getSepaTransferCreationFlowLink,I as getSepaTransfers};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import{callProxyFunction as
|
|
1
|
+
import{tracker as t}from"../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import{callProxyFunction as o}from"../../common/common.utils.js";import{validateClientOperationSettings as r}from"../../validation/operation-settings-validation.js";import{prepareGetTransactionsCall as i,prepareGetTransactionCall as e}from"../shared/transactions.api.js";import{serializeTransaction as s}from"../shared/transactions.serializer.js";import{validateGetTransactionParams as a}from"../shared/transactions.validation.js";async function c(e){t.transactionsList();const{proxyRequestFunction:a,proxyEndpointDescriptor:c,paginationSettings:p}=r(e?.operationSettings||{},'Client-side transaction operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/transactions/server" only in server-side/backend environments.'),m={...e?.transactionSettings||{},paginationSettings:p},d=i(m),y=await o({proxyFunction:a,proxyEndpointDescriptor:c,networkCallDescriptor:d});return{transactions:y.body.transactions.map(s),meta:n(y.body.meta)}}async function p({transactionSettings:n,operationSettings:i}){t.transactionsGet();const{proxyRequestFunction:c,proxyEndpointDescriptor:p}=r(i||{},'Client-side transaction operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/transactions/server" only in server-side/backend environments.'),{transactionId:m}=a(n),d=e({transactionId:m}),y=await o({proxyFunction:c,proxyEndpointDescriptor:p,networkCallDescriptor:d});return s(y.body.transaction)}export{p as getTransaction,c as getTransactions};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as s}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{qontoAmountFieldStyles as o}from"./qonto-amount-field.styles.js";import{formatAmount as r,parseAmount as d}from"./qonto-amount-field.utils.js";import"../styles/styles.css.js";let u=class extends s{constructor(){super(...arguments),this.id="",this.label="",this.currency="EUR",this.placeholder="0.00",this.disabled=!1,this.locale="en",this._value=0,this.error=!1,this.errorMessage="",this.displayValue="",this.isFocused=!1,this.decimalPlaces=2}get value(){return this._value}set value(e){const t="number"==typeof e?e:Number(e);this._value=isNaN(t)?0:t,this.requestUpdate("value")}get hasValue(){return 0!==this.value}get hasError(){return this.error||this.errorMessage.length>0}connectedCallback(){super.connectedCallback(),this.updateDisplayValue()}updated(e){(e.has("value")||e.has("locale"))&&this.updateDisplayValue()}updateDisplayValue(){this.isFocused||(this.displayValue=r(this.value,this.locale,this.decimalPlaces))}showRawValueForEditing(){this.displayValue=0===this.value?"":this.value.toFixed(this.decimalPlaces)}handleFocus(){this.isFocused=!0,this.showRawValueForEditing()}handleBlur(){this.isFocused=!1,this.updateDisplayValue()}handleInput(e){const t=e.target.value;this.value=d(t),this.displayValue=t,this.dispatchEvent(new CustomEvent("input",{detail:{value:this.value},bubbles:!0,composed:!0}))}handleChange(e){const t=e.target.value;this.value=d(t),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0}))}render(){return t`
|
|
2
2
|
<div data-amount-field-wrapper data-error="${this.hasError}">
|
|
3
3
|
${this.label?t`<label data-label for=${this.id}>${this.label}</label>`:null}
|
|
4
4
|
<div data-field>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const e=o`
|
|
2
2
|
:host {
|
|
3
3
|
font-family: var(--qonto-embed-font-family);
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import"../styles/styles.css.js";import{qontoBadgeStatusStyles as s}from"./qonto-badge-status.styles.js";import{iconCheckmarkRoundedFilled as r}from"../icons/icon-checkmark-rounded-filled.js";import{iconClockFilled as n}from"../icons/icon-clock-filled.js";import{iconDeclined as m}from"../icons/icon-declined.js";import{iconErrorFilled as d}from"../icons/icon-error-filled.js";import{iconInProgress as p}from"../icons/icon-in-progress.js";import{iconWarning as c}from"../icons/icon-warning.js";const a={ERROR:"error",INACTIVE:"inactive",IN_PROGRESS:"in-progress",VALIDATED:"validated",WAITING:"waiting",DECLINED:"declined"},u={error:d,inactive:null,"in-progress":p,validated:r,waiting:n,warning:c,declined:m};let _=class extends o{constructor(){super(...arguments),this.level="waiting"}render(){return t`<span data-level="${this.level}">
|
|
2
2
|
${u[this.level]}
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</span>`}};_.styles=s,e([i({type:String})],_.prototype,"level",void 0),_=e([l("qonto-badge-status")],_);export{a as BADGE_LEVELS,_ as QontoBadgeStatus};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const e=o`
|
|
2
2
|
span {
|
|
3
3
|
--badge-border: 1px solid var(--border-tertiary);
|
|
4
4
|
--badge-default-font-color: var(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as r}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{query as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js";import{formatIBAN as l}from"../../ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.js";import{qontoBeneficiaryCardStyles as m}from"./qonto-beneficiary-card.styles.js";import"../styles/styles.css.js";let a=class extends o{constructor(){super(...arguments),this.beneficiaryName="",this.iban="",this.currency="",this.hasFooterContent=!1}checkSlotContent(){if(!this.footerSlot)return;const e=this.footerSlot.assignedElements({flatten:!0});this.hasFooterContent=e.length>0}firstUpdated(){this.checkSlotContent()}render(){return t` <div class="card" ?data-has-footer=${this.hasFooterContent}>
|
|
2
2
|
<div class="content">
|
|
3
3
|
<div class="beneficiary-info">
|
|
4
4
|
<div class="beneficiary-name">${this.beneficiaryName}</div>
|
package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const r=e`
|
|
2
2
|
:host {
|
|
3
3
|
--bg-color: var(
|
|
4
4
|
--qonto-embed-beneficiary-card-background-color,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{qontoButtonStyles as m}from"./qonto-button.styles.js";import"../styles/styles.css.js";let i=class extends o{constructor(){super(...arguments),this.variant="primary",this.disabled=!1}render(){return t`<button
|
|
2
2
|
data-variant="${this.variant}"
|
|
3
3
|
.disabled=${this.disabled}
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const r=o`
|
|
2
2
|
button {
|
|
3
3
|
--focus-outline-color: var(--border-accent-low);
|
|
4
4
|
--bg-color: var(--qonto-embed-color-primary, var(--background-primary));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const l=e`
|
|
2
2
|
<svg
|
|
3
3
|
fill="none"
|
|
4
4
|
viewBox="0 0 12 12"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const l=e`
|
|
2
2
|
<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden=true>
|
|
3
3
|
<path
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const t=e`
|
|
2
2
|
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" aria-hidden=true>
|
|
3
3
|
<path
|
|
4
4
|
d="M0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const l=e`
|
|
2
2
|
<svg fill="none" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden=true>
|
|
3
3
|
<path
|
|
4
4
|
clip-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const l=e`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 12 12"
|
|
4
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{svg as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";const l=e`
|
|
2
2
|
<svg
|
|
3
3
|
fill="none"
|
|
4
4
|
viewBox="0 0 12 12"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as i}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{createRef as a,ref as s}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import l from"../../../../_virtual/lottie.js";import{qontoLottiePlayerStyles as m}from"./qonto-lottie-player.styles.js";import"../styles/styles.css.js";let r=class extends i{constructor(){super(...arguments),this.containerRef=a()}firstUpdated(){this.loadAnimation()}updated(t){t.has("animationData")&&this.loadAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}loadAnimation(){this.containerRef.value&&(this.destroyAnimation(),this.animationData&&this.renderAnimation(this.animationData))}renderAnimation(t){this.containerRef.value&&(this.animation=l.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!0,autoplay:!0,animationData:t}))}destroyAnimation(){this.animation&&(this.animation.destroy(),this.animation=void 0)}render(){return e`<div ${s(this.containerRef)} data-lottie-container></div>`}};r.styles=m,t([n({type:Object})],r.prototype,"animationData",void 0),r=t([o("qonto-lottie-player")],r);export{r as QontoLottiePlayer};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{css as e}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";const t=e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{css as m}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js";let i=class extends o{constructor(){super(...arguments),this.value="",this.disabled=!1,this.selected=!1,this.focused=!1}render(){return t`<slot></slot>`}};i.styles=m`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
1
|
+
import{__decorate as e}from"../../../../node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js";import{html as t}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js";import{state as n}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js";import{query as l}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/query.js";import"./qonto-option.js";import{qontoSelectFieldStyles as d}from"./qonto-select-field.styles.js";import"../styles/styles.css.js";let r=class extends o{constructor(){super(...arguments),this.id=crypto.randomUUID(),this.label="",this.placeholder="Select an option",this.value="",this.disabled=!1,this.error=!1,this.errorMessage="",this.readonly=!1,this.isOpen=!1,this.focusedIndex=-1,this.optionElements=[],this.handleClickOutside=e=>{const t=e.target;this.contains(t)||this.closeDropdown()}}get hasError(){return this.error||this.errorMessage.length>0}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside)}firstUpdated(){this.handleSlotChange();const e=this.shadowRoot?.querySelector("[data-trigger]");e&&e.addEventListener("click",(e=>{this.toggleDropdown(e)}),!0)}handleSlotChange(){this.optionElements=Array.from(this.querySelectorAll("qonto-option")),this.updateOptionStates()}updateOptionStates(){this.optionElements.forEach(((e,t)=>{e.selected=e.value===this.value,e.focused=t===this.focusedIndex}))}scrollFocusedOptionIntoView(){if(this.focusedIndex<0||this.focusedIndex>=this.optionElements.length)return;const e=this.optionElements[this.focusedIndex];e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}updated(e){super.updated(e),(e.has("value")||e.has("focusedIndex"))&&(this.updateOptionStates(),e.has("focusedIndex")&&this.isOpen&&requestAnimationFrame((()=>{this.scrollFocusedOptionIntoView()})))}toggleDropdown(e){if(!this.disabled&&!this.readonly)if(e&&(e.stopPropagation(),e.preventDefault()),this.isOpen=!this.isOpen,this.isOpen){const e=this.optionElements.findIndex((e=>e.value===this.value));this.focusedIndex=e>=0?e:0}else this.focusedIndex=-1}closeDropdown(){this.isOpen=!1,this.focusedIndex=-1}selectOption(e){this.disabled||this.readonly||e.disabled||(this.value=e.value,this.closeDropdown(),this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value},bubbles:!0,composed:!0})))}handleKeyDown(e){if(!this.disabled&&!this.readonly)switch(e.key){case"Enter":case" ":e.preventDefault(),this.isOpen?this.focusedIndex>=0&&this.focusedIndex<this.optionElements.length&&this.selectOption(this.optionElements[this.focusedIndex]):this.toggleDropdown();break;case"Escape":e.preventDefault(),this.closeDropdown(),this.triggerElement?.focus();break;case"ArrowDown":e.preventDefault(),this.isOpen?this.focusedIndex=Math.min(this.focusedIndex+1,this.optionElements.length-1):this.toggleDropdown();break;case"ArrowUp":e.preventDefault(),this.isOpen&&(this.focusedIndex=Math.max(this.focusedIndex-1,0));break;case"Home":e.preventDefault(),this.isOpen&&(this.focusedIndex=0);break;case"End":e.preventDefault(),this.isOpen&&(this.focusedIndex=this.optionElements.length-1)}}renderSelectedDisplay(){const e=this.optionElements.find((e=>e.value===this.value));if(e){const o=e.cloneNode(!0);return o.removeAttribute("data-focused"),t`<div data-selected-content part="selected-content">
|
|
2
2
|
${Array.from(o.childNodes).map((e=>t`${e.cloneNode(!0)}`))}
|
|
3
3
|
</div>`}return t`<span data-placeholder part="placeholder"
|
|
4
4
|
>${this.placeholder}</span
|