@qonto/embed-sdk 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
- package/dist/cards/cards.d.ts.map +1 -1
- package/dist/cards/cards.helper.d.ts.map +1 -1
- package/dist/common/common.test.d.ts +2 -0
- package/dist/common/common.test.d.ts.map +1 -0
- package/dist/common/common.utils.d.ts +3 -0
- package/dist/common/common.utils.d.ts.map +1 -0
- package/dist/common/environment/environment-manager.d.ts +2 -2
- package/dist/common/environment/environment-manager.d.ts.map +1 -1
- package/dist/common/network/network.d.ts.map +1 -1
- package/dist/common/operation-settings/operation-settings.d.ts +2 -2
- package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/errors/EmbedApiError.d.ts +9 -1
- package/dist/errors/EmbedApiError.d.ts.map +1 -1
- package/dist/iframe/embed-iframe.d.ts +2 -1
- package/dist/iframe/embed-iframe.d.ts.map +1 -1
- package/dist/iframe/iframe-manager.d.ts +2 -1
- package/dist/iframe/iframe-manager.d.ts.map +1 -1
- package/dist/index.umd.js +56 -56
- package/dist/mocks/handlers.d.ts +3 -0
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/mocks/node.d.ts +1 -1
- package/dist/mocks/node.d.ts.map +1 -1
- package/dist/organizations/index.d.ts +1 -0
- package/dist/organizations/index.d.ts.map +1 -1
- package/dist/organizations/organizations.api.d.ts +14 -2
- package/dist/organizations/organizations.api.d.ts.map +1 -1
- package/dist/organizations/organizations.d.ts +12 -1
- package/dist/organizations/organizations.d.ts.map +1 -1
- package/dist/organizations/organizations.public-api.d.ts +2 -2
- package/dist/organizations/organizations.public-api.d.ts.map +1 -1
- package/dist/organizations/organizations.serializer.d.ts +2 -1
- package/dist/organizations/organizations.serializer.d.ts.map +1 -1
- package/dist/organizations/organizations.types.d.ts +40 -10
- package/dist/organizations/organizations.types.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
- package/dist/src/common/common.utils.js +1 -0
- package/dist/src/common/environment/environment-manager.js +1 -1
- package/dist/src/common/network/network.js +1 -1
- package/dist/src/errors/EmbedApiError.js +1 -1
- package/dist/src/iframe/embed-iframe.js +1 -1
- package/dist/src/iframe/iframe-manager.js +1 -1
- package/dist/src/organizations/organizations.api.js +1 -1
- package/dist/src/organizations/organizations.js +1 -1
- package/dist/src/organizations/organizations.public-api.js +1 -1
- package/dist/src/organizations/organizations.serializer.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.api.js +1 -1
- package/dist/src/ui/ui-elements/transfer-list/create-transfer-list-element.js +1 -0
- package/dist/src/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.js +3 -3
- package/dist/src/ui/ui-elements/transfer-list/transfer-list.utils.js +1 -0
- package/dist/src/ui/ui-elements.js +1 -1
- package/dist/src/validation/operation-settings-validation.js +1 -1
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts +46 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts +32 -0
- package/dist/ui/customizable-components/amount-field/qonto-amount-field.utils.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts +14 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.d.ts.map +1 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts +2 -0
- package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts +3 -0
- package/dist/ui/customizable-components/lottie-player/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts +17 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts +2 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts +6 -0
- package/dist/ui/customizable-components/lottie-player/qonto-lottie-player.types.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/index.d.ts +3 -0
- package/dist/ui/customizable-components/select-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts +48 -0
- package/dist/ui/customizable-components/select-field/qonto-option.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts +111 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/select-field/qonto-select-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/index.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/index.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts +31 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.d.ts.map +1 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts +2 -0
- package/dist/ui/customizable-components/text-field/qonto-text-field.styles.d.ts.map +1 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts +14 -0
- package/dist/ui/customizable-components/utils/storybook-define-custom-props-from-css.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/configure-localization.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locale-codes.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/de.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/es.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/fr.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/it.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/nl.d.ts.map +1 -0
- package/dist/ui/ui-elements/localize/generated/locales/pt.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +13 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts +4 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts +11 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts +12 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +25 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts +53 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +41 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts +2 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.d.ts.map +1 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts +7 -0
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements/{transfer-list.d.ts → transfer-list/create-transfer-list-element.d.ts} +2 -1
- package/dist/ui/ui-elements/transfer-list/create-transfer-list-element.d.ts.map +1 -0
- package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.d.ts +2 -2
- package/dist/ui/ui-elements/transfer-list/transfer-list.d.ts.map +1 -0
- package/dist/ui/ui-elements/transfer-list/transfer-list.events.d.ts.map +1 -0
- package/dist/ui/ui-elements/transfer-list/transfer-list.styles.d.ts.map +1 -0
- package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.utils.d.ts +2 -2
- package/dist/ui/ui-elements/transfer-list/transfer-list.utils.d.ts.map +1 -0
- package/dist/ui/ui-elements.d.ts +0 -1
- package/dist/ui/ui-elements.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +2 -1
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +16 -3
- package/dist/src/errors/EmbedUIElementError.js +0 -1
- package/dist/src/ui/customizable-components/transfer-list/transfer-list.utils.js +0 -1
- package/dist/src/ui/ui-elements/transfer-list.js +0 -1
- package/dist/ui/customizable-components/index.d.ts +0 -2
- package/dist/ui/customizable-components/index.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/configure-localization.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locale-codes.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/de.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/es.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/fr.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/it.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/nl.d.ts.map +0 -1
- package/dist/ui/customizable-components/localize/generated/locales/pt.d.ts.map +0 -1
- package/dist/ui/customizable-components/transfer-list/transfer-list.d.ts.map +0 -1
- package/dist/ui/customizable-components/transfer-list/transfer-list.events.d.ts.map +0 -1
- package/dist/ui/customizable-components/transfer-list/transfer-list.styles.d.ts.map +0 -1
- package/dist/ui/customizable-components/transfer-list/transfer-list.utils.d.ts.map +0 -1
- package/dist/ui/ui-elements/transfer-list.d.ts.map +0 -1
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/configure-localization.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locale-codes.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/de.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/es.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/fr.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/it.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/nl.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/pt.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.events.js +0 -0
- /package/dist/src/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.styles.js +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/configure-localization.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locale-codes.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/de.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/es.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/fr.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/it.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/nl.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/localize/generated/locales/pt.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.events.d.ts +0 -0
- /package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.styles.d.ts +0 -0
package/dist/mocks/handlers.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ import type { SepaTransferDataObject } from '@sepa-transfers/sepa-transfers.type
|
|
|
3
3
|
import type { BulkTransferDataObject, NewBulkTransfer, BulkTransferSettings, NewBulkTransferWithBeneficiary } from '@sepa-transfers/bulk-transfers/bulk-transfers.types';
|
|
4
4
|
import type { CardDataObject } from '@cards/cards.types';
|
|
5
5
|
import type { TransactionDataObject } from '@transactions/transactions.types';
|
|
6
|
+
import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/organizations.types';
|
|
6
7
|
export declare const INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN";
|
|
8
|
+
export declare const mockedBankAccountsList: BankAccountDataObject[];
|
|
9
|
+
export declare const mockedOrganization: OrganizationDataObject;
|
|
7
10
|
export declare const singleBeneficiary: BeneficiaryDataObject;
|
|
8
11
|
export declare const newBeneficiaryDbFields: {
|
|
9
12
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EACV,sBAAsB,EAGtB,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qDAAqD,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EACV,sBAAsB,EAGtB,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,qDAAqD,CAAC;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAG5C,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,WAAW,6BA8jBvB,CAAC"}
|
package/dist/mocks/node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const server: import("msw/
|
|
1
|
+
export declare const server: import("msw/node").SetupServerApi;
|
|
2
2
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/mocks/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/mocks/node.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/mocks/node.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,mCAA8B,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
9
|
export declare const organizations: {
|
|
10
|
+
getOrganization: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").Organization>;
|
|
10
11
|
getBankAccounts: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").BankAccount[]>;
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;CAAuC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NetworkCallDescriptor } from '@common/network/network';
|
|
2
|
-
import type { OrganizationDataObject } from './organizations.types';
|
|
2
|
+
import type { BankAccountDataObject, OrganizationDataObject } from './organizations.types';
|
|
3
3
|
export declare const prepareGetOrganization: ({ accessToken, stagingToken, }: {
|
|
4
4
|
accessToken?: string;
|
|
5
5
|
stagingToken?: string;
|
|
@@ -7,5 +7,17 @@ export declare const prepareGetOrganization: ({ accessToken, stagingToken, }: {
|
|
|
7
7
|
export declare const getOrganization: ({ accessToken, stagingToken, }: {
|
|
8
8
|
accessToken: string;
|
|
9
9
|
stagingToken?: string;
|
|
10
|
-
}) => Promise<
|
|
10
|
+
}) => Promise<{
|
|
11
|
+
organization: OrganizationDataObject;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const prepareGetBankAccounts: ({ accessToken, stagingToken, }: {
|
|
14
|
+
accessToken?: string;
|
|
15
|
+
stagingToken?: string;
|
|
16
|
+
}) => NetworkCallDescriptor;
|
|
17
|
+
export declare const getBankAccounts: ({ accessToken, stagingToken, }: {
|
|
18
|
+
accessToken: string;
|
|
19
|
+
stagingToken?: string;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
bank_accounts: BankAccountDataObject[];
|
|
22
|
+
}>;
|
|
11
23
|
//# sourceMappingURL=organizations.api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,YAAY,EAAE,sBAAsB,CAAA;CAAE,CASnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,aAAa,EAAE,qBAAqB,EAAE,CAAA;CAAE,CASrD,CAAC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import type { BankAccount } from './organizations.types';
|
|
1
|
+
import type { BankAccount, Organization } from './organizations.types';
|
|
2
2
|
import { type OperationSettings } from '@validation/operation-settings-validation';
|
|
3
|
+
/**
|
|
4
|
+
* Retrieves the organization information.
|
|
5
|
+
*
|
|
6
|
+
* @param operationSettings - An object with operation-level settings such as
|
|
7
|
+
* `accessToken`, `stagingToken`, `proxyRequestFunction`, and other optional
|
|
8
|
+
* parameters. See {@link OperationSettings} for more details.
|
|
9
|
+
* @returns A promise that resolves to the organization the current user belongs
|
|
10
|
+
* to.
|
|
11
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getOrganization: (operationSettings: OperationSettings) => Promise<Organization>;
|
|
3
14
|
/**
|
|
4
15
|
* Retrieves the bank accounts for the organization.
|
|
5
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAEb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,2CAA2C,CAAC;AAMnD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,CAC5B,iBAAiB,EAAE,iBAAiB,KACjC,OAAO,CAAC,YAAY,CAyBxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,CAC5B,iBAAiB,EAAE,iBAAiB,KACjC,OAAO,CAAC,WAAW,EAAE,CAuBzB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const organizations: {
|
|
1
|
+
export declare const organizations: {
|
|
2
|
+
getOrganization: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").Organization>;
|
|
2
3
|
getBankAccounts: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").BankAccount[]>;
|
|
3
4
|
};
|
|
4
|
-
export { organizations };
|
|
5
5
|
//# sourceMappingURL=organizations.public-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.public-api.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.public-api.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"organizations.public-api.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.public-api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;CAGzB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { BankAccount, BankAccountDataObject } from './organizations.types';
|
|
1
|
+
import type { BankAccount, BankAccountDataObject, Organization, OrganizationDataObject } from './organizations.types';
|
|
2
|
+
export declare const serializeOrganization: (organization: OrganizationDataObject) => Organization;
|
|
2
3
|
export declare const serializeBankAccount: (bankAccount: BankAccountDataObject) => BankAccount;
|
|
3
4
|
//# sourceMappingURL=organizations.serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qBAAqB,GAChC,cAAc,sBAAsB,KACnC,YAgBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,qBAAqB,KACjC,WAgBF,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface BankAccountDataObject {
|
|
2
|
+
id?: string;
|
|
2
3
|
slug: string;
|
|
3
4
|
iban: string;
|
|
4
5
|
bic: string;
|
|
5
6
|
currency: string;
|
|
6
|
-
balance:
|
|
7
|
+
balance: string;
|
|
7
8
|
balance_cents: number;
|
|
8
9
|
authorized_balance: number;
|
|
9
10
|
authorized_balance_cents: number;
|
|
@@ -11,8 +12,12 @@ export type BankAccountDataObject = {
|
|
|
11
12
|
updated_at: Date;
|
|
12
13
|
status: (typeof ACCOUNT_STATUS)[keyof typeof ACCOUNT_STATUS];
|
|
13
14
|
main: boolean;
|
|
14
|
-
}
|
|
15
|
-
export
|
|
15
|
+
}
|
|
16
|
+
export interface BankAccount {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the bank account is a string that uniquely identifies the bank account.
|
|
19
|
+
*/
|
|
20
|
+
id?: string;
|
|
16
21
|
/**
|
|
17
22
|
* The slug of the bank account is a string that uniquely identifies the bank account.
|
|
18
23
|
*/
|
|
@@ -61,16 +66,41 @@ export type BankAccount = {
|
|
|
61
66
|
* Whether the bank account is the main bank account of the organization.
|
|
62
67
|
*/
|
|
63
68
|
main: boolean;
|
|
64
|
-
}
|
|
69
|
+
}
|
|
65
70
|
export declare const ACCOUNT_STATUS: {
|
|
66
71
|
readonly ACTIVE: "active";
|
|
67
72
|
readonly WAITING: "waiting_for_funds";
|
|
68
73
|
readonly CLOSED: "closed";
|
|
69
74
|
readonly PENDING: "pending";
|
|
70
75
|
};
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
export interface OrganizationDataObject {
|
|
77
|
+
id: string;
|
|
78
|
+
slug: string;
|
|
79
|
+
legal_name: string;
|
|
80
|
+
legal_number: string;
|
|
81
|
+
legal_sector: string;
|
|
82
|
+
legal_registration_date: string;
|
|
83
|
+
legal_address: string;
|
|
84
|
+
legal_form: string;
|
|
85
|
+
legal_country: string;
|
|
86
|
+
legal_share_capital: number;
|
|
87
|
+
locale: string;
|
|
88
|
+
contract_signed_at: string;
|
|
89
|
+
bank_accounts: BankAccountDataObject[];
|
|
90
|
+
}
|
|
91
|
+
export interface Organization {
|
|
92
|
+
id: string;
|
|
93
|
+
slug: string;
|
|
94
|
+
legalName: string;
|
|
95
|
+
legalNumber: string;
|
|
96
|
+
legalSector: string;
|
|
97
|
+
legalRegistrationDate: string;
|
|
98
|
+
legalAddress: string;
|
|
99
|
+
legalForm: string;
|
|
100
|
+
legalCountry: string;
|
|
101
|
+
legalShareCapital: number;
|
|
102
|
+
locale: string;
|
|
103
|
+
contractSignedAt: string;
|
|
104
|
+
bankAccounts: BankAccount[];
|
|
105
|
+
}
|
|
76
106
|
//# sourceMappingURL=organizations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../src/organizations/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-transfers.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/bulk-transfers/bulk-transfers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,YAAY,EAEZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"bulk-transfers.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/bulk-transfers/bulk-transfers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,YAAY,EAEZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAqB9C;;;;;;;;;;;;GAYG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,GACjD,OAAO,CAAC,wBAAwB,CAAC,CA0BnC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,8BAA8B,CAAC,GAAG,cAAc,CACpE,+BAA+B,EAAE,EACjC,YAAY,GAAG,SAAS,CACzB,CAyFA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EmbedOperationError as e}from"../errors/EmbedOperationError.js";function t(t){let n=null;if(n="function"==typeof t?t():document.getElementById(t),!(n&&n instanceof HTMLElement))throw new e(`Could not install the UI Element because the parent element with id ${t} was not found.\nPlease make sure to pass a valid parentElementId or ensure the parentElementId function returns a valid element.`);return n}export{t as getUIParentElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENVIRONMENTS as n,BRANCHES as t}from"../constants.js";const e="https://embed.qonto.com",r="https://embed-js{branch}.staging.qonto.co",s="https://embed.dev.qonto.co",c={[n.PRODUCTION]:{
|
|
1
|
+
import{ENVIRONMENTS as n,BRANCHES as t}from"../constants.js";const e="https://embed.qonto.com",r="https://embed-js{branch}.staging.qonto.co",s="https://embed.dev.qonto.co",c={[n.PRODUCTION]:{EMBED_BASE_URL:e,EMBED_URL:`${e}/connect`,THIRD_PARTY_API_URL:"https://thirdparty.qonto.com"},[n.STAGING]:{EMBED_BASE_URL:r,EMBED_URL:`${r}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"},[n.LOCAL]:{EMBED_BASE_URL:s,EMBED_URL:`${s}/connect`,THIRD_PARTY_API_URL:"https://thirdparty{branch}.staging.qonto.co"}};class o{constructor(){this.environment=n.PRODUCTION,this.branch=t.SANDBOX;const e=process.env.QONTO_EMBED_ENVIRONMENT,r=process.env.QONTO_EMBED_BRANCH;this.environment=Object.values(n).includes(e)?e:n.PRODUCTION,this.branch=Object.values(t).includes(r)?r:t.SANDBOX}static getInstance(){return o.instance||(o.instance=new o),o.instance}setEnvironment(n){this.environment=n}getEnvironment(){return this.environment}isProductionEnvironment(){return this.environment===n.PRODUCTION}setBranch(n){this.branch=n}getBranch(){return this.branch}clear(){this.environment=n.PRODUCTION,this.branch=t.MASTER}getEnvironmentUrls(){if(this.environment===n.PRODUCTION)return c.production;{const n=c[this.environment];return Object.entries(n).reduce(((n,[t,e])=>({...n,[t]:e.replace("{branch}",`-${this.branch}`)})),{})}}}const i=o.getInstance();export{o as EnvironmentManager,i as environmentManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{authManager as e}from"../auth/auth.js";import{operationSettingsManager as o}from"../operation-settings/operation-settings.js";import{localeManager as
|
|
1
|
+
import{authManager as e}from"../auth/auth.js";import{operationSettingsManager as o}from"../operation-settings/operation-settings.js";import{localeManager as t}from"../locale/locale-manager.js";import{EmbedApiError as n}from"../../errors/EmbedApiError.js";import{base64Encode as r,base64Decode as a}from"../codec/codec.js";import{environmentManager as s}from"../environment/environment-manager.js";function i({accessToken:n,stagingToken:r,idempotencyKey:a,mfaPreference:s}){const i=new Headers;i.append("Authorization",`Bearer ${n}`);const p=r||e.getStagingToken();p&&i.append("X-Qonto-Staging-Token",p),a&&i.append("X-Qonto-Idempotency-Key",a);const c=s||o.getMFAPreference();return c&&i.append("X-Qonto-2fa-Preference",c),i.append("Content-Type","application/json"),i.append("Accept-Language",t.getLocale()),i}async function p({path:e,options:o}){const t=`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${e}`,r=await fetch(t,{...o,headers:i(o.headers),body:o.body?JSON.stringify(o.body):void 0});if(204===r.status)return;const a=await r.json();if(!r.ok)throw a.errors?new n({code:r.status,message:a.errors.map((e=>`${e.code}: ${e.detail}`))}):new n({code:r.status,message:`${a.code}: ${a.detail}`,data:a});return a}function c(e){const o={method:e.options.method,headers:e.options.headers,path:e.path,payload:e.options?.body},t=JSON.stringify(o);return r(t)}function d(e){return JSON.parse(a(e))}export{i as buildRequestHeaders,d as decodeNetworkResponse,c as encodeNetworkCall,p as makeNetworkCall};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QontoEmbedSdkError as
|
|
1
|
+
import{QontoEmbedSdkError as e}from"./QontoEmbedSdkError.js";class o extends e{constructor({message:e,data:o,code:r}){super(),this.code=500;const s=Array.isArray(e)?e.join("\n"):e;this.name="EmbedApiError",this.message=`The call to the Embed API failed with the following errors:\n${s}`,this.data=o||{},this.code=r||this.code}}export{o as EmbedApiError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IFRAME_EVENTS as e}from"../common/constants.js";import{EmbedOperationError as t}from"../errors/EmbedOperationError.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";class
|
|
1
|
+
import{IFRAME_EVENTS as e}from"../common/constants.js";import{EmbedOperationError as t}from"../errors/EmbedOperationError.js";import{buildIframeMessage as s}from"./iframe-message-builder.js";import{getUIParentElement as i}from"../common/common.utils.js";class n{constructor(e){this.options=e,this.iframe=null,this.parentElement=null,this.messageListeners=new Map,this.defaultTimeout=3e4;const t=new URL(e.iframeUrl);this.targetOrigin=`${t.protocol}//${t.host}`}async initialize(){if(this.iframe)return this;if(this.parentElement=i(this.options.parentElementId),!this.parentElement)throw new t(`Could not install the authentication UI because the parent element with id ${this.options.parentElementId} was not found.\nPlease make sure to pass a valid parentElementId when calling the method.`);return new Promise(((s,i)=>{this.iframe=document.createElement("iframe"),this.iframe.src=this.options.iframeUrl,this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none";const n=this.options.timeout||this.defaultTimeout,r=setTimeout((()=>{window.removeEventListener("message",a),i(new t(`Could not install the authentication UI because the timeout of ${n}ms was reached.\nPlease make sure the application can reach the Internet.`))}),n),a=t=>{t.data.eventId===e.READY&&(clearTimeout(r),window.removeEventListener("message",a),s(this))};window.addEventListener("message",a),this.parentElement?.appendChild(this.iframe)}))}postMessage(e){if(!this.iframe||!this.iframe.contentWindow)return Promise.reject(new t("Attempted to perform an Embed operation without having the authentication UI initialized."));const i=s(e);return new Promise(((e,s)=>{const n=r=>{if(r.data?.actionId===i.actionId){if("error"===r.data.status)return this.removeMessageListener(i.actionId,n),s(new t(`An error occurred when performing the action ${i.actionId}.\n${JSON.stringify(r.data.payload)}`));this.removeMessageListener(i.actionId,n),e(r.data.payload)}};this.addMessageListener(i.actionId,n),this.iframe?.contentWindow?.postMessage(i,this.targetOrigin)}))}addMessageListener(e,t){this.messageListeners.has(e)||this.messageListeners.set(e,[]);this.messageListeners.get(e).push(t),window.addEventListener("message",t)}removeMessageListener(e,t){const s=this.messageListeners.get(e);if(s){const e=s.indexOf(t);-1!==e&&(s.splice(e,1),window.removeEventListener("message",t))}}destroy(){this.messageListeners.forEach((e=>{e.forEach((e=>{window.removeEventListener("message",e)}))})),this.messageListeners.clear(),this.iframe&&this.parentElement&&(this.parentElement.removeChild(this.iframe),this.iframe=null)}}export{n as EmbedIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EmbedIframe as e}from"./embed-iframe.js";import{environmentManager as n}from"../common/environment/environment-manager.js";import{localeManager as o}from"../common/locale/locale-manager.js";function t({accessToken:e,stagingToken:t,locale:m,debugMode:r}){const a=r||!1,i=m||o.getLocale(),c=n.getEnvironmentUrls().
|
|
1
|
+
import{EmbedIframe as e}from"./embed-iframe.js";import{environmentManager as n}from"../common/environment/environment-manager.js";import{localeManager as o}from"../common/locale/locale-manager.js";function t({accessToken:e,stagingToken:t,locale:m,debugMode:r}){const a=r||!1,i=m||o.getLocale(),c=n.getEnvironmentUrls().EMBED_URL,l=t?`;staging_token=${encodeURIComponent(t)}`:"";return`${c}?debug=${a}&lang=${encodeURIComponent(i)}#access_token=${encodeURIComponent(e)}${l}`}function m({parentElementId:n,iframeUrl:o}){return new e({parentElementId:n,iframeUrl:o}).initialize()}export{t as buildIframeUrl,m as createIframe};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeNetworkCall as n}from"../common/network/network.js";const
|
|
1
|
+
import{makeNetworkCall as n}from"../common/network/network.js";const e=({accessToken:n,stagingToken:e})=>({path:"/v2/organization/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),o=async({accessToken:o,stagingToken:s})=>{const a=e({accessToken:o,stagingToken:s});return await n(a)},s=({accessToken:n,stagingToken:e})=>({path:"/v2/bank_accounts/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),a=async({accessToken:e,stagingToken:o})=>{const a=s({accessToken:e,stagingToken:o});return await n(a)};export{a as getBankAccounts,o as getOrganization,s as prepareGetBankAccounts,e as prepareGetOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../common/auth/auth.js";import{validatePresenceOfAuthToken as o}from"../common/auth/auth.validate.js";import{
|
|
1
|
+
import"../common/auth/auth.js";import{validatePresenceOfAuthToken as o}from"../common/auth/auth.validate.js";import{prepareGetBankAccounts as n,getBankAccounts as t,prepareGetOrganization as a,getOrganization as s}from"./organizations.api.js";import{serializeBankAccount as i,serializeOrganization as e}from"./organizations.serializer.js";import{validateOperationSettingsParams as r}from"../validation/operation-settings-validation.js";import{encodeNetworkCall as c,decodeNetworkResponse as g}from"../common/network/network.js";const m=async n=>{const{stagingToken:t,proxyRequestFunction:i}=r(n);if(i){const o=a({stagingToken:t}),n=await i(c(o)),{body:s}=g(n);return e(s.organization)}{const a=n.accessToken||o(),i=await s({accessToken:a,stagingToken:t});return e(i.organization)}},k=async a=>{const{stagingToken:s,proxyRequestFunction:e}=r(a);if(e){const o=n({stagingToken:s}),t=await e(c(o)),{body:a}=g(t);return a.bank_accounts.map(i)}{const n=a.accessToken||o();return(await t({accessToken:n,stagingToken:s})).bank_accounts.map(i)}};export{k as getBankAccounts,m as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getBankAccounts as o}from"./organizations.js";const
|
|
1
|
+
import{getBankAccounts as o,getOrganization as t}from"./organizations.js";const n={getOrganization:t,getBankAccounts:o};export{n as organizations};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a=a=>({slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:a.balance,balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main});export{a as
|
|
1
|
+
const a=a=>({id:a.id,slug:a.slug,legalName:a.legal_name,legalNumber:a.legal_number,legalSector:a.legal_sector,legalRegistrationDate:a.legal_registration_date,legalAddress:a.legal_address,legalForm:a.legal_form,legalCountry:a.legal_country,legalShareCapital:a.legal_share_capital,locale:a.locale,contractSignedAt:a.contract_signed_at,bankAccounts:a.bank_accounts.map(e)}),e=a=>({id:a?.id,slug:a.slug,iban:a.iban,bic:a.bic,currency:a.currency,balance:parseFloat(a.balance),balanceCents:a.balance_cents,authorizedBalance:a.authorized_balance,authorizedBalanceCents:a.authorized_balance_cents,name:a.name,updatedAt:new Date(a.updated_at),status:a.status,main:a.main});export{e as serializeBankAccount,a as serializeOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeNetworkCall as e,buildRequestHeaders as n}from"../../common/network/network.js";import{environmentManager as s}from"../../common/environment/environment-manager.js";import{addPaginationParamsToUrl as
|
|
1
|
+
import{makeNetworkCall as e,buildRequestHeaders as n}from"../../common/network/network.js";import{environmentManager as s}from"../../common/environment/environment-manager.js";import{addPaginationParamsToUrl as a}from"../../common/api-pagination/api-pagination.js";import{EmbedApiError as o}from"../../errors/EmbedApiError.js";import{SEPA_ENDPOINT as r}from"../sepa-transfers.api.js";import{serializeToSepaPayeeDataObject as t}from"../sepa-transfers.serializer.js";const i="/v2/sepa/bulk_transfers";async function c({accessToken:e,stagingToken:r,paginationSettings:t}){const c={method:"GET",headers:n({accessToken:e,stagingToken:r})},m=new URL(`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${i}`),g=a({endpointUrl:m,paginationSettings:t}),p=await fetch(g,c);if(!p.ok)throw new o({message:"Failed to fetch SEPA bulk transfers"});const k=await p.json();if(k.errors)throw new o({message:k.errors.map((e=>`${e.code}: ${e.detail}`))});return{bulkTransfers:k.bulk_transfers,meta:k.meta}}async function m({accessToken:e,stagingToken:a,bulkTransferId:r}){const t={method:"GET",headers:n({accessToken:e,stagingToken:a})},c=new URL(`${s.getEnvironmentUrls().THIRD_PARTY_API_URL}${i}/${r}`),m=await fetch(c,t),g=await m.json();if(g.errors)throw new o({message:g.errors.map((e=>`${e.code}: ${e.detail}`))});return g.bulk_transfer}function g({sepaPayees:e,accessToken:n,stagingToken:s}){return{path:`${r}/bulk_verify_payee`,options:{method:"POST",headers:{accessToken:n,stagingToken:s},body:{requests:e.map(t)}}}}async function p({sepaPayees:n,accessToken:s,stagingToken:a}){const o=g({sepaPayees:n,accessToken:s,stagingToken:a});return await e(o)}export{i as BULK_TRANSFERS_ENDPOINT,m as getBulkTransfer,c as getBulkTransfers,g as prepareVerifySepaPayeesCall,p as verifySepaPayees};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./transfer-list.js";import{localeManager as e}from"../../../common/locale/locale-manager.js";function t({containerElement:t,uiElementSettings:n,operationSettings:o}){const a=document.createElement("qonto-transfer-list");a.operationSettings=o,a.locale=o?.locale||e.getLocale(),a.addEventListener("transfer-selected",(e=>{n?.uiElementEventListener?.({eventName:"transfer-selected",eventDetail:e.detail})})),t.appendChild(a)}export{t as createTransferListElement};
|
|
@@ -1,4 +1,4 @@
|
|
|
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/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{str as n}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as r}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as l}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{transferListStyles as d}from"./transfer-list.styles.js";import
|
|
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/node_modules/@lit/reactive-element/reactive-element.js";import{html as e}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";import{LitElement as o}from"../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";import{customElement as i}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as s}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as a}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{str as n}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js";import{msg as r}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as l}from"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{transferListStyles as d}from"./transfer-list.styles.js";import{formatDate as m}from"../../customizable-components/utils/format-date.js";import{formatMoney as p}from"../../customizable-components/utils/format-money.js";import{TransferSelectedEvent as c}from"./transfer-list.events.js";import{renderLoadingTableRowsMarkup as u,mapTransferStatusToBadgeLevel as h}from"./transfer-list.utils.js";import{getSepaTransfers as g}from"../../../sepa-transfers/sepa-transfers.js";import{setLocale as f,getLocale as v}from"../localize/configure-localization.js";import{TRANSFER_STATUSES as _}from"../../../common/constants.js";import"../../customizable-components/styles/styles.css.js";import"../../customizable-components/button/qonto-button.js";let y=class extends o{constructor(){super(...arguments),this.locale="en",this.isLoading=!1}connectedCallback(){super.connectedCallback(),f(this.locale),this.fetchTransfers()}updated(t){t.has("locale")&&f(this.locale)}async fetchTransfers(t){if(this.operationSettings){this.isLoading=!0,this.error=void 0;try{const{paginationSettings:e={}}=this.operationSettings,o=await g({operationSettings:{...this.operationSettings,paginationSettings:{page:t??e.page??1,itemsPerPage:e.itemsPerPage??20}}});this.transfers=o.transfers,this.paginationState=o.meta}catch(t){console.error("Failed to load SEPA transfers:",t),this.error="Failed to load transfers. Please try again."}finally{this.isLoading=!1}}else console.error("operationSettings is required to fetch transfers")}handleRowClick(t){this.dispatchEvent(new c({transfer:t}))}handlePreviousPage(){this.paginationState?.previousPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.previousPage))}handleNextPage(){this.paginationState?.nextPage&&(this.transfers=void 0,this.fetchTransfers(this.paginationState.nextPage))}render(){return this.error?e`<div data-error>${this.error}</div>`:e`
|
|
2
2
|
<table>
|
|
3
3
|
<thead>
|
|
4
4
|
<tr>
|
|
@@ -10,7 +10,7 @@ import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typesc
|
|
|
10
10
|
</tr>
|
|
11
11
|
</thead>
|
|
12
12
|
<tbody>
|
|
13
|
-
${this.isLoading||!this.transfers?
|
|
13
|
+
${this.isLoading||!this.transfers?u(this.paginationState?.itemsPerPage):""}
|
|
14
14
|
${0===this.transfers?.length?"There are no transfers yet":this.transfers?.map((t=>e`
|
|
15
15
|
<tr @click=${()=>this.handleRowClick(t)}>
|
|
16
16
|
<td>
|
|
@@ -20,7 +20,7 @@ import{__decorate as t}from"../../../../node_modules/.pnpm/@rollup_plugin-typesc
|
|
|
20
20
|
<td>${t.note}</td>
|
|
21
21
|
<td>
|
|
22
22
|
<qonto-badge-status
|
|
23
|
-
level="${
|
|
23
|
+
level="${h(t.status)}"
|
|
24
24
|
>${function(t){switch(t){case _.PENDING:return r("Pending");case _.PROCESSING:return r("Processing");case _.CANCELED:return r("Canceled");case _.DECLINED:return r("Declined");case _.SETTLED:return r("Settled");case _.FAILED:return r("Failed");case _.COMPLETED:return r("Completed");default:return t}}(t.status)}</qonto-badge-status
|
|
25
25
|
>
|
|
26
26
|
</td>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BADGE_LEVELS as e}from"../../customizable-components/badge-status/qonto-badge-status.js";import"../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.js";import{TRANSFER_STATUSES as t}from"../../../common/constants.js";import{unsafeHTML as o}from"../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";function n(o){switch(o){case t.SETTLED:return e.VALIDATED;case t.DECLINED:return e.DECLINED;case t.PENDING:return e.WAITING;case t.PROCESSING:return e.IN_PROGRESS;case t.CANCELED:return e.ERROR;default:return e.INACTIVE}}function l(e=3){const t=Array.from({length:e},(()=>'\n <tr>\n <td><qonto-skeleton-loader-line width="80px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="120px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="150px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="100px"></qonto-skeleton-loader-line></td>\n <td><qonto-skeleton-loader-line width="60px"></qonto-skeleton-loader-line></td>\n </tr>\n ')).join("");return o(t)}export{n as mapTransferStatusToBadgeLevel,l as renderLoadingTableRowsMarkup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{isRunningInServer as t}from"../common/runtime/runtime.validation.js";import{validateCreateUIElementParams as e}from"./ui-elements.validation.js";import{validateOperationSettingsParams as n}from"../validation/operation-settings-validation.js";import{UI_ELEMENT_NAMES as i}from"./ui-elements.constants.js";import{createTransferListElement as o}from"./ui-elements/transfer-list/create-transfer-list-element.js";import{getUIParentElement as m}from"../common/common.utils.js";const r=async r=>{if(t())return;const{uiElementSettings:s,operationSettings:a={}}=r,{uiElementName:l}=e(s),{uiParentElementId:u}=n(a,{requiresUI:!0}),c=m(u);if(l===i.TRANSFER_LIST)return void o({containerElement:c,uiElementSettings:s,operationSettings:a});const p=document.createElement(`qonto-${l}`);c.appendChild(p)};export{r as createUIElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as t}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||n.getUIParentElementId();if(s
|
|
1
|
+
import{InvalidParametersError as e}from"../errors/InvalidParametersError.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{MFA_METHODS as t}from"../common/constants.js";import{environmentManager as o}from"../common/environment/environment-manager.js";const r={requiresUI:!1};function i(i,{requiresUI:s}=r){const a=i?.uiParentElementId||n.getUIParentElementId();if(s){if(!a)throw new e("operationSettings parameter must have a uiParentElementId for the called function.\nYou can pass it either to the initialize function or in a per function basis.");if(!["string","function"].includes(typeof a))throw new e("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const u=i?.mfaPreference||n.getMFAPreference();if(u){const n=(m=Object.values(t),o.isProductionEnvironment()?m.filter((e=>e!==t.MOCK)):m);if(!n.includes(u))throw new e(`operationSettings.mfaPreference must be one of ${n.join(", ")}`);if(o.isProductionEnvironment()&&u===t.MOCK)throw new e("operationSettings.mfaPreference cannot be set to mock in production environment.")}var m;const c=i?.debugMode||n.getDebugMode();if(void 0!==c&&"boolean"!=typeof c)throw new e("operationSettings.debugMode must be a boolean.");const f=i?.proxyRequestFunction||n.getProxyRequestFunction();if(f&&"function"!=typeof f)throw new e("operationSettings.proxyRequestFunction must be a function.");return{...i,uiParentElementId:a,mfaPreference:u,debugMode:c,proxyRequestFunction:f}}export{i as validateOperationSettingsParams};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoAmountField extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
locale: string;
|
|
11
|
+
private _value;
|
|
12
|
+
get value(): number;
|
|
13
|
+
set value(val: number | string);
|
|
14
|
+
/**
|
|
15
|
+
* Whether the amount field is in an error state
|
|
16
|
+
*/
|
|
17
|
+
error: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Error message to display below the amount field
|
|
20
|
+
*/
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
private displayValue;
|
|
23
|
+
private isFocused;
|
|
24
|
+
private decimalPlaces;
|
|
25
|
+
private get hasValue();
|
|
26
|
+
/**
|
|
27
|
+
* Computed property that returns true if error styles should be shown
|
|
28
|
+
* (either error is explicitly true or errorMessage is provided)
|
|
29
|
+
*/
|
|
30
|
+
private get hasError();
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
33
|
+
private updateDisplayValue;
|
|
34
|
+
private showRawValueForEditing;
|
|
35
|
+
private handleFocus;
|
|
36
|
+
private handleBlur;
|
|
37
|
+
private handleInput;
|
|
38
|
+
private handleChange;
|
|
39
|
+
render(): import("lit").TemplateResult<1>;
|
|
40
|
+
}
|
|
41
|
+
declare global {
|
|
42
|
+
interface HTMLElementTagNameMap {
|
|
43
|
+
'qonto-amount-field': QontoAmountField;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=qonto-amount-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,OAAO,sBAAsB,CAAC;AAE9B,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,MAAM,CAAC,MAAM,0BAA0B;IAGvC,EAAE,EAAE,MAAM,CAAM;IAGhB,KAAK,EAAE,MAAM,CAAM;IAGnB,QAAQ,EAAE,MAAM,CAAS;IAGzB,WAAW,EAAE,MAAM,CAAU;IAG7B,QAAQ,EAAE,OAAO,CAAS;IAG1B,MAAM,EAAE,MAAM,CAAQ;IAItB,OAAO,CAAC,MAAM,CAAa;IAE3B,IACI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAI7B;IAED;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAS;IAEvB;;OAEG;IAEH,YAAY,EAAE,MAAM,CAAM;IAG1B,OAAO,CAAC,YAAY,CAAc;IAGlC,OAAO,CAAC,SAAS,CAAkB;IAEnC,OAAO,CAAC,aAAa,CAAa;IAElC,OAAO,KAAK,QAAQ,GAEnB;IAED;;;OAGG;IACH,OAAO,KAAK,QAAQ,GAEnB;IAED,iBAAiB;IAKjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,YAAY;IAepB,MAAM;CAqCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBAgMlC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a numeric amount with locale-specific formatting
|
|
3
|
+
* @param value - The numeric value to format
|
|
4
|
+
* @param locale - The locale to use for formatting (default: 'en-US')
|
|
5
|
+
* @param decimalPlaces - Number of decimal places to display (default: 2)
|
|
6
|
+
* @returns Formatted string representation of the amount
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* formatAmount(1234.56, 'en', 2) // "1,234.56"
|
|
10
|
+
* formatAmount(1234.56, 'fr', 2) // "1 234,56"
|
|
11
|
+
* formatAmount(1234.5, 'en', 2) // "1,234.50"
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatAmount(value: number, locale?: string, decimalPlaces?: number): string;
|
|
14
|
+
/**
|
|
15
|
+
* Parses a string input to a numeric value
|
|
16
|
+
* Handles various input formats including:
|
|
17
|
+
* - Comma and period separators
|
|
18
|
+
* - Negative numbers
|
|
19
|
+
* - Empty strings
|
|
20
|
+
*
|
|
21
|
+
* @param input - The string to parse
|
|
22
|
+
* @returns The parsed numeric value, or 0 if input is invalid
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* parseAmount("1,234.56") // 1234.56
|
|
26
|
+
* parseAmount("1.234,56") // 1234.56
|
|
27
|
+
* parseAmount("-100") // -100
|
|
28
|
+
* parseAmount("") // 0
|
|
29
|
+
* parseAmount("abc") // 0
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseAmount(input: string): number;
|
|
32
|
+
//# sourceMappingURL=qonto-amount-field.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-amount-field.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/amount-field/qonto-amount-field.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAa,EACrB,aAAa,GAAE,MAAU,GACxB,MAAM,CAcR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAqCjD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../styles/styles.css';
|
|
3
|
+
export declare class QontoBeneficiaryCard extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
beneficiaryName: string;
|
|
6
|
+
iban: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
private footerSlot;
|
|
9
|
+
private hasFooterContent;
|
|
10
|
+
private checkSlotContent;
|
|
11
|
+
firstUpdated(): void;
|
|
12
|
+
render(): import("lit").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=qonto-beneficiary-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-beneficiary-card.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,sBAAsB,CAAC;AAG9B,qBACa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAA8B;IAG3C,eAAe,EAAE,MAAM,CAAM;IAG7B,IAAI,EAAE,MAAM,CAAM;IAGlB,QAAQ,EAAE,MAAM,CAAM;IAGtB,OAAO,CAAC,UAAU,CAAmB;IAGrC,OAAO,CAAC,gBAAgB,CAAS;IAEjC,OAAO,CAAC,gBAAgB;IAMxB,YAAY;IAIZ,MAAM;CAcP"}
|
package/dist/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-beneficiary-card.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,yBA2ItC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { type LottieAnimationData } from './qonto-lottie-player.types.ts';
|
|
3
|
+
import '../styles/styles.css';
|
|
4
|
+
export declare class QontoLottiePlayer extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
animationData?: LottieAnimationData;
|
|
7
|
+
private containerRef;
|
|
8
|
+
private animation?;
|
|
9
|
+
protected firstUpdated(): void;
|
|
10
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
private loadAnimation;
|
|
13
|
+
private renderAnimation;
|
|
14
|
+
private destroyAnimation;
|
|
15
|
+
render(): import("lit").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=qonto-lottie-player.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,sBAAsB,CAAC;AAE9B,qBACa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,0BAA2B;IAGxC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IAEpC,OAAO,CAAC,YAAY,CAAoC;IACxD,OAAO,CAAC,SAAS,CAAC,CAAgB;cAEf,YAAY,IAAI,IAAI;IAI9B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMtD,oBAAoB,IAAI,IAAI;IAKrC,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,gBAAgB;IAOxB,MAAM;CAGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,yBASnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qonto-lottie-player.types.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/lottie-player/qonto-lottie-player.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/select-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|