@qonto/embed-sdk 0.67.0 → 0.69.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/cards/client/cards.client.d.ts.map +1 -1
- package/dist/common/common.types.d.ts +0 -1
- package/dist/common/common.types.d.ts.map +1 -1
- package/dist/common/common.utils.d.ts +3 -4
- package/dist/common/common.utils.d.ts.map +1 -1
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/initialize/initialize.validate.d.ts.map +1 -1
- package/dist/common/operation-settings/operation-settings.d.ts +0 -2
- package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/mocks/handlers.d.ts +2 -1
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/organizations/client/organizations.client.d.ts +33 -1
- package/dist/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/organizations/index.d.ts +3 -0
- package/dist/organizations/index.d.ts.map +1 -1
- package/dist/organizations/index.server.d.ts +3 -0
- package/dist/organizations/index.server.d.ts.map +1 -1
- package/dist/organizations/server/organizations.server.d.ts +24 -1
- package/dist/organizations/server/organizations.server.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.api.d.ts +11 -1
- package/dist/organizations/shared/organizations.api.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.serializer.d.ts +2 -1
- package/dist/organizations/shared/organizations.serializer.d.ts.map +1 -1
- package/dist/organizations/shared/organizations.types.d.ts +54 -0
- package/dist/organizations/shared/organizations.types.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/index.d.ts +1 -1
- package/dist/sepa-transfers/shared/sepa-transfers.api.d.ts +3 -3
- package/dist/server/cards/client/cards.client.d.ts.map +1 -1
- package/dist/server/common/common.types.d.ts +0 -1
- package/dist/server/common/common.types.d.ts.map +1 -1
- package/dist/server/common/common.utils.d.ts +3 -4
- package/dist/server/common/common.utils.d.ts.map +1 -1
- package/dist/server/common/constants.d.ts +1 -0
- package/dist/server/common/constants.d.ts.map +1 -1
- package/dist/server/common/initialize/initialize.validate.d.ts.map +1 -1
- package/dist/server/common/operation-settings/operation-settings.d.ts +0 -2
- package/dist/server/common/operation-settings/operation-settings.d.ts.map +1 -1
- package/dist/server/index.server.umd.js +1 -1
- package/dist/server/mocks/handlers.d.ts +2 -1
- package/dist/server/mocks/handlers.d.ts.map +1 -1
- package/dist/server/organizations/client/organizations.client.d.ts +33 -1
- package/dist/server/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/server/organizations/index.d.ts +3 -0
- package/dist/server/organizations/index.d.ts.map +1 -1
- package/dist/server/organizations/index.server.d.ts +3 -0
- package/dist/server/organizations/index.server.d.ts.map +1 -1
- package/dist/server/organizations/server/organizations.server.d.ts +24 -1
- package/dist/server/organizations/server/organizations.server.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.api.d.ts +11 -1
- package/dist/server/organizations/shared/organizations.api.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.serializer.d.ts +2 -1
- package/dist/server/organizations/shared/organizations.serializer.d.ts.map +1 -1
- package/dist/server/organizations/shared/organizations.types.d.ts +54 -0
- package/dist/server/organizations/shared/organizations.types.d.ts.map +1 -1
- package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
- package/dist/server/sepa-transfers/bulk-transfers/index.d.ts +1 -1
- package/dist/server/sepa-transfers/shared/sepa-transfers.api.d.ts +3 -3
- package/dist/server/src/common/common.utils.js +1 -1
- package/dist/server/src/common/operation-settings/operation-settings.js +1 -1
- package/dist/server/src/errors/AuthenticationError.js +1 -1
- package/dist/server/src/organizations/index.server.js +1 -1
- package/dist/server/src/organizations/server/organizations.server.js +1 -1
- package/dist/server/src/organizations/shared/organizations.api.js +1 -1
- package/dist/server/src/organizations/shared/organizations.serializer.js +1 -1
- package/dist/server/src/validation/operation-settings-validation.js +1 -1
- package/dist/server/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts.map +1 -1
- package/dist/server/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +1 -1
- package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -1
- package/dist/server/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts +1 -1
- package/dist/server/ui/ui-elements/transaction-list/transaction-list.d.ts.map +1 -1
- package/dist/server/ui/ui-elements/transfer-list/create-transfer-list-element.d.ts +1 -1
- package/dist/server/ui/ui-elements.types.d.ts +2 -3
- package/dist/server/ui/ui-elements.types.d.ts.map +1 -1
- package/dist/server/validation/operation-settings-validation.d.ts +8 -45
- package/dist/server/validation/operation-settings-validation.d.ts.map +1 -1
- package/dist/src/cards/client/cards.client.js +1 -1
- package/dist/src/common/common.utils.js +1 -1
- package/dist/src/common/constants.js +1 -1
- package/dist/src/common/initialize/initialize.validate.js +1 -1
- package/dist/src/common/operation-settings/operation-settings.js +1 -1
- package/dist/src/errors/AuthenticationError.js +1 -1
- package/dist/src/organizations/client/organizations.client.js +1 -1
- package/dist/src/organizations/index.js +1 -1
- package/dist/src/organizations/shared/organizations.api.js +1 -1
- package/dist/src/organizations/shared/organizations.serializer.js +1 -1
- package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
- package/dist/src/sepa-transfers/shared/sepa-transfers.utils.js +1 -1
- package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +1 -1
- package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +7 -7
- package/dist/src/ui/ui-elements/transaction-list/transaction-list.js +4 -4
- package/dist/src/validation/operation-settings-validation.js +1 -1
- package/dist/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.d.ts.map +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts +1 -1
- package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.d.ts.map +1 -1
- package/dist/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts +1 -1
- package/dist/ui/ui-elements/transaction-list/transaction-list.d.ts.map +1 -1
- package/dist/ui/ui-elements/transfer-list/create-transfer-list-element.d.ts +1 -1
- package/dist/ui/ui-elements.types.d.ts +2 -3
- package/dist/ui/ui-elements.types.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +8 -45
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/server/src/errors/EmbedOperationError.js +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Beneficiary, BeneficiaryDataObject } from '@beneficiaries/shared/beneficiaries.types';
|
|
2
2
|
import type { CardDataObject } from '@cards/shared/cards.types';
|
|
3
|
-
import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/shared/organizations.types';
|
|
3
|
+
import type { BankAccountDataObject, MembershipDataObject, OrganizationDataObject } from '@organizations/shared/organizations.types';
|
|
4
4
|
import type { BulkTransferDataObject, BulkTransferSettings, NewBulkTransfer, NewBulkTransferWithBeneficiary } from '@sepa-transfers/bulk-transfers/shared/bulk-transfers.types';
|
|
5
5
|
import type { SepaTransferDataObject } from '@sepa-transfers/shared/sepa-transfers.types';
|
|
6
6
|
import type { TransactionDataObject } from '@transactions/shared/transactions.types';
|
|
7
7
|
export declare const INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN";
|
|
8
8
|
export declare const mockedBankAccountsList: BankAccountDataObject[];
|
|
9
9
|
export declare const mockedOrganization: OrganizationDataObject;
|
|
10
|
+
export declare const mockedMembership: MembershipDataObject;
|
|
10
11
|
export declare const singleBeneficiary: BeneficiaryDataObject;
|
|
11
12
|
export declare const newBeneficiaryDbFields: {
|
|
12
13
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/mocks/handlers.ts"],"names":[],"mappings":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ccount, Organization } from '../shared/organizations.types';
|
|
2
|
+
import type { BankAccount, Membership, Organization } from '../shared/organizations.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the organization information.
|
|
5
5
|
*
|
|
@@ -44,4 +44,36 @@ export declare const getOrganization: ({ operationSettings, }: {
|
|
|
44
44
|
export declare const getBankAccounts: ({ operationSettings, }: {
|
|
45
45
|
operationSettings: ClientOperationSettings;
|
|
46
46
|
}) => Promise<BankAccount[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves the membership information for the current user.
|
|
49
|
+
*
|
|
50
|
+
* **Client-side only** - Uses proxy-based authentication.
|
|
51
|
+
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
52
|
+
*
|
|
53
|
+
* @param params - (Optional) An object containing:
|
|
54
|
+
* - `operationSettings`: (Optional) An object with operation-level settings such as
|
|
55
|
+
* `proxyEndpointDescriptor`. If not provided here, the settings previously passed
|
|
56
|
+
* to the `initialize` function will be used.
|
|
57
|
+
* @returns A promise that resolves to the membership information for the current user.
|
|
58
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided here
|
|
59
|
+
* or via `initialize`.
|
|
60
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```
|
|
64
|
+
* // Using proxyEndpointDescriptor passed to initialize
|
|
65
|
+
* const membership = await getMembership();
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```
|
|
70
|
+
* // Passing proxyEndpointDescriptor per-call
|
|
71
|
+
* const membership = await getMembership({
|
|
72
|
+
* operationSettings: { proxyEndpointDescriptor }
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare const getMembership: ({ operationSettings, }?: {
|
|
77
|
+
operationSettings?: ClientOperationSettings;
|
|
78
|
+
}) => Promise<Membership>;
|
|
47
79
|
//# sourceMappingURL=organizations.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAYnD,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EAEV,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,YAAY,CAkBvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,WAAW,EAAE,CAgBxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,aAAa,GAAU,yBAEjC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,UAAU,CAiB1B,CAAC"}
|
|
@@ -21,6 +21,9 @@ export declare const organizations: {
|
|
|
21
21
|
getBankAccounts: ({ operationSettings, }: {
|
|
22
22
|
operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
|
|
23
23
|
}) => Promise<import("./index.server").BankAccount[]>;
|
|
24
|
+
getMembership: ({ operationSettings, }?: {
|
|
25
|
+
operationSettings?: import("@validation/operation-settings-validation").ClientOperationSettings;
|
|
26
|
+
}) => Promise<import("./index.server").Membership>;
|
|
24
27
|
};
|
|
25
28
|
export type * from './shared/organizations.types';
|
|
26
29
|
export type { ClientOperationSettings, ClientOperationSettingsWithUI, } from '@validation/operation-settings-validation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;;;;;;yBAYwhH,CAAC;;CARljH,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
|
|
@@ -26,6 +26,9 @@ export declare const organizations: {
|
|
|
26
26
|
getBankAccounts: ({ operationSettings, }?: {
|
|
27
27
|
operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
|
|
28
28
|
}) => Promise<import("./index.server").BankAccount[]>;
|
|
29
|
+
getMembership: ({ operationSettings, }?: {
|
|
30
|
+
operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
|
|
31
|
+
}) => Promise<import("./index.server").Membership>;
|
|
29
32
|
};
|
|
30
33
|
export type * from './shared/organizations.types';
|
|
31
34
|
export type { ServerOperationSettings } from '@validation/operation-settings-validation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBASgT,CAAC;;;yBAAoqC,CAAC;;;yBAAqrC,CAAC;;CALrqF,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServerOperationSettings } from '@validation/operation-settings-validation';
|
|
2
|
-
import type { BankAccount, Organization } from '../shared/organizations.types';
|
|
2
|
+
import type { BankAccount, Membership, Organization } from '../shared/organizations.types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the organization information.
|
|
5
5
|
*
|
|
@@ -46,4 +46,27 @@ export declare const getOrganization: ({ operationSettings, }?: {
|
|
|
46
46
|
export declare const getBankAccounts: ({ operationSettings, }?: {
|
|
47
47
|
operationSettings?: ServerOperationSettings;
|
|
48
48
|
}) => Promise<BankAccount[]>;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the membership information for the current user.
|
|
51
|
+
*
|
|
52
|
+
* **Server-side only** - Uses accessToken-based authentication.
|
|
53
|
+
* For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
|
|
54
|
+
*
|
|
55
|
+
* @param params - An object containing:
|
|
56
|
+
* - `operationSettings`: (Optional) An object with operation-level settings such as
|
|
57
|
+
* `accessToken` and `stagingToken`.
|
|
58
|
+
* @returns A promise that resolves to the membership information for the current user.
|
|
59
|
+
* @throws `AuthenticationError` If the `accessToken` is invalid or missing.
|
|
60
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```
|
|
64
|
+
* const membership = await getMembership({
|
|
65
|
+
* operationSettings: { accessToken: 'your-token' }
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare const getMembership: ({ operationSettings, }?: {
|
|
70
|
+
operationSettings?: ServerOperationSettings;
|
|
71
|
+
}) => Promise<Membership>;
|
|
49
72
|
//# sourceMappingURL=organizations.server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAYzF,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,YAAY,CAS5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,WAAW,EAAE,CAS7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,aAAa,GAAU,yBAEjC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,UAAU,CAS1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type NetworkCallDescriptor } from '@common/network/network';
|
|
2
|
-
import type { BankAccountDataObject, OrganizationDataObject } from './organizations.types';
|
|
2
|
+
import type { BankAccountDataObject, MembershipDataObject, OrganizationDataObject } from './organizations.types';
|
|
3
3
|
export declare const prepareGetOrganization: ({ accessToken, stagingToken, }: {
|
|
4
4
|
accessToken?: string;
|
|
5
5
|
stagingToken?: string;
|
|
@@ -20,4 +20,14 @@ export declare const getBankAccounts: ({ accessToken, stagingToken, }: {
|
|
|
20
20
|
}) => Promise<{
|
|
21
21
|
bank_accounts: BankAccountDataObject[];
|
|
22
22
|
}>;
|
|
23
|
+
export declare const prepareGetMembership: ({ accessToken, stagingToken, }: {
|
|
24
|
+
accessToken?: string;
|
|
25
|
+
stagingToken?: string;
|
|
26
|
+
}) => NetworkCallDescriptor;
|
|
27
|
+
export declare const getMembership: ({ accessToken, stagingToken, }: {
|
|
28
|
+
accessToken: string;
|
|
29
|
+
stagingToken?: string;
|
|
30
|
+
}) => Promise<{
|
|
31
|
+
membership: MembershipDataObject;
|
|
32
|
+
}>;
|
|
23
33
|
//# sourceMappingURL=organizations.api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAM/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;AAEF,eAAO,MAAM,oBAAoB,GAAI,gCAGlC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,aAAa,GAAU,gCAGjC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,UAAU,EAAE,oBAAoB,CAAA;CAAE,CAS/C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { BankAccount, BankAccountDataObject, Organization, OrganizationDataObject } from './organizations.types';
|
|
1
|
+
import type { BankAccount, BankAccountDataObject, Membership, MembershipDataObject, Organization, OrganizationDataObject } from './organizations.types';
|
|
2
2
|
export declare const serializeOrganization: (organization: OrganizationDataObject) => Organization;
|
|
3
3
|
export declare const serializeBankAccount: (bankAccount: BankAccountDataObject) => BankAccount;
|
|
4
|
+
export declare const serializeMembership: (membership: MembershipDataObject) => Membership;
|
|
4
5
|
//# sourceMappingURL=organizations.serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/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
|
+
{"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,UAAU,EACV,oBAAoB,EACpB,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;AAEF,eAAO,MAAM,mBAAmB,GAC9B,YAAY,oBAAoB,KAC/B,UAaF,CAAC"}
|
|
@@ -103,4 +103,58 @@ export interface Organization {
|
|
|
103
103
|
contractSignedAt: string;
|
|
104
104
|
bankAccounts: BankAccount[];
|
|
105
105
|
}
|
|
106
|
+
export interface MembershipDataObject {
|
|
107
|
+
id: string;
|
|
108
|
+
user_id: string;
|
|
109
|
+
organization_id: string;
|
|
110
|
+
first_name: string;
|
|
111
|
+
last_name: string;
|
|
112
|
+
email: string;
|
|
113
|
+
role: string;
|
|
114
|
+
status: string;
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
}
|
|
118
|
+
export interface Membership {
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the membership.
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the user associated with this membership.
|
|
125
|
+
*/
|
|
126
|
+
userId: string;
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the organization this membership belongs to.
|
|
129
|
+
*/
|
|
130
|
+
organizationId: string;
|
|
131
|
+
/**
|
|
132
|
+
* The first name of the user.
|
|
133
|
+
*/
|
|
134
|
+
firstName: string;
|
|
135
|
+
/**
|
|
136
|
+
* The last name of the user.
|
|
137
|
+
*/
|
|
138
|
+
lastName: string;
|
|
139
|
+
/**
|
|
140
|
+
* The email address of the user.
|
|
141
|
+
*/
|
|
142
|
+
email: string;
|
|
143
|
+
/**
|
|
144
|
+
* The role of the user in the organization (e.g., 'owner', 'admin', 'employee').
|
|
145
|
+
*/
|
|
146
|
+
role: string;
|
|
147
|
+
/**
|
|
148
|
+
* The status of the membership (e.g., 'active', 'inactive', 'pending').
|
|
149
|
+
*/
|
|
150
|
+
status: string;
|
|
151
|
+
/**
|
|
152
|
+
* The date and time when the membership was created.
|
|
153
|
+
*/
|
|
154
|
+
createdAt: string;
|
|
155
|
+
/**
|
|
156
|
+
* The date and time when the membership was last updated.
|
|
157
|
+
*/
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
}
|
|
106
160
|
//# sourceMappingURL=organizations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/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,CAA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,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/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,EA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AAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-transfers.client.d.ts","sourceRoot":"","sources":["../../../../../src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-transfers.client.d.ts","sourceRoot":"","sources":["../../../../../src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAiBzF,OAAO,KAAK,EACV,YAAY,EAEZ,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,wBAAwB,EACxB,8BAA8B,EAC9B,+BAA+B,EAEhC,MAAM,gCAAgC,CAAC;AAMxC;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAkCnC;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAqBnE;AAqBD;;GAEG;AACH,UAAU,8BAA8B;IACtC,oBAAoB,EAAE,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;GASG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,8BAA8B,GAAG,cAAc,CAChD,+BAA+B,EAAE,EACjC,0BAA0B,GAAG,SAAS,CACvC,CAkEA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createBulkTransfer, getBulkTransfer, getBulkTransfers } from './client/bulk-transfers.client';
|
|
2
2
|
/**
|
|
3
3
|
* The bulkTransfers namespace contains client-side functions for SEPA bulk transfer operations.
|
|
4
|
-
* This version uses proxy-based authentication (
|
|
4
|
+
* This version uses proxy-based authentication (proxyEndpointDescriptor)
|
|
5
5
|
* and is designed for browser environments.
|
|
6
6
|
*
|
|
7
7
|
* For server-side operations using access tokens, import from '\@qonto/embed-sdk/server/sepa-transfers' and access sepaTransfers.bulkTransfers.
|
|
@@ -46,7 +46,7 @@ export declare function prepareGetSepaTransfersCall({ paginationSettings, access
|
|
|
46
46
|
export declare function getSepaTransfers({ accessToken, stagingToken, paginationSettings, }: GetSepaTransfersParams): Promise<GetSepaTransfersApiResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Prepares a network call descriptor for fetching a single SEPA transfer by ID.
|
|
49
|
-
* This function is used internally to support
|
|
49
|
+
* This function is used internally to support the proxyEndpointDescriptor flow
|
|
50
50
|
* and the access token flow in the getSepaTransfer function.
|
|
51
51
|
*
|
|
52
52
|
* @param params - An object containing:
|
|
@@ -65,7 +65,7 @@ export declare function prepareGetSepaTransferCall({ sepaTransferId, accessToken
|
|
|
65
65
|
export declare function getSepaTransfer({ accessToken, stagingToken, sepaTransferId, }: GetSepaTransferParams): Promise<SepaTransferDataObject>;
|
|
66
66
|
/**
|
|
67
67
|
* Prepares a network call descriptor for creating a SEPA transfer.
|
|
68
|
-
* This function is used internally to support
|
|
68
|
+
* This function is used internally to support the proxyEndpointDescriptor flow
|
|
69
69
|
* and the access token flow in the createSepaTransfer function.
|
|
70
70
|
*
|
|
71
71
|
* @param params - An object containing:
|
|
@@ -82,7 +82,7 @@ export declare function prepareCreateSepaTransferCall({ transfer, vopProofToken,
|
|
|
82
82
|
export declare function createSepaTransfer({ transfer, vopProofToken, accessToken, stagingToken, scaSessionToken, idempotencyKey, }: CreateSepaTransferParams): Promise<SepaTransferDataObject>;
|
|
83
83
|
/**
|
|
84
84
|
* Prepares a network call descriptor for canceling a SEPA transfer by ID.
|
|
85
|
-
* This function is used internally to support
|
|
85
|
+
* This function is used internally to support the proxyEndpointDescriptor flow
|
|
86
86
|
* and the access token flow in the cancelSepaTransfer function.
|
|
87
87
|
*
|
|
88
88
|
* @param params - An object containing:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildRequestHeaders as
|
|
1
|
+
import{buildRequestHeaders as t,encodeNetworkCall as o,decodeNetworkResponse as r}from"./network/network.js";import{EmbedApiError as e}from"../errors/EmbedApiError.js";async function s({networkCallDescriptor:s,proxyEndpointDescriptor:n}){const a={...Object.fromEntries([...t(s.options?.headers)??{}])},i={...s,options:{...s.options,headers:a}},p=o(i),d=await fetch(n.path,{method:n.method,headers:n.options.headers,body:p}),m=await d.text(),h=r(m);if(!d.ok)throw new e({code:d.status,data:h,message:`Error from proxy endpoint: ${d.status} ${d.statusText}`});return h}export{s as callProxyFunction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{MFA_METHODS as e}from"../constants.js";class t{constructor(){this.mfaPreference=e.PASSKEY,this.debugMode=!1}static getInstance(){return t.instance||(t.instance=new t),t.instance}setSettings(e){e.uiParentElementId&&(this.uiParentElementId=e.uiParentElementId),e.mfaPreference&&(this.mfaPreference=e.mfaPreference),e.debugMode&&(this.debugMode=e.debugMode),e.
|
|
1
|
+
import{MFA_METHODS as e}from"../constants.js";class t{constructor(){this.mfaPreference=e.PASSKEY,this.debugMode=!1}static getInstance(){return t.instance||(t.instance=new t),t.instance}setSettings(e){e.uiParentElementId&&(this.uiParentElementId=e.uiParentElementId),e.mfaPreference&&(this.mfaPreference=e.mfaPreference),e.debugMode&&(this.debugMode=e.debugMode),e.proxyEndpointDescriptor&&(this.proxyEndpointDescriptor=e.proxyEndpointDescriptor)}getUIParentElementId(){return this.uiParentElementId}getMFAPreference(){return this.mfaPreference}getDebugMode(){return this.debugMode}getProxyEndpointDescriptor(){return this.proxyEndpointDescriptor}clearSettings(){this.uiParentElementId=void 0,this.mfaPreference=e.PASSKEY,this.debugMode=!1,this.proxyEndpointDescriptor=void 0}getSettings(){return{uiParentElementId:this.uiParentElementId,mfaPreference:this.mfaPreference,debugMode:this.debugMode}}}const r=t.getInstance();export{t as OperationSettingsManager,r as operationSettingsManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{QontoEmbedSdkError as
|
|
1
|
+
import{QontoEmbedSdkError as t}from"./QontoEmbedSdkError.js";class e extends t{constructor(){super(),this.name="AuthenticationError",this.message="Authentication failed due to missing or invalid authentication method. Provide either a proxyEndpointDescriptor or accessToken, either as parameters or by calling the initialize function first."}}export{e as AuthenticationError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getBankAccounts as r,getOrganization as
|
|
1
|
+
import{getMembership as e,getBankAccounts as r,getOrganization as t}from"./server/organizations.server.js";const o={getOrganization:t,getBankAccounts:r,getMembership:e};export{o as organizations};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as a}from"../../common/auth/auth.validate.js";import{
|
|
1
|
+
import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as a}from"../../common/auth/auth.validate.js";import{getMembership as n,getBankAccounts as s,getOrganization as t}from"../shared/organizations.api.js";import{serializeMembership as o,serializeBankAccount as e,serializeOrganization as i}from"../shared/organizations.serializer.js";const r=async({operationSettings:n}={})=>{const{accessToken:s,stagingToken:o}=n||{},e=s||a(),r=await t({accessToken:e,stagingToken:o});return i(r.organization)},c=async({operationSettings:n}={})=>{const{accessToken:t,stagingToken:o}=n||{},i=t||a();return(await s({accessToken:i,stagingToken:o})).bank_accounts.map(e)},g=async({operationSettings:s}={})=>{const{accessToken:t,stagingToken:e}=s||{},i=t||a(),r=await n({accessToken:i,stagingToken:e});return o(r.membership)};export{c as getBankAccounts,g as getMembership,r as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
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}}}),
|
|
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}}}),s=async({accessToken:s,stagingToken:o})=>{const a=e({accessToken:s,stagingToken:o});return await n(a)},o=({accessToken:n,stagingToken:e})=>({path:"/v2/bank_accounts/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),a=async({accessToken:e,stagingToken:s})=>{const a=o({accessToken:e,stagingToken:s});return await n(a)},t=({accessToken:n,stagingToken:e})=>({path:"/v2/membership/",options:{method:"GET",headers:{accessToken:n,stagingToken:e}}}),c=async({accessToken:e,stagingToken:s})=>{const o=t({accessToken:e,stagingToken:s});return await n(o)};export{a as getBankAccounts,c as getMembership,s as getOrganization,o as prepareGetBankAccounts,t as prepareGetMembership,e as prepareGetOrganization};
|
|
@@ -1 +1 @@
|
|
|
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
|
+
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}),t=a=>({id:a.id,userId:a.user_id,organizationId:a.organization_id,firstName:a.first_name,lastName:a.last_name,email:a.email,role:a.role,status:a.status,createdAt:a.created_at,updatedAt:a.updated_at});export{e as serializeBankAccount,t as serializeMembership,a as serializeOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{MFA_METHODS as e}from"../common/constants.js";import{environmentManager as t}from"../common/environment/environment-manager.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{InvalidParametersError as o}from"../errors/InvalidParametersError.js";const r={requiresUI:!1};function i(i,{requiresUI:
|
|
1
|
+
import{MFA_METHODS as e}from"../common/constants.js";import{environmentManager as t}from"../common/environment/environment-manager.js";import{operationSettingsManager as n}from"../common/operation-settings/operation-settings.js";import{InvalidParametersError as o}from"../errors/InvalidParametersError.js";const r={requiresUI:!1};function i(i,{requiresUI:a}=r){const s=i?.uiParentElementId||n.getUIParentElementId();if(a){if(!s)throw new o("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 s))throw new o("operationSettings.uiParentElementId must be a string or a function returning an HTMLElement")}const m=i?.mfaPreference||n.getMFAPreference();if(m){const n=(c=Object.values(e),t.isProductionEnvironment()?c.filter((t=>t!==e.MOCK)):c);if(!n.includes(m))throw new o(`operationSettings.mfaPreference must be one of ${n.join(", ")}`);if(t.isProductionEnvironment()&&m===e.MOCK)throw new o("operationSettings.mfaPreference cannot be set to mock in production environment.")}var c;const p=i?.debugMode||n.getDebugMode();if(void 0!==p&&"boolean"!=typeof p)throw new o("operationSettings.debugMode must be a boolean.");const f=i?.proxyEndpointDescriptor||n.getProxyEndpointDescriptor();if(f&&!f.path)throw new o("operationSettings.proxyEndpointDescriptor must have at least a string-formatted path property.");return{...i,uiParentElementId:s,mfaPreference:m,debugMode:p,proxyEndpointDescriptor:f}}export{i as validateOperationSettingsParams};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qonto-sca-passkey-waiting.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAMxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAGtF,OAAO,oEAAoE,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAC9D,OAAO,0DAA0D,CAAC;AAClE,OAAO,uDAAuD,CAAC;AAC/D,OAAO,iDAAiD,CAAC;AAMzD,qBAEa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,0BAAgC;IAG7C,gBAAgB,EAAE,MAAM,CAAM;IAG9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;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F"}
|
package/dist/server/ui/ui-elements/sepa-transfer-creation/create-sepa-transfer-creation-element.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
|
6
6
|
*
|
|
7
7
|
* @param params - Object containing:
|
|
8
8
|
* - containerElement: The DOM element where the component will be appended
|
|
9
|
-
* - operationSettings: Settings passed to the component (accessToken,
|
|
9
|
+
* - operationSettings: Settings passed to the component (accessToken, proxyEndpointDescriptor, locale, etc.)
|
|
10
10
|
* - uiElementSettings: Optional settings including event listeners
|
|
11
11
|
*/
|
|
12
12
|
export declare function createSepaTransferCreationElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sepa-transfer-creation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAgBvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AASnF,OAAO,uCAAuC,CAAC;AAC/C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,iDAAiD,CAAC;AASzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE;;;;;;;;;;;;;GAaG;AACH,qBAEa,oBAAqB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAA8B;IAG3C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,OAAO,CAAC,WAAW,CACyB;IAG5C,OA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jB,oBAAoB;IAoBpB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,4BAA4B,CA4DlC;IAEF,OAAO,CAAC,8BAA8B,CAYpC;IAEF,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,uBAAuB,CAkD7B;IAEF,MAAM;CA+CP"}
|
|
@@ -7,7 +7,7 @@ import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
|
7
7
|
*
|
|
8
8
|
* @param params - Object containing:
|
|
9
9
|
* - containerElement: The DOM element where the component will be appended
|
|
10
|
-
* - operationSettings: Settings passed to the component (accessToken,
|
|
10
|
+
* - operationSettings: Settings passed to the component (accessToken, proxyEndpointDescriptor, paginationSettings, etc.)
|
|
11
11
|
* - uiElementSettings: Optional settings including event listeners
|
|
12
12
|
*/
|
|
13
13
|
export declare function createTransactionListElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<GetTransactionsSettings>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-list.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/transaction-list/transaction-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAMnF,OAAO,iDAAiD,CAAC;AACzD,OAAO,sDAAsD,CAAC;AAC9D,OAAO,uDAAuD,CAAC;AAE/D,qBAEa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,0BAAe;IAG5B,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAGzD,OAAO,CAAC,YAAY,CAA4B;IAGhD,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,iBAAiB;
|
|
1
|
+
{"version":3,"file":"transaction-list.d.ts","sourceRoot":"","sources":["../../../../../src/ui/ui-elements/transaction-list/transaction-list.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EAGxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAMnF,OAAO,iDAAiD,CAAC;AACzD,OAAO,sDAAsD,CAAC;AAC9D,OAAO,uDAAuD,CAAC;AAE/D,qBAEa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,0BAAe;IAG5B,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAGzD,OAAO,CAAC,YAAY,CAA4B;IAGhD,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,iBAAiB;IAiC/B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,cAAc;IAOtB,MAAM;CAsEP"}
|
|
@@ -6,7 +6,7 @@ import type { UIElementCreatorParams } from '@ui/ui-elements.types';
|
|
|
6
6
|
*
|
|
7
7
|
* @param params - Object containing:
|
|
8
8
|
* - containerElement: The DOM element where the component will be appended
|
|
9
|
-
* - operationSettings: Settings passed to the component (accessToken,
|
|
9
|
+
* - operationSettings: Settings passed to the component (accessToken, proxyEndpointDescriptor, paginationSettings, etc.)
|
|
10
10
|
* - uiElementSettings: Optional settings including event listeners
|
|
11
11
|
*/
|
|
12
12
|
export declare function createTransferListElement({ containerElement, uiElementSettings, operationSettings, }: UIElementCreatorParams<never>): void;
|
|
@@ -44,8 +44,7 @@ export interface UIElementSettings<T> {
|
|
|
44
44
|
* initialize function previously) and contains settings related
|
|
45
45
|
* to the overall operation. For UI elements, it has to include at least the
|
|
46
46
|
* `uiParentElementId`, which specifies the DOM element where the UI element
|
|
47
|
-
* will be appended. In addition, it may include authentication details
|
|
48
|
-
* the preferred method is to provide a `proxyRequestFunction`.
|
|
47
|
+
* will be appended. In addition, it may include authentication details via `proxyEndpointDescriptor`.
|
|
49
48
|
*/
|
|
50
49
|
export interface UIElementParams<T> {
|
|
51
50
|
uiElementSettings: UIElementSettings<T>;
|
|
@@ -66,7 +65,7 @@ export interface UIElementCreatorParams<T> {
|
|
|
66
65
|
*/
|
|
67
66
|
uiElementSettings?: UIElementSettings<T>;
|
|
68
67
|
/**
|
|
69
|
-
* Operation-level settings such as accessToken, stagingToken,
|
|
68
|
+
* Operation-level settings such as accessToken, stagingToken, proxyEndpointDescriptor, etc.
|
|
70
69
|
* These settings are passed directly to SDK API functions.
|
|
71
70
|
*/
|
|
72
71
|
operationSettings?: OperationSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-elements.types.d.ts","sourceRoot":"","sources":["../../../src/ui/ui-elements.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF;;GAEG;AACH,KAAK,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,UAAU,cAAc;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MA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IACzC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PaginationSettings } from '@common/api-pagination/api-pagination.types';
|
|
2
|
-
import type { ProxyEndpointDescriptor
|
|
2
|
+
import type { ProxyEndpointDescriptor } from '@common/common.types.ts';
|
|
3
3
|
import type { Locale } from '@common/locale/locale.types';
|
|
4
4
|
import type { MfaMethod } from '@common/operation-settings/operation-settings.types';
|
|
5
5
|
export type UIParentElementId = string | (() => HTMLElement);
|
|
@@ -49,26 +49,6 @@ export interface OperationSettings {
|
|
|
49
49
|
* is not subject to pagination, this parameter will be ignored.
|
|
50
50
|
*/
|
|
51
51
|
paginationSettings?: PaginationSettings;
|
|
52
|
-
/**
|
|
53
|
-
* `proxyRequestFunction` is a mechanism to avoid operating with sensitive
|
|
54
|
-
* information, like the access token and the staging token, in client side
|
|
55
|
-
* environments. Using them in client side could lead to data leak.It works as
|
|
56
|
-
* follows:
|
|
57
|
-
*
|
|
58
|
-
* Qonto Embed exposes a proxy endpoint in its API that is capable of getting
|
|
59
|
-
* requests prepared by the SDK. In your web application, you must implement a
|
|
60
|
-
* backend endpoint that receives a string value in the body,
|
|
61
|
-
* adds the access token in the `Authentication` header and calls the Qonto
|
|
62
|
-
* Embed proxy endpoint with the string payload you received. The `proxyRequestFunction`
|
|
63
|
-
* the SDK expects is a function in which you will implement the call to your
|
|
64
|
-
* backend endpoint. It receives a string parameter, it must perform a call to
|
|
65
|
-
* your endpoint and return the data the endpoint sends you back.
|
|
66
|
-
*
|
|
67
|
-
* The SDK will then decode the received data and return the appropriate return
|
|
68
|
-
* value to the called function. Read more about implementing the whole flow in
|
|
69
|
-
* [the Proxy Endpoint Implementation guide](https://docs.qonto.com/api-reference/embed-sdk-api/variables/overview-common).
|
|
70
|
-
*/
|
|
71
|
-
proxyRequestFunction?: ProxyRequestFunction;
|
|
72
52
|
/**
|
|
73
53
|
* `proxyEndpointDescriptor` is a mechanism to avoid operating with sensitive
|
|
74
54
|
* information, like the access token and the staging token, in client side
|
|
@@ -120,24 +100,6 @@ export type OperationSettingsWithUI = OperationSettings & {
|
|
|
120
100
|
* to authentication tokens should be avoided for security reasons.
|
|
121
101
|
*/
|
|
122
102
|
export interface ClientOperationSettings {
|
|
123
|
-
/**
|
|
124
|
-
* Required for client-side operations: either proxyRequestFunction or proxyEndpointDescriptor.
|
|
125
|
-
*
|
|
126
|
-
* `proxyRequestFunction` is a mechanism to avoid operating with sensitive
|
|
127
|
-
* information, like the access token and the staging token, in client side
|
|
128
|
-
* environments. Using them in client side could lead to data leak. It works as
|
|
129
|
-
* follows:
|
|
130
|
-
*
|
|
131
|
-
* Qonto Embed exposes a proxy endpoint in its API that is capable of getting
|
|
132
|
-
* requests prepared by the SDK. In your web application, you must implement a
|
|
133
|
-
* backend endpoint that receives a string value in the body,
|
|
134
|
-
* adds the access token in the `Authentication` header and calls the Qonto
|
|
135
|
-
* Embed proxy endpoint with the string payload you received. The `proxyRequestFunction`
|
|
136
|
-
* the SDK expects is a function in which you will implement the call to your
|
|
137
|
-
* backend endpoint. It receives a string parameter, it must perform a call to
|
|
138
|
-
* your endpoint and return the data the endpoint sends you back.
|
|
139
|
-
*/
|
|
140
|
-
proxyRequestFunction?: ProxyRequestFunction;
|
|
141
103
|
/**
|
|
142
104
|
* `proxyEndpointDescriptor` is a mechanism to avoid operating with sensitive
|
|
143
105
|
* information, like the access token and the staging token, in client side
|
|
@@ -240,7 +202,6 @@ export interface ServerOperationSettings {
|
|
|
240
202
|
* Client-only properties are explicitly excluded from server settings.
|
|
241
203
|
* Use `@qonto/embed-sdk/{namespace}` for client-side operations.
|
|
242
204
|
*/
|
|
243
|
-
proxyRequestFunction?: never;
|
|
244
205
|
proxyEndpointDescriptor?: never;
|
|
245
206
|
uiParentElementId?: never;
|
|
246
207
|
mfaPreference?: never;
|
|
@@ -254,23 +215,25 @@ export declare function validateOperationSettingsParams(params: OperationSetting
|
|
|
254
215
|
requiresUI?: false;
|
|
255
216
|
}): OperationSettings;
|
|
256
217
|
/**
|
|
257
|
-
* Validates client operation settings and ensures
|
|
258
|
-
*
|
|
218
|
+
* Validates client operation settings and ensures proxyEndpointDescriptor is provided
|
|
219
|
+
* (either in params or from global settings).
|
|
259
220
|
*
|
|
260
221
|
* @param params - Client operation settings to validate
|
|
261
222
|
* @param errorMessage - Custom error message to throw if validation fails
|
|
262
223
|
* @returns Validated client operation settings with proxy configuration
|
|
263
|
-
* @throws InvalidParametersError if
|
|
224
|
+
* @throws InvalidParametersError if proxyEndpointDescriptor is not provided
|
|
264
225
|
*
|
|
265
226
|
* @example
|
|
266
227
|
* ```typescript
|
|
267
228
|
* const settings = validateClientOperationSettings(
|
|
268
229
|
* params?.operationSettings,
|
|
269
|
-
* 'Client-side operations require
|
|
230
|
+
* 'Client-side operations require proxyEndpointDescriptor. ' +
|
|
270
231
|
* 'For security, never expose access tokens in the browser. ' +
|
|
271
232
|
* 'Use "@qonto/embed-sdk/server/{namespace}" only in server-side/backend environments.'
|
|
272
233
|
* );
|
|
273
234
|
* ```
|
|
274
235
|
*/
|
|
275
|
-
export declare function validateClientOperationSettings(params: ClientOperationSettings | undefined, errorMessage?: string): ClientOperationSettings
|
|
236
|
+
export declare function validateClientOperationSettings(params: ClientOperationSettings | undefined, errorMessage?: string): ClientOperationSettings & {
|
|
237
|
+
proxyEndpointDescriptor: ProxyEndpointDescriptor;
|
|
238
|
+
};
|
|
276
239
|
//# sourceMappingURL=operation-settings-validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../../src/validation/operation-settings-validation.ts"],"names":[],"mapp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