@qonto/embed-sdk 0.45.0 → 0.46.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/index.umd.js +56 -56
- package/dist/mocks/handlers.d.ts +3 -0
- package/dist/mocks/handlers.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/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/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/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/{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/package.json +3 -3
- 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"}
|
|
@@ -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
|
-
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};
|
|
@@ -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 e}from"../common/runtime/runtime.validation.js";import{validateCreateUIElementParams as t}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{EmbedUIElementError as r}from"../errors/EmbedUIElementError.js";const m=async m=>{if(e())return;const{uiElementSettings:s,operationSettings:a={}}=m,{uiElementName:l}=t(s),{uiParentElementId:d}=n(a,{requiresUI:!0}),u=document.getElementById(d);if(!u)throw new r(`Could not find container element with id: ${d}`);if(l===i.TRANSFER_LIST)return void o({containerElement:u,uiElementSettings:s,operationSettings:a});const c=document.createElement(`qonto-${l}`);u.appendChild(c)};export{m as createUIElement};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configure-localization.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/localize/configure-localization.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAQ,SAAS;;GAAE,SAAS;;CAMjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-codes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/localize/generated/locale-codes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,aAAa,+CAAgD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,UAAU,qDAAsD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/de.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/es.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/fr.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/it.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/nl.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/localize/generated/locales/pt.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
package/dist/ui/ui-elements/{transfer-list.d.ts → transfer-list/create-transfer-list-element.d.ts}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './transfer-list';
|
|
1
2
|
import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
2
3
|
/**
|
|
3
4
|
* Creates and renders a transfer list UI element.
|
|
@@ -9,4 +10,4 @@ import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
|
9
10
|
* - uiElementSettings: Optional settings including event listeners
|
|
10
11
|
*/
|
|
11
12
|
export declare function createTransferListElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): void;
|
|
12
|
-
//# sourceMappingURL=transfer-list.d.ts.map
|
|
13
|
+
//# sourceMappingURL=create-transfer-list-element.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transfer-list-element.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/transfer-list/create-transfer-list-element.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAIpE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CAoBtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import '../styles/styles.css';
|
|
3
2
|
import type { OperationSettings } from '@validation/operation-settings-validation';
|
|
4
|
-
import '
|
|
3
|
+
import '../../customizable-components/styles/styles.css';
|
|
4
|
+
import '../../customizable-components/button/qonto-button.ts';
|
|
5
5
|
export declare class TransferList extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult;
|
|
7
7
|
operationSettings: OperationSettings | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAevC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAQnF,OAAO,iDAAiD,CAAC;AACzD,OAAO,sDAAsD,CAAC;AA4B9D,qBAEa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,SAAS,CAA6B;IAG9C,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAElC,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,cAAc;IA8B5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,cAAc;IAOtB,MAAM;CA8EP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-list.events.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/transfer-list/transfer-list.events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,qBAAa,qBAAsB,SAAQ,WAAW,CAAC,2BAA2B,CAAC;gBACrE,MAAM,EAAE,2BAA2B;CAOhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBA+J9B,CAAC"}
|
package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.utils.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SepaTransferStatus } from '@types';
|
|
2
|
-
import { type Level } from '
|
|
3
|
-
import '
|
|
2
|
+
import { type Level } from '../../customizable-components/badge-status/qonto-badge-status.ts';
|
|
3
|
+
import '../../customizable-components/skeleton-loader/qonto-skeleton-loader-line.ts';
|
|
4
4
|
import type { DirectiveResult } from 'lit/directive.js';
|
|
5
5
|
export declare function mapTransferStatusToBadgeLevel(transferStatus: SepaTransferStatus): Level;
|
|
6
6
|
export declare function renderLoadingTableRowsMarkup(amountOfRows?: number): DirectiveResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-list.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui-elements/transfer-list/transfer-list.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAEL,KAAK,KAAK,EACX,MAAM,kEAAkE,CAAC;AAC1E,OAAO,6EAA6E,CAAC;AAGrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,wBAAgB,6BAA6B,CAC3C,cAAc,EAAE,kBAAkB,GACjC,KAAK,CAeP;AAED,wBAAgB,4BAA4B,CAC1C,YAAY,GAAE,MAAU,GACvB,eAAe,CAcjB"}
|
package/dist/ui/ui-elements.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-elements.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-elements.d.ts","sourceRoot":"","sources":["../../src/ui/ui-elements.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,uBAAuB,CAAC;AAMhF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,uBAAuB,eAAe,CAAC,OAAO,CAAC,KAC9C,OAAO,CAAC,IAAI,CA8Bd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qonto/embed-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Library to embed Qonto features in your application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"test:coverage": "vitest run --coverage",
|
|
76
76
|
"test:watch": "vitest",
|
|
77
77
|
"typecheck": "tsc --noEmit",
|
|
78
|
-
"ui-elements:localize:build": "lit-localize --config
|
|
79
|
-
"ui-elements:localize:extract": "lit-localize --config
|
|
78
|
+
"ui-elements:localize:build": "lit-localize --config src/ui/ui-elements/lit-localize.json build",
|
|
79
|
+
"ui-elements:localize:extract": "lit-localize --config src/ui/ui-elements/lit-localize.json extract"
|
|
80
80
|
},
|
|
81
81
|
"browserslist": [
|
|
82
82
|
"last 6 Chrome major version",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BADGE_LEVELS as e}from"../badge-status/qonto-badge-status.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";import"../skeleton-loader/qonto-skeleton-loader-line.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 +0,0 @@
|
|
|
1
|
-
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/customizable-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configure-localization.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/localize/configure-localization.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAQ,SAAS;;GAAE,SAAS;;CAMjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"locale-codes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/customizable-components/localize/generated/locale-codes.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,aAAa,+CAAgD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,UAAU,qDAAsD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/de.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/es.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/fr.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/it.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/nl.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/customizable-components/localize/generated/locales/pt.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,OAAO,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAInF,OAAO,2BAA2B,CAAC;AA6BnC,qBAEa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAsB;IAGnC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,SAAS,CAA6B;IAG9C,OAAO,CAAC,eAAe,CAA8B;IAGrD,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAElC,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,cAAc;IA8B5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,cAAc;IAOtB,MAAM;CA8EP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-list.events.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,qBAAa,qBAAsB,SAAQ,WAAW,CAAC,2BAA2B,CAAC;gBACrE,MAAM,EAAE,2BAA2B;CAOhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBA+J9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-list.utils.d.ts","sourceRoot":"","sources":["../../../../src/ui/customizable-components/transfer-list/transfer-list.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAEL,KAAK,KAAK,EACX,MAAM,uCAAuC,CAAC;AAG/C,OAAO,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,wBAAgB,6BAA6B,CAC3C,cAAc,EAAE,kBAAkB,GACjC,KAAK,CAeP;AAED,wBAAgB,4BAA4B,CAC1C,YAAY,GAAE,MAAU,GACvB,eAAe,CAcjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements/transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAIpE;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,IAAI,CAoBtC"}
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/configure-localization.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locale-codes.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/de.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/es.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/fr.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/it.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/nl.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/localize/generated/locales/pt.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.events.js
RENAMED
|
File without changes
|
/package/dist/src/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.styles.js
RENAMED
|
File without changes
|
/package/dist/ui/{customizable-components → ui-elements}/localize/configure-localization.d.ts
RENAMED
|
File without changes
|
/package/dist/ui/{customizable-components → ui-elements}/localize/generated/locale-codes.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.events.d.ts
RENAMED
|
File without changes
|
/package/dist/ui/{customizable-components → ui-elements}/transfer-list/transfer-list.styles.d.ts
RENAMED
|
File without changes
|