@qonto/embed-sdk 0.66.0 → 0.67.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.
Files changed (32) hide show
  1. package/dist/index.umd.js +3 -3
  2. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +4 -4
  3. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +3 -3
  4. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
  5. package/dist/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  6. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts +8 -9
  7. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
  8. package/dist/sepa-transfers/index.d.ts +3 -3
  9. package/dist/sepa-transfers/sepa-transfers.d.ts +10 -10
  10. package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  11. package/dist/server/_virtual/index.js +1 -1
  12. package/dist/server/_virtual/index2.js +1 -1
  13. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -1
  14. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +1 -1
  15. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -1
  16. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -1
  17. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -1
  18. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -1
  19. package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -1
  20. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +4 -4
  21. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +3 -3
  22. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
  23. package/dist/server/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  24. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts +8 -9
  25. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
  26. package/dist/server/sepa-transfers/index.d.ts +3 -3
  27. package/dist/server/sepa-transfers/sepa-transfers.d.ts +10 -10
  28. package/dist/server/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  29. package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -1
  30. package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
  31. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  32. package/package.json +1 -1
@@ -4,13 +4,13 @@ import type { BulkTransfer, BulkTransferParams, GetBulkTransfer, GetBulkTransfer
4
4
  * Fetches the list of SEPA bulk transfers for the current user.
5
5
  * @param getBulkTransfersParams - An optional object containing:
6
6
  * - `operationSettings`: An object with operation-level settings such as
7
- * `proxyRequestFunction` (preferred over using the access token flow),
7
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
8
8
  * `accessToken`, `stagingToken`, `paginationSettings`, and other optional
9
9
  * parameters.
10
10
  * @returns A promise that resolves to an object containing an array of bulk
11
11
  * transfers and a `meta` object containing pagination state.
12
12
  * @throws `InvalidParametersError` If any parameter validation fails.
13
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
13
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
14
14
  * `accessToken` are invalid or missing within `operationSettings`.
15
15
  * @throws `EmbedApiError` If the API request fails or returns an error.
16
16
  */
@@ -21,14 +21,14 @@ export declare function getBulkTransfers(getBulkTransfersParams?: SepaTransferPa
21
21
  * - `sepaTransferSettings`: An object that contains the mandatory `bulkTransferId`
22
22
  * to identify the bulk transfer to retrieve.
23
23
  * - `operationSettings`: An object with operation-level settings such as
24
- * `proxyRequestFunction` (preferred over using the access token flow),
24
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
25
25
  * `accessToken`, `stagingToken`, and other optional
26
26
  * parameters.
27
27
  * @returns A promise that resolves to a BulkTransfer object containing details of
28
28
  * the requested bulk transfer.
29
29
  * @throws `InvalidParametersError` If the `bulkTransferId` parameter is not a string
30
30
  * or missing, or if any parameter validation fails.
31
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
31
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
32
32
  * `accessToken` are invalid or missing within `operationSettings`.
33
33
  * @throws `EmbedApiError` If the API request fails or returns an error.
34
34
  */
@@ -10,7 +10,7 @@ export interface BulkTransferClientParams<T> {
10
10
  /**
11
11
  * Fetches the list of SEPA bulk transfers for the current user.
12
12
  * @param getBulkTransfersParams - An optional object containing operation settings with
13
- * proxyRequestFunction or proxyEndpointDescriptor (required).
13
+ * proxyEndpointDescriptor (required).
14
14
  * @returns A promise that resolves to an object containing an array of bulk
15
15
  * transfers and a `meta` object containing pagination state.
16
16
  */
@@ -18,7 +18,7 @@ export declare function getBulkTransfers(getBulkTransfersParams?: BulkTransferCl
18
18
  /**
19
19
  * Fetches a specific SEPA bulk transfer by its ID.
20
20
  * @param params - An object containing the bulkTransferId and operation settings with
21
- * proxyRequestFunction or proxyEndpointDescriptor (required).
21
+ * proxyEndpointDescriptor (required).
22
22
  * @returns A promise that resolves to a BulkTransfer object.
23
23
  */
24
24
  export declare function getBulkTransfer({ bulkTransferSettings, operationSettings, }: BulkTransferClientParams<GetBulkTransfer>): Promise<BulkTransfer>;
@@ -34,7 +34,7 @@ interface CreateBulkTransferClientParams {
34
34
  * This function is only available in client-side (browser) environments as it requires UI interaction.
35
35
  *
36
36
  * @param params - An object containing bulk transfer settings and operation settings with
37
- * proxyRequestFunction or proxyEndpointDescriptor (required).
37
+ * proxyEndpointDescriptor (required).
38
38
  * @returns As a yielded value, VoP check results for all unique beneficiaries.
39
39
  * As the final return value, an object containing the created bulk transfer and metadata
40
40
  * including the idempotency key.
@@ -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":"AAeA,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,CAmCnC;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAuBnE;AAwBD;;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,CAqEA"}
1
+ {"version":3,"file":"bulk-transfers.client.d.ts","sourceRoot":"","sources":["../../../../src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.ts"],"names":[],"mappings":"AAeA,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"}
@@ -12,7 +12,7 @@ import { createBulkTransfer, getBulkTransfer, getBulkTransfers } from './client/
12
12
  * const { bulkTransfers } = sepaTransfers;
13
13
  *
14
14
  * await bulkTransfers.getBulkTransfers({
15
- * operationSettings: { proxyRequestFunction }
15
+ * operationSettings: { proxyEndpointDescriptor }
16
16
  * });
17
17
  * ```
18
18
  */
@@ -13,12 +13,11 @@ export interface SepaTransferClientParams<T> {
13
13
  * Fetches the list of SEPA transfers for the current user.
14
14
  * @param getSepaTransfersParams - An object containing:
15
15
  * - `operationSettings`: An object with operation-level settings such as
16
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required),
16
+ * `proxyEndpointDescriptor` (required),
17
17
  * `paginationSettings`, and other optional parameters.
18
18
  * @returns A promise that resolves to an object containing an array of SEPA
19
19
  * transfers and a `meta` object containing pagination state.
20
- * @throws `InvalidParametersError` If neither proxyRequestFunction nor
21
- * proxyEndpointDescriptor is provided.
20
+ * @throws `InvalidParametersError` If proxyEndpointDescriptor is not provided.
22
21
  * @throws `EmbedApiError` If the API request fails or returns an error.
23
22
  */
24
23
  export declare function getSepaTransfers(getSepaTransfersParams?: SepaTransferClientParams<never>): Promise<GetSepaTransfersResponse>;
@@ -27,10 +26,10 @@ export declare function getSepaTransfers(getSepaTransfersParams?: SepaTransferCl
27
26
  * @param getSepaTransferParams - An object containing:
28
27
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
29
28
  * - `operationSettings`: An object with operation-level settings such as
30
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
29
+ * `proxyEndpointDescriptor` (required).
31
30
  * @returns A promise that resolves to a SEPA transfer.
32
31
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is not a string,
33
- * missing, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
32
+ * missing, or if proxyEndpointDescriptor is not provided.
34
33
  * @throws `EmbedApiError` If the API request fails or returns an error.
35
34
  */
36
35
  export declare function getSepaTransfer({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<GetSepaTransfer>): Promise<SepaTransfer>;
@@ -61,10 +60,10 @@ export declare function createSepaTransfer({ sepaTransferSettings, operationSett
61
60
  * @param cancelSepaTransferParams - An object containing:
62
61
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
63
62
  * - `operationSettings`: An object with operation-level settings such as
64
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
63
+ * `proxyEndpointDescriptor` (required).
65
64
  * @returns A promise that resolves without return value.
66
65
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is missing,
67
- * not a string, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
66
+ * not a string, or if proxyEndpointDescriptor is not provided.
68
67
  * @throws `EmbedApiError` If the API request fails or returns an error.
69
68
  */
70
69
  export declare function cancelSepaTransfer({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<CancelSepaTransferParams>): Promise<void>;
@@ -75,10 +74,10 @@ export declare function cancelSepaTransfer({ sepaTransferSettings, operationSett
75
74
  * @param getSepaTransferCreationFlowLinkParams - An object containing:
76
75
  * - `sepaTransferSettings`: An object with the `callbackUrl` property.
77
76
  * - `operationSettings`: An object with operation-level settings such as
78
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
77
+ * `proxyEndpointDescriptor` (required).
79
78
  * @returns A promise that resolves to an object representing the Embed Auth Link.
80
79
  * @throws `InvalidParametersError` If the callbackUrl is invalid or missing, or if
81
- * neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
80
+ * proxyEndpointDescriptor is not provided.
82
81
  * @throws `EmbedApiError` If the API request fails or returns an error.
83
82
  */
84
83
  export declare function getSepaTransferCreationFlowLink({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<SepaTransferCreationFlowRequest>): Promise<AuthLinkRequestResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"sepa-transfers.client.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/client/sepa-transfers.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAcjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAuBzF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAI/B,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AAexC,OAAO,+DAA+D,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAmCnC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAuBnE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CACzB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAChB,qBAAqB,EACrB,0BAA0B,GAAG,SAAS,CACvC,CAuIA;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBpE;AA6BD;;;;;;;;;;;;GAYG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4B5F"}
1
+ {"version":3,"file":"sepa-transfers.client.d.ts","sourceRoot":"","sources":["../../../src/sepa-transfers/client/sepa-transfers.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAcjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAuBzF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAI/B,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AAexC,OAAO,+DAA+D,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAkCnC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAqBnE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CACzB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAChB,qBAAqB,EACrB,0BAA0B,GAAG,SAAS,CACvC,CAiIA;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBpE;AA2BD;;;;;;;;;;;;GAYG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA0B5F"}
@@ -1,7 +1,7 @@
1
1
  import { cancelSepaTransfer, createSepaTransfer, getSepaTransfer, getSepaTransferCreationFlowLink, getSepaTransfers } from './client/sepa-transfers.client';
2
2
  /**
3
3
  * The sepaTransfers namespace contains all the client-side functions related to SEPA transfer operations.
4
- * This version uses proxy-based authentication (proxyRequestFunction or proxyEndpointDescriptor)
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'.
@@ -15,11 +15,11 @@ import { cancelSepaTransfer, createSepaTransfer, getSepaTransfer, getSepaTransfe
15
15
  * ```ts
16
16
  * // Single SEPA transfers
17
17
  * await sepaTransfers.getSepaTransfers({
18
- * operationSettings: { proxyRequestFunction }
18
+ * operationSettings: { proxyEndpointDescriptor }
19
19
  * });
20
20
  * await sepaTransfers.getSepaTransfer({
21
21
  * sepaTransferSettings: { sepaTransferId: '...' },
22
- * operationSettings: { proxyRequestFunction }
22
+ * operationSettings: { proxyEndpointDescriptor }
23
23
  * });
24
24
  *
25
25
  * // Bulk transfers are nested under sepaTransfers.bulkTransfers
@@ -5,13 +5,13 @@ import '../ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.ts';
5
5
  * Fetches the list of SEPA transfers for the current user.
6
6
  * @param getSepaTransfersParams - An object containing:
7
7
  * - `operationSettings`: An object with operation-level settings such as
8
- * `proxyRequestFunction` (preferred over using the access token flow),
8
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
9
9
  * `accessToken`, `stagingToken`, `paginationSettings`, and other optional
10
10
  * parameters.
11
11
  * @returns A promise that resolves to an object containing an array of SEPA
12
12
  * transfers and a `meta` object containing pagination state.
13
13
  * @throws `InvalidParametersError` If any parameter validation fails.
14
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
14
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
15
15
  * `accessToken` are invalid or missing within `operationSettings`.
16
16
  * @throws `EmbedApiError` If the API request fails or returns an error.
17
17
  */
@@ -21,13 +21,13 @@ export declare function getSepaTransfers(getSepaTransfersParams?: SepaTransferPa
21
21
  * @param getSepaTransferParams - An object containing:
22
22
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
23
23
  * - `operationSettings`: An object with operation-level settings such as
24
- * `proxyRequestFunction` (preferred over using the access token flow),
24
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
25
25
  * `accessToken`, `stagingToken`, and other optional
26
26
  * parameters.
27
27
  * @returns A promise that resolves to a SEPA transfer.
28
28
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is not a string
29
29
  * or missing, or if any parameter validation fails.
30
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
30
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
31
31
  * `accessToken` are invalid or missing within `operationSettings`.
32
32
  * @throws `EmbedApiError` If the API request fails or returns an error.
33
33
  */
@@ -61,14 +61,14 @@ export declare function getSepaTransfer({ sepaTransferSettings, operationSetting
61
61
  * the process and require the user to give the transfer data after the VoP
62
62
  * result.
63
63
  * - `operationSettings`: An object with operation-level settings such as
64
- * `proxyRequestFunction` (preferred over using the access token flow),
64
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
65
65
  * `accessToken`, `stagingToken`, `idempotencyKey`, `mfaPreference`,
66
66
  * `uiParentElementId`, and other optional parameters.
67
67
  * @returns As the first yielded value, a promise that resolves to the VoP check
68
68
  * result.
69
69
  * @returns As the final return value, a promise that resolves to the created
70
70
  * SEPA transfer.
71
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
71
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
72
72
  * `accessToken` are invalid or missing within `operationSettings`.
73
73
  * @throws `InvalidParametersError` If the `transfer` parameter is not an object
74
74
  * or is missing, or if the required properties of the transfer object are
@@ -135,13 +135,13 @@ export declare function createSepaTransfer({ sepaTransferSettings, operationSett
135
135
  * @param cancelSepaTransferParams - An object containing:
136
136
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
137
137
  * - `operationSettings`: An object with operation-level settings such as
138
- * `proxyRequestFunction` (preferred over using the access token flow),
138
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
139
139
  * `accessToken`, `stagingToken`, and other optional
140
140
  * parameters.
141
141
  * @returns A promise that resolves without return value.
142
142
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is missing
143
143
  * or not a string, or if any parameter validation fails.
144
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
144
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
145
145
  * `accessToken` are invalid or missing within `operationSettings`.
146
146
  * @throws `EmbedApiError` If the API request fails or returns an error.
147
147
  */
@@ -155,14 +155,14 @@ export declare function cancelSepaTransfer({ sepaTransferSettings, operationSett
155
155
  * - `sepaTransferSettings`: An object with the `callbackUrl` property, which
156
156
  * will be used to return the user to the desired location after completion.
157
157
  * - `operationSettings`: An object with operation-level settings such as
158
- * `proxyRequestFunction` (preferred over using the access token flow),
158
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
159
159
  * `accessToken`, `stagingToken`, `locale`, and other optional
160
160
  * parameters.
161
161
  * @returns A promise that resolves to an object representing the Embed Auth Link.
162
162
  * This object contains a `url` property with the link to start the SEPA transfer.
163
163
  * @throws `InvalidParametersError` If the callbackUrl is invalid or missing, or
164
164
  * if any parameter validation fails.
165
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
165
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
166
166
  * `accessToken` are invalid or missing within `operationSettings`.
167
167
  * @throws `EmbedApiError` If the API request fails or returns an error.
168
168
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sepa-transfers.d.ts","sourceRoot":"","sources":["../../src/sepa-transfers/sepa-transfers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAwCjF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAE/B,kBAAkB,EAGlB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAgBvC,OAAO,4DAA4D,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,GACjD,OAAO,CAAC,wBAAwB,CAAC,CAuDnC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CA2B7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CACnB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAAC,qBAAqB,EAAE,YAAY,GAAG,SAAS,CAAC,CAwJlE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9D;AA+BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyBtF"}
1
+ {"version":3,"file":"sepa-transfers.d.ts","sourceRoot":"","sources":["../../src/sepa-transfers/sepa-transfers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAwCjF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAE/B,kBAAkB,EAGlB,qBAAqB,EACtB,MAAM,+BAA+B,CAAC;AAgBvC,OAAO,4DAA4D,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,GACjD,OAAO,CAAC,wBAAwB,CAAC,CAuDnC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CA2B7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CACnB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAAC,qBAAqB,EAAE,YAAY,GAAG,SAAS,CAAC,CAiJlE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAwB9D;AA+BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,kBAAkB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyBtF"}
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"./_commonjsHelpers.js";import{__require as e}from"../node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js";var o=s(e());export{o as default};
1
+ import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as o}from"../node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/index.js";var r=e(o());export{r as default};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.js";import{__require as o}from"../node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/index.js";var r=e(o());export{r as default};
1
+ import{getDefaultExportFromCjs as s}from"./_commonjsHelpers.js";import{__require as e}from"../node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js";var o=s(e());export{o as default};
@@ -1 +1 @@
1
- import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../../_virtual/index2.js";function e(r,e){return new n((function(n){r.subscribe({next:function(r){e(r).then((function(r){return n.next(r)})).catch((function(r){return n.error(r)}))},error:function(r){n.error(r)},complete:function(){n.complete()}})}))}function t(e,t){return new n((function(n){var l=!1,o=new Set,u=function(){var n,e;l=!0;try{for(var t=r(o),u=t.next();!u.done;u=t.next()){var c=u.value;try{c.unsubscribe()}catch(r){}}}catch(r){n={error:r}}finally{try{u&&!u.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}o.clear()},c=function(r){var e=r.subscribe({next:function(r){l||n.next(r)},error:function(r){l||(l=!0,n.error(r),u())},complete:function(){o.delete(e),l||0!==o.size||(n.complete(),u(),l=!0)}});o.add(e)};return c(e),c(t),u}))}function l(e){var t=new Set,l=null;function o(){null==l||l.unsubscribe(),l=null,t.clear()}return new n((function(n){return t.add(n),null===l&&(l=e.subscribe({next:function(n){var e,l,o;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(o=i.next)||void 0===o||o.call(i,n)}}catch(r){e={error:r}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(e)throw e.error}}},error:function(n){var e,l,u;try{for(var c=r(t),i=c.next();!i.done;i=c.next()){var a=i.value;null===(u=a.error)||void 0===u||u.call(a,n)}}catch(r){e={error:r}}finally{try{i&&!i.done&&(l=c.return)&&l.call(c)}finally{if(e)throw e.error}}o()},complete:function(){var n,e,l;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(l=i.complete)||void 0===l||l.call(i)}}catch(r){n={error:r}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}o()}})),function(){t.delete(n),0===t.size&&l&&(l.unsubscribe(),l=null)}}))}export{n as Observable,e as asyncMap,t as merge,l as multicast};
1
+ import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../../_virtual/index.js";function e(r,e){return new n((function(n){r.subscribe({next:function(r){e(r).then((function(r){return n.next(r)})).catch((function(r){return n.error(r)}))},error:function(r){n.error(r)},complete:function(){n.complete()}})}))}function t(e,t){return new n((function(n){var l=!1,o=new Set,u=function(){var n,e;l=!0;try{for(var t=r(o),u=t.next();!u.done;u=t.next()){var c=u.value;try{c.unsubscribe()}catch(r){}}}catch(r){n={error:r}}finally{try{u&&!u.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}o.clear()},c=function(r){var e=r.subscribe({next:function(r){l||n.next(r)},error:function(r){l||(l=!0,n.error(r),u())},complete:function(){o.delete(e),l||0!==o.size||(n.complete(),u(),l=!0)}});o.add(e)};return c(e),c(t),u}))}function l(e){var t=new Set,l=null;function o(){null==l||l.unsubscribe(),l=null,t.clear()}return new n((function(n){return t.add(n),null===l&&(l=e.subscribe({next:function(n){var e,l,o;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(o=i.next)||void 0===o||o.call(i,n)}}catch(r){e={error:r}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(e)throw e.error}}},error:function(n){var e,l,u;try{for(var c=r(t),i=c.next();!i.done;i=c.next()){var a=i.value;null===(u=a.error)||void 0===u||u.call(a,n)}}catch(r){e={error:r}}finally{try{i&&!i.done&&(l=c.return)&&l.call(c)}finally{if(e)throw e.error}}o()},complete:function(){var n,e,l;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(l=i.complete)||void 0===l||l.call(i)}}catch(r){n={error:r}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}o()}})),function(){t.delete(n),0===t.size&&l&&(l.unsubscribe(),l=null)}}))}export{n as Observable,e as asyncMap,t as merge,l as multicast};
@@ -1 +1 @@
1
- import*as r from"../../../../../../../../../_virtual/index.js";import i from"../../../../../../../../../_virtual/index.js";var o=i||r;export{o as safeJsonStringify};
1
+ import*as r from"../../../../../../../../../_virtual/index2.js";import i from"../../../../../../../../../_virtual/index2.js";var o=i||r;export{o as safeJsonStringify};
@@ -1 +1 @@
1
- import{AMPLITUDE_THRASHED_CURSOR_EVENT as e}from"../constants.js";import{isUrlAllowed as n}from"../helpers.js";import t from"../../../../../../../../../_virtual/index2.js";import"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var r,i;!function(e){e.INCREASING="increasing",e.DECREASING="decreasing"}(r||(r={})),function(e){e.X="x",e.Y="y"}(i||(i={}));var s=function(e){var n=e.allWindowObservables.mouseMoveObservable;return new t((function(e){var t=null,s=null,o=null;return n.subscribe((function(n){var l={x:n.clientX,y:n.clientY};null!==t?(l.x>t.x?(s===r.DECREASING&&e.next(i.X),s=r.INCREASING):l.x<t.x&&(s===r.INCREASING&&e.next(i.X),s=r.DECREASING),l.y>t.y?(o===r.DECREASING&&e.next(i.Y),o=r.INCREASING):l.y<t.y&&(o===r.INCREASING&&e.next(i.Y),o=r.DECREASING),t=l):t=l}))}))};function o(e){var n=e.changes,t=e.changesThreshold,r=e.thresholdMs;return!(n.length<t)&&n[n.length-1]-n[0]<r}function l(e){e.changes=[],e.startTime=void 0}function a(e){for(var n=e.changes,t=e.thresholdMs,r=0,i=n[n.length-1];r<n.length;r++){if(i-n[r]<t)break}0!==r&&(e.startTime=n[r],e.changes.splice(0,r))}var u=function(e){var n=e.mouseDirectionChangeObservable,r=e.directionChanges,s=void 0===r?20:r,u=e.thresholdMs,c=void 0===u?2e3:u;return new t((function(e){var t={changes:[],changesThreshold:s,thresholdMs:c},r={changes:[],changesThreshold:s,thresholdMs:c},u=void 0,h=null;function v(){void 0!==u&&(e.next(u),u=void 0,null!==h&&clearTimeout(h),l(t),l(r))}return n.subscribe((function(e){null!==h&&clearTimeout(h),function(e){var n=+Date.now();e.startTime=e.startTime||n;var t=e.changes,r=e.changesThreshold;t.push(n),t.length>r&&t.shift()}(e===i.X?t:r);var n=function(e,n){var t=void 0;if(o(e)&&(t=e.startTime),o(n)){var r=n.startTime;r&&(!t||r<t)&&(t=r)}return t}(t,r);return n?(u=u||n,h=setTimeout((function(){v(),h=null}),c)):v(),a(t),a(r),function(){null!==h&&(clearTimeout(h),h=null)}}))}))},c=function(t){var r=t.amplitude,i=t.options,o=t.allObservables,l=t.directionChanges,a=void 0===l?20:l,c=t.thresholdMs,h=void 0===c?2e3:c,v=s({allWindowObservables:o});return u({mouseDirectionChangeObservable:v,directionChanges:a,thresholdMs:h}).subscribe((function(t){n(i)&&r.track(e,void 0,{time:t})}))};export{s as createMouseDirectionChangeObservable,u as createThrashedCursorObservable,c as trackThrashedCursor};
1
+ import{AMPLITUDE_THRASHED_CURSOR_EVENT as e}from"../constants.js";import{isUrlAllowed as n}from"../helpers.js";import t from"../../../../../../../../../_virtual/index.js";import"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var r,i;!function(e){e.INCREASING="increasing",e.DECREASING="decreasing"}(r||(r={})),function(e){e.X="x",e.Y="y"}(i||(i={}));var s=function(e){var n=e.allWindowObservables.mouseMoveObservable;return new t((function(e){var t=null,s=null,o=null;return n.subscribe((function(n){var l={x:n.clientX,y:n.clientY};null!==t?(l.x>t.x?(s===r.DECREASING&&e.next(i.X),s=r.INCREASING):l.x<t.x&&(s===r.INCREASING&&e.next(i.X),s=r.DECREASING),l.y>t.y?(o===r.DECREASING&&e.next(i.Y),o=r.INCREASING):l.y<t.y&&(o===r.INCREASING&&e.next(i.Y),o=r.DECREASING),t=l):t=l}))}))};function o(e){var n=e.changes,t=e.changesThreshold,r=e.thresholdMs;return!(n.length<t)&&n[n.length-1]-n[0]<r}function l(e){e.changes=[],e.startTime=void 0}function a(e){for(var n=e.changes,t=e.thresholdMs,r=0,i=n[n.length-1];r<n.length;r++){if(i-n[r]<t)break}0!==r&&(e.startTime=n[r],e.changes.splice(0,r))}var u=function(e){var n=e.mouseDirectionChangeObservable,r=e.directionChanges,s=void 0===r?20:r,u=e.thresholdMs,c=void 0===u?2e3:u;return new t((function(e){var t={changes:[],changesThreshold:s,thresholdMs:c},r={changes:[],changesThreshold:s,thresholdMs:c},u=void 0,h=null;function v(){void 0!==u&&(e.next(u),u=void 0,null!==h&&clearTimeout(h),l(t),l(r))}return n.subscribe((function(e){null!==h&&clearTimeout(h),function(e){var n=+Date.now();e.startTime=e.startTime||n;var t=e.changes,r=e.changesThreshold;t.push(n),t.length>r&&t.shift()}(e===i.X?t:r);var n=function(e,n){var t=void 0;if(o(e)&&(t=e.startTime),o(n)){var r=n.startTime;r&&(!t||r<t)&&(t=r)}return t}(t,r);return n?(u=u||n,h=setTimeout((function(){v(),h=null}),c)):v(),a(t),a(r),function(){null!==h&&(clearTimeout(h),h=null)}}))}))},c=function(t){var r=t.amplitude,i=t.options,o=t.allObservables,l=t.directionChanges,a=void 0===l?20:l,c=t.thresholdMs,h=void 0===c?2e3:c,v=s({allWindowObservables:o});return u({mouseDirectionChangeObservable:v,directionChanges:a,thresholdMs:h}).subscribe((function(t){n(i)&&r.track(e,void 0,{time:t})}))};export{s as createMouseDirectionChangeObservable,u as createThrashedCursorObservable,c as trackThrashedCursor};
@@ -1 +1 @@
1
- import{__assign as e,__awaiter as t,__generator as o,__values as r,__read as n,__spreadArray as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as s}from"./constants.js";import{createShouldTrackEvent as a}from"./helpers.js";import{enableVisualTagging as u}from"./libs/messenger.js";import{trackClicks as c}from"./autocapture/track-click.js";import{trackChange as d}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{trackScroll as v}from"./autocapture/track-scroll.js";import{createClickObservable as b,createMutationObservable as m,createScrollObservable as f,createExposureObservable as g}from"./observables.js";import{groupLabeledEventIdsByEventType as h,createLabeledEventToTriggerMap as w,createTriggerEvaluator as E}from"./pageActions/triggers.js";import{DataExtractor as y}from"./data-extractor.js";import{trackExposure as x}from"./autocapture/track-exposure.js";import{fireViewportContentUpdated as O,onExposure as A}from"./autocapture/track-viewport-content-updated.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as k,DEFAULT_ACTION_CLICK_ALLOWLIST as j,DEFAULT_EXPOSURE_DURATION as S,DEFAULT_DATA_ATTRIBUTE_PREFIX as C}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{getOrCreateWindowMessenger as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js";import{enableBackgroundCapture as P}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js";import{getGlobalScope as T}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{multicast as L}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import D from"../../../../../../../../_virtual/index2.js";import{AMPLITUDE_ORIGINS_MAP as M}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js";var U;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(U||(U={}));var R=function(R,N){var Z,B,F,I,K,X,Y,q,z,G,H;void 0===R&&(R={}),null==N||N.diagnosticsClient.setTag("plugin.autocapture.version",l);var J=R.dataAttributePrefix,Q=void 0===J?C:J,V=R.visualTaggingOptions,W=void 0===V?{enabled:!0}:V;R.cssSelectorAllowlist=null!==(Z=R.cssSelectorAllowlist)&&void 0!==Z?Z:k,R.actionClickAllowlist=null!==(B=R.actionClickAllowlist)&&void 0!==B?B:j,R.debounceTime=null!==(F=R.debounceTime)&&void 0!==F?F:0;var $=null!==(X=null!==(K=null===(I=R.viewportContentUpdated)||void 0===I?void 0:I.exposureDuration)&&void 0!==K?K:R.exposureDuration)&&void 0!==X?X:S;R.viewportContentUpdated=e(e({},R.viewportContentUpdated),{exposureDuration:$}),R.pageUrlExcludelist=null===(Y=R.pageUrlExcludelist)||void 0===Y?void 0:Y.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(o){return console.warn("Invalid regex pattern: ".concat(t.pattern),o),e}return e}),[]);var ee,te=s,oe=[],re=new y(R,N),ne=new Set,ie=new Set,le=h(Object.values(null!==(z=null===(q=R.pageActions)||void 0===q?void 0:q.labeledEvents)&&void 0!==z?z:{})),se=w(null!==(H=null===(G=R.pageActions)||void 0===G?void 0:G.triggers)&&void 0!==H?H:[]),ae=E(le,se,re,R);return{name:te,type:"enrichment",setup:function(r,l){return t(void 0,void 0,void 0,(function(){var t,s,E,y,k,j,S,C,N,Z,B,F,I,K,X,Y,q,z,G,H,J;return o(this,(function(o){return"undefined"==typeof document||(t=!1,s={maxX:void 0,maxY:void 0},r.fetchRemoteConfig&&(r.remoteConfigClient?r.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",(function(t){!function(t){var o,r;t&&(R.pageActions=e(e({},R.pageActions),t),le=h(Object.values(null!==(o=R.pageActions.labeledEvents)&&void 0!==o?o:{})),se=w(null!==(r=R.pageActions.triggers)&&void 0!==r?r:[]),ae.update(le,se,R))}(t)})):r.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),E=a(R,R.cssSelectorAllowlist),y=a(R,R.actionClickAllowlist),k=function(){var e,t,o=L(b().map((function(e){return re.addAdditionalEventProperties(e,"click",R.cssSelectorAllowlist,Q)}))),r=L(new D((function(e){var t,o=function(t){var o=re.addAdditionalEventProperties(t,"change",R.cssSelectorAllowlist,Q);e.next(o)};return null===(t=T())||void 0===t||t.document.addEventListener("change",o,{capture:!0}),function(){var e;return null===(e=T())||void 0===e?void 0:e.document.removeEventListener("change",o)}})));window.navigation&&(t=L(new D((function(e){var t=function(t){var o=re.addAdditionalEventProperties(t,"navigate",R.cssSelectorAllowlist,Q);e.next(o)};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}))));var n=L(m().map((function(e){return re.addAdditionalEventProperties(e,"mutation",R.cssSelectorAllowlist,Q)}))),i=f(),l=g(n,R.cssSelectorAllowlist);return(e={})[U.ChangeObservable]=r,e[U.ClickObservable]=o,e[U.MutationObservable]=n,e[U.NavigateObservable]=t,e[U.ScrollObservable]=i,e[U.ExposureObservable]=l,e}(),j=c({allObservables:k,amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(j),S=d({allObservables:k,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(S),C=p({allObservables:k,options:R,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,shouldTrackActionClick:y}),C&&oe.push(C),N=v({allObservables:k}),oe.push(N),Z={},B=T(),F=function(e){e&&t||(setTimeout((function(){t=!1}),100),t=!0,O({amplitude:l,scrollTracker:N,currentElementExposed:ie,elementExposedForPage:ne,exposureTracker:Z.exposure,isPageEnd:e,lastScroll:s}))},I=function(e){A(e,ne,ie,F)},Z.exposure=x({allObservables:k,onExposure:I,dataExtractor:re,exposureDuration:$}),Z.exposure&&oe.push(Z.exposure),K=function(){F(!0)},null==B||B.addEventListener("beforeunload",K),ee=function(){null==B||B.removeEventListener("beforeunload",K)},oe.push({unsubscribe:function(){return ee()}}),(X=k[U.NavigateObservable])?oe.push(X.subscribe((function(){F(!0)}))):B&&(Y=function(){F(!0)},B.addEventListener("popstate",Y),q=B.history.pushState,B.history&&q&&(B.history.pushState=new Proxy(q,{apply:function(e,t,o){var r=n(o,3),i=r[0],l=r[1],s=r[2];e.apply(t,[i,l,s]),F(!0)}})),oe.push({unsubscribe:function(){B.removeEventListener("popstate",Y),B.history&&q&&(B.history.pushState=q)}})),null===(J=null==r?void 0:r.loggerProvider)||void 0===J||J.log("".concat(te," has been successfully added.")),window.opener&&W.enabled&&(z=R.cssSelectorAllowlist,G=R.actionClickAllowlist,H=_(),u(H,{dataExtractor:re,isElementSelectable:a(R,i(i([],n(z),!1),n(G),!1)),cssSelectorAllowlist:z,actionClickAllowlist:G}),P(H),H.setup(e({logger:null==r?void 0:r.loggerProvider},(null==r?void 0:r.serverZone)&&{endpoint:M[r.serverZone]})))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(o){try{for(e=r(oe),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]}))}))}}};export{U as ObservablesEnum,R as autocapturePlugin};
1
+ import{__assign as e,__awaiter as t,__generator as o,__values as r,__read as n,__spreadArray as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as s}from"./constants.js";import{createShouldTrackEvent as a}from"./helpers.js";import{enableVisualTagging as u}from"./libs/messenger.js";import{trackClicks as c}from"./autocapture/track-click.js";import{trackChange as d}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{trackScroll as v}from"./autocapture/track-scroll.js";import{createClickObservable as b,createMutationObservable as m,createScrollObservable as f,createExposureObservable as g}from"./observables.js";import{groupLabeledEventIdsByEventType as h,createLabeledEventToTriggerMap as w,createTriggerEvaluator as E}from"./pageActions/triggers.js";import{DataExtractor as y}from"./data-extractor.js";import{trackExposure as x}from"./autocapture/track-exposure.js";import{fireViewportContentUpdated as O,onExposure as A}from"./autocapture/track-viewport-content-updated.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as k,DEFAULT_ACTION_CLICK_ALLOWLIST as j,DEFAULT_EXPOSURE_DURATION as S,DEFAULT_DATA_ATTRIBUTE_PREFIX as C}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{getOrCreateWindowMessenger as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js";import{enableBackgroundCapture as P}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js";import{getGlobalScope as T}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{multicast as L}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import D from"../../../../../../../../_virtual/index.js";import{AMPLITUDE_ORIGINS_MAP as M}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js";var U;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(U||(U={}));var R=function(R,N){var Z,B,F,I,K,X,Y,q,z,G,H;void 0===R&&(R={}),null==N||N.diagnosticsClient.setTag("plugin.autocapture.version",l);var J=R.dataAttributePrefix,Q=void 0===J?C:J,V=R.visualTaggingOptions,W=void 0===V?{enabled:!0}:V;R.cssSelectorAllowlist=null!==(Z=R.cssSelectorAllowlist)&&void 0!==Z?Z:k,R.actionClickAllowlist=null!==(B=R.actionClickAllowlist)&&void 0!==B?B:j,R.debounceTime=null!==(F=R.debounceTime)&&void 0!==F?F:0;var $=null!==(X=null!==(K=null===(I=R.viewportContentUpdated)||void 0===I?void 0:I.exposureDuration)&&void 0!==K?K:R.exposureDuration)&&void 0!==X?X:S;R.viewportContentUpdated=e(e({},R.viewportContentUpdated),{exposureDuration:$}),R.pageUrlExcludelist=null===(Y=R.pageUrlExcludelist)||void 0===Y?void 0:Y.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(o){return console.warn("Invalid regex pattern: ".concat(t.pattern),o),e}return e}),[]);var ee,te=s,oe=[],re=new y(R,N),ne=new Set,ie=new Set,le=h(Object.values(null!==(z=null===(q=R.pageActions)||void 0===q?void 0:q.labeledEvents)&&void 0!==z?z:{})),se=w(null!==(H=null===(G=R.pageActions)||void 0===G?void 0:G.triggers)&&void 0!==H?H:[]),ae=E(le,se,re,R);return{name:te,type:"enrichment",setup:function(r,l){return t(void 0,void 0,void 0,(function(){var t,s,E,y,k,j,S,C,N,Z,B,F,I,K,X,Y,q,z,G,H,J;return o(this,(function(o){return"undefined"==typeof document||(t=!1,s={maxX:void 0,maxY:void 0},r.fetchRemoteConfig&&(r.remoteConfigClient?r.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",(function(t){!function(t){var o,r;t&&(R.pageActions=e(e({},R.pageActions),t),le=h(Object.values(null!==(o=R.pageActions.labeledEvents)&&void 0!==o?o:{})),se=w(null!==(r=R.pageActions.triggers)&&void 0!==r?r:[]),ae.update(le,se,R))}(t)})):r.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),E=a(R,R.cssSelectorAllowlist),y=a(R,R.actionClickAllowlist),k=function(){var e,t,o=L(b().map((function(e){return re.addAdditionalEventProperties(e,"click",R.cssSelectorAllowlist,Q)}))),r=L(new D((function(e){var t,o=function(t){var o=re.addAdditionalEventProperties(t,"change",R.cssSelectorAllowlist,Q);e.next(o)};return null===(t=T())||void 0===t||t.document.addEventListener("change",o,{capture:!0}),function(){var e;return null===(e=T())||void 0===e?void 0:e.document.removeEventListener("change",o)}})));window.navigation&&(t=L(new D((function(e){var t=function(t){var o=re.addAdditionalEventProperties(t,"navigate",R.cssSelectorAllowlist,Q);e.next(o)};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}))));var n=L(m().map((function(e){return re.addAdditionalEventProperties(e,"mutation",R.cssSelectorAllowlist,Q)}))),i=f(),l=g(n,R.cssSelectorAllowlist);return(e={})[U.ChangeObservable]=r,e[U.ClickObservable]=o,e[U.MutationObservable]=n,e[U.NavigateObservable]=t,e[U.ScrollObservable]=i,e[U.ExposureObservable]=l,e}(),j=c({allObservables:k,amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(j),S=d({allObservables:k,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(S),C=p({allObservables:k,options:R,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,shouldTrackActionClick:y}),C&&oe.push(C),N=v({allObservables:k}),oe.push(N),Z={},B=T(),F=function(e){e&&t||(setTimeout((function(){t=!1}),100),t=!0,O({amplitude:l,scrollTracker:N,currentElementExposed:ie,elementExposedForPage:ne,exposureTracker:Z.exposure,isPageEnd:e,lastScroll:s}))},I=function(e){A(e,ne,ie,F)},Z.exposure=x({allObservables:k,onExposure:I,dataExtractor:re,exposureDuration:$}),Z.exposure&&oe.push(Z.exposure),K=function(){F(!0)},null==B||B.addEventListener("beforeunload",K),ee=function(){null==B||B.removeEventListener("beforeunload",K)},oe.push({unsubscribe:function(){return ee()}}),(X=k[U.NavigateObservable])?oe.push(X.subscribe((function(){F(!0)}))):B&&(Y=function(){F(!0)},B.addEventListener("popstate",Y),q=B.history.pushState,B.history&&q&&(B.history.pushState=new Proxy(q,{apply:function(e,t,o){var r=n(o,3),i=r[0],l=r[1],s=r[2];e.apply(t,[i,l,s]),F(!0)}})),oe.push({unsubscribe:function(){B.removeEventListener("popstate",Y),B.history&&q&&(B.history.pushState=q)}})),null===(J=null==r?void 0:r.loggerProvider)||void 0===J||J.log("".concat(te," has been successfully added.")),window.opener&&W.enabled&&(z=R.cssSelectorAllowlist,G=R.actionClickAllowlist,H=_(),u(H,{dataExtractor:re,isElementSelectable:a(R,i(i([],n(z),!1),n(G),!1)),cssSelectorAllowlist:z,actionClickAllowlist:G}),P(H),H.setup(e({logger:null==r?void 0:r.loggerProvider},(null==r?void 0:r.serverZone)&&{endpoint:M[r.serverZone]})))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(o){try{for(e=r(oe),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]}))}))}}};export{U as ObservablesEnum,R as autocapturePlugin};
@@ -1 +1 @@
1
- import{__spreadArray as e,__read as r,__awaiter as t,__generator as o,__values as n,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as s}from"./helpers.js";import{trackDeadClick as l}from"./autocapture/track-dead-click.js";import{trackRageClicks as c}from"./autocapture/track-rage-click.js";import{ObservablesEnum as u}from"./autocapture-plugin.js";import{createClickObservable as d,createErrorObservable as m,createMutationObservable as v,createMouseMoveObservable as p}from"./observables.js";import{DataExtractor as f}from"./data-extractor.js";import{trackErrorClicks as h}from"./autocapture/track-error-click.js";import{trackThrashedCursor as b}from"./autocapture/track-thrashed-cursor.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as w,DEFAULT_DEAD_CLICK_ALLOWLIST as C,DEFAULT_ERROR_CLICK_ALLOWLIST as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{multicast as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import j from"../../../../../../../../_virtual/index2.js";function E(e,r,t,o){if(!o)return[];var n=e[r];return"object"==typeof n&&null!==n&&"cssSelectorAllowlist"in n&&Array.isArray(n.cssSelectorAllowlist)?n.cssSelectorAllowlist:t}var A=4e3,_=function(_){var x;void 0===_&&(_={});var O=a,P=[],T=!1!==_.errorClicks;_.errorClicks||(T=!1);var S=!1!==_.deadClicks&&null!==_.deadClicks,L=!1!==_.rageClicks&&null!==_.rageClicks,M=!1!==_.thrashedCursor&&null!==_.thrashedCursor;_.thrashedCursor||(M=!1);var N=E(_,"rageClicks",w,L),R=E(_,"deadClicks",C,S),B=E(_,"errorClicks",k,T),D=null!==(x=_.dataAttributePrefix)&&void 0!==x?x:g,I=new f(_),U=e([],r(new Set(e(e(e([],r(N),!1),r(R),!1),r(B),!1))),!1);return{name:O,type:"enrichment",setup:function(e,r){return t(void 0,void 0,void 0,(function(){var t,n,a,f,g,w,C,k,E,x,X;return o(this,(function(o){return"undefined"==typeof document||(t=function(){var e,r,t=y(d("pointerdown").map((function(e){return I.addAdditionalEventProperties(e,"click",U,D,!0)}))),o=y(m().map((function(e){return I.addTypeAndTimestamp(e,"error")}))),n=y(v().map((function(e){return I.addAdditionalEventProperties(e,"mutation",U,D)})));if(window.navigation){var a=new j((function(e){var r=function(r){e.next(i(i({},r),{type:"navigate"}))};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}}));r=y(a.map((function(e){return I.addAdditionalEventProperties(e,"navigate",U,D)})))}var s=y(new j((function(e){var r=function(){var r=document.activeElement;if(r&&("TEXTAREA"===r.tagName||"INPUT"===r.tagName)){try{if(r.selectionStart===r.selectionEnd)return}catch(e){return}return e.next()}var t=window.getSelection();if(t&&!t.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",r),function(){window.document.removeEventListener("selectionchange",r)}}))),l=y(p());return(e={})[u.ClickObservable]=t,e[u.MutationObservable]=n,e[u.NavigateObservable]=r,e[u.BrowserErrorObservable]=o,e[u.SelectionObservable]=s,e[u.MouseMoveObservable]=l,e}(),L&&(n=s(_,N),a=c({allObservables:t,amplitude:r,shouldTrackRageClick:n}),P.push(a)),S&&(f=s(_,R),g=l({amplitude:r,allObservables:t,getEventProperties:function(e,r){return I.getEventProperties(e,r,D)},shouldTrackDeadClick:f}),P.push(g)),T&&(w=s(_,B),C=h({amplitude:r,allObservables:t,shouldTrackErrorClick:w}),P.push(C)),M&&(k=void 0,E=void 0,"object"==typeof _.thrashedCursor&&(k=_.thrashedCursor.directionChanges,E=_.thrashedCursor.threshold,k&&k<5&&(e.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(5,", setting to ").concat(5)),k=5),E&&E>A&&(e.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(E," is above the maximum of ").concat(A,", setting to ").concat(A)),E=A)),x=b({amplitude:r,options:_,allObservables:t,directionChanges:k,thresholdMs:E}),P.push(x)),null===(X=null==e?void 0:e.loggerProvider)||void 0===X||X.log("".concat(O," has been successfully added."))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(r){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,r,t,i;return o(this,(function(o){try{for(e=n(P),r=e.next();!r.done;r=e.next())r.value.unsubscribe()}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}return[2]}))}))}}};export{_ as frustrationPlugin};
1
+ import{__spreadArray as e,__read as r,__awaiter as t,__generator as o,__values as n,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as s}from"./helpers.js";import{trackDeadClick as l}from"./autocapture/track-dead-click.js";import{trackRageClicks as c}from"./autocapture/track-rage-click.js";import{ObservablesEnum as u}from"./autocapture-plugin.js";import{createClickObservable as d,createErrorObservable as m,createMutationObservable as v,createMouseMoveObservable as p}from"./observables.js";import{DataExtractor as f}from"./data-extractor.js";import{trackErrorClicks as h}from"./autocapture/track-error-click.js";import{trackThrashedCursor as b}from"./autocapture/track-thrashed-cursor.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as w,DEFAULT_DEAD_CLICK_ALLOWLIST as C,DEFAULT_ERROR_CLICK_ALLOWLIST as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{multicast as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import j from"../../../../../../../../_virtual/index.js";function E(e,r,t,o){if(!o)return[];var n=e[r];return"object"==typeof n&&null!==n&&"cssSelectorAllowlist"in n&&Array.isArray(n.cssSelectorAllowlist)?n.cssSelectorAllowlist:t}var A=4e3,_=function(_){var x;void 0===_&&(_={});var O=a,P=[],T=!1!==_.errorClicks;_.errorClicks||(T=!1);var S=!1!==_.deadClicks&&null!==_.deadClicks,L=!1!==_.rageClicks&&null!==_.rageClicks,M=!1!==_.thrashedCursor&&null!==_.thrashedCursor;_.thrashedCursor||(M=!1);var N=E(_,"rageClicks",w,L),R=E(_,"deadClicks",C,S),B=E(_,"errorClicks",k,T),D=null!==(x=_.dataAttributePrefix)&&void 0!==x?x:g,I=new f(_),U=e([],r(new Set(e(e(e([],r(N),!1),r(R),!1),r(B),!1))),!1);return{name:O,type:"enrichment",setup:function(e,r){return t(void 0,void 0,void 0,(function(){var t,n,a,f,g,w,C,k,E,x,X;return o(this,(function(o){return"undefined"==typeof document||(t=function(){var e,r,t=y(d("pointerdown").map((function(e){return I.addAdditionalEventProperties(e,"click",U,D,!0)}))),o=y(m().map((function(e){return I.addTypeAndTimestamp(e,"error")}))),n=y(v().map((function(e){return I.addAdditionalEventProperties(e,"mutation",U,D)})));if(window.navigation){var a=new j((function(e){var r=function(r){e.next(i(i({},r),{type:"navigate"}))};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}}));r=y(a.map((function(e){return I.addAdditionalEventProperties(e,"navigate",U,D)})))}var s=y(new j((function(e){var r=function(){var r=document.activeElement;if(r&&("TEXTAREA"===r.tagName||"INPUT"===r.tagName)){try{if(r.selectionStart===r.selectionEnd)return}catch(e){return}return e.next()}var t=window.getSelection();if(t&&!t.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",r),function(){window.document.removeEventListener("selectionchange",r)}}))),l=y(p());return(e={})[u.ClickObservable]=t,e[u.MutationObservable]=n,e[u.NavigateObservable]=r,e[u.BrowserErrorObservable]=o,e[u.SelectionObservable]=s,e[u.MouseMoveObservable]=l,e}(),L&&(n=s(_,N),a=c({allObservables:t,amplitude:r,shouldTrackRageClick:n}),P.push(a)),S&&(f=s(_,R),g=l({amplitude:r,allObservables:t,getEventProperties:function(e,r){return I.getEventProperties(e,r,D)},shouldTrackDeadClick:f}),P.push(g)),T&&(w=s(_,B),C=h({amplitude:r,allObservables:t,shouldTrackErrorClick:w}),P.push(C)),M&&(k=void 0,E=void 0,"object"==typeof _.thrashedCursor&&(k=_.thrashedCursor.directionChanges,E=_.thrashedCursor.threshold,k&&k<5&&(e.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(5,", setting to ").concat(5)),k=5),E&&E>A&&(e.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(E," is above the maximum of ").concat(A,", setting to ").concat(A)),E=A)),x=b({amplitude:r,options:_,allObservables:t,directionChanges:k,thresholdMs:E}),P.push(x)),null===(X=null==e?void 0:e.loggerProvider)||void 0===X||X.log("".concat(O," has been successfully added."))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(r){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,r,t,i;return o(this,(function(o){try{for(e=n(P),r=e.next();!r.done;r=e.next())r.value.unsubscribe()}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}return[2]}))}))}}};export{_ as frustrationPlugin};
@@ -1 +1 @@
1
- import{__assign as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../_virtual/index2.js";import{merge as r}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{getGlobalScope as t}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{consoleObserver as o}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js";var i=t(),c=function(){return new n((function(e){var n=new MutationObserver((function(n){e.next(n)}));return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}}))},u=function(e){return void 0===e&&(e="click"),new n((function(n){var r,o=function(e){n.next(e)};return null===(r=t())||void 0===r||r.document.addEventListener(e,o,{capture:!0}),function(){var n;null===(n=t())||void 0===n||n.document.removeEventListener(e,o,{capture:!0})}}))},s=function(){return new n((function(e){var n,r=function(n){e.next(n)};return null===(n=t())||void 0===n||n.addEventListener("scroll",r),function(){var e;null===(e=t())||void 0===e||e.removeEventListener("scroll",r)}}))},a=function(e,r){return new n((function(n){var o,i=t();if(!(null==i?void 0:i.IntersectionObserver))return function(){};var c=new IntersectionObserver((function(e){e.forEach((function(e){n.next(e)}))}),{root:null,rootMargin:"0px",threshold:1}),u=r.join(",");(null!==(o=null==i?void 0:i.document.querySelectorAll(u))&&void 0!==o?o:[]).forEach((function(e){c.observe(e)}));var s=e.subscribe((function(e){return e.event.forEach((function(e){return e.addedNodes.forEach((function(e){e instanceof Element&&(e.matches(u)&&c.observe(e),e.querySelectorAll(u).forEach((function(e){c.observe(e)})))}))}))}));return function(){s.unsubscribe(),c.disconnect()}}))},l=function(){var t=r(new n((function(n){var r=function(r){if(r instanceof ErrorEvent){var t={kind:"error"};r.error instanceof Error||r.error instanceof DOMException?t=e(e({},t),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):"string"==typeof r.error&&(t.message=r.error),n.next(t)}};return i.addEventListener("error",r),function(){i.removeEventListener("error",r)}})),new n((function(e){var n=function(n){var r={kind:"unhandledrejection"};n.reason instanceof Error||n.reason instanceof DOMException?(r.message=n.reason.message,r.stack=n.reason.stack):"string"==typeof n.reason&&(r.message=n.reason),e.next(r)};return i.addEventListener("unhandledrejection",n),function(){i.removeEventListener("unhandledrejection",n)}})));return r(t,new n((function(e){var n=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var o=void 0;Array.isArray(r[0])&&"string"==typeof r[0][0]&&(o=r[0][0]),e.next({kind:"console",message:o})};return o.addListener("error",n),function(){o.removeListener(n)}})))},d=function(){return new n((function(e){var n=function(n){e.next(n)},r={capture:!0};return i.document.addEventListener("mousemove",n,r),function(){i.document.removeEventListener("mousemove",n,r)}}))};export{u as createClickObservable,l as createErrorObservable,a as createExposureObservable,d as createMouseMoveObservable,c as createMutationObservable,s as createScrollObservable};
1
+ import{__assign as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../_virtual/index.js";import{merge as r}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{getGlobalScope as t}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{consoleObserver as o}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js";var i=t(),c=function(){return new n((function(e){var n=new MutationObserver((function(n){e.next(n)}));return document.body&&n.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return n.disconnect()}}))},u=function(e){return void 0===e&&(e="click"),new n((function(n){var r,o=function(e){n.next(e)};return null===(r=t())||void 0===r||r.document.addEventListener(e,o,{capture:!0}),function(){var n;null===(n=t())||void 0===n||n.document.removeEventListener(e,o,{capture:!0})}}))},s=function(){return new n((function(e){var n,r=function(n){e.next(n)};return null===(n=t())||void 0===n||n.addEventListener("scroll",r),function(){var e;null===(e=t())||void 0===e||e.removeEventListener("scroll",r)}}))},a=function(e,r){return new n((function(n){var o,i=t();if(!(null==i?void 0:i.IntersectionObserver))return function(){};var c=new IntersectionObserver((function(e){e.forEach((function(e){n.next(e)}))}),{root:null,rootMargin:"0px",threshold:1}),u=r.join(",");(null!==(o=null==i?void 0:i.document.querySelectorAll(u))&&void 0!==o?o:[]).forEach((function(e){c.observe(e)}));var s=e.subscribe((function(e){return e.event.forEach((function(e){return e.addedNodes.forEach((function(e){e instanceof Element&&(e.matches(u)&&c.observe(e),e.querySelectorAll(u).forEach((function(e){c.observe(e)})))}))}))}));return function(){s.unsubscribe(),c.disconnect()}}))},l=function(){var t=r(new n((function(n){var r=function(r){if(r instanceof ErrorEvent){var t={kind:"error"};r.error instanceof Error||r.error instanceof DOMException?t=e(e({},t),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):"string"==typeof r.error&&(t.message=r.error),n.next(t)}};return i.addEventListener("error",r),function(){i.removeEventListener("error",r)}})),new n((function(e){var n=function(n){var r={kind:"unhandledrejection"};n.reason instanceof Error||n.reason instanceof DOMException?(r.message=n.reason.message,r.stack=n.reason.stack):"string"==typeof n.reason&&(r.message=n.reason),e.next(r)};return i.addEventListener("unhandledrejection",n),function(){i.removeEventListener("unhandledrejection",n)}})));return r(t,new n((function(e){var n=function(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var o=void 0;Array.isArray(r[0])&&"string"==typeof r[0][0]&&(o=r[0][0]),e.next({kind:"console",message:o})};return o.addListener("error",n),function(){o.removeListener(n)}})))},d=function(){return new n((function(e){var n=function(n){e.next(n)},r={capture:!0};return i.document.addEventListener("mousemove",n,r),function(){i.document.removeEventListener("mousemove",n,r)}}))};export{u as createClickObservable,l as createErrorObservable,a as createExposureObservable,d as createMouseMoveObservable,c as createMutationObservable,s as createScrollObservable};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as n}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as r}from"./constants.js";import{trackNetworkEvents as t}from"./track-network-event.js";import o from"../../../../../../../../_virtual/index2.js";import{NetworkEventCallback as i,networkObserver as u}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js";var s,c;!function(e){e.NetworkObservable="networkObservable"}(s||(s={}));var l=function(l){void 0===l&&(l={});var a,d=r,v=function(){var e,n=new o((function(e){var n=new i((function(n){var r=function(e,n){return{event:e,timestamp:Date.now(),type:n}}(n,"network");e.next(r)}));return u.subscribe(n,a),function(){u.unsubscribe(n)}}));return(e={})[s.NetworkObservable]=n,e};return{name:d,type:"enrichment",setup:function(r,o){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){return"undefined"==typeof document||(e=v(),a=null==r?void 0:r.loggerProvider,c=t({allObservables:e,networkTrackingOptions:l,amplitude:o,loggerProvider:a}),null==a||a.log("".concat(d," has been successfully added."))),[2]}))}))},execute:function(r){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,r]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return c.unsubscribe(),[2]}))}))}}};export{s as ObservablesEnum,l as networkCapturePlugin};
1
+ import{__awaiter as e,__generator as n}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{PLUGIN_NAME as r}from"./constants.js";import{trackNetworkEvents as t}from"./track-network-event.js";import o from"../../../../../../../../_virtual/index.js";import{NetworkEventCallback as i,networkObserver as u}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js";var s,c;!function(e){e.NetworkObservable="networkObservable"}(s||(s={}));var l=function(l){void 0===l&&(l={});var a,d=r,v=function(){var e,n=new o((function(e){var n=new i((function(n){var r=function(e,n){return{event:e,timestamp:Date.now(),type:n}}(n,"network");e.next(r)}));return u.subscribe(n,a),function(){u.unsubscribe(n)}}));return(e={})[s.NetworkObservable]=n,e};return{name:d,type:"enrichment",setup:function(r,o){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){return"undefined"==typeof document||(e=v(),a=null==r?void 0:r.loggerProvider,c=t({allObservables:e,networkTrackingOptions:l,amplitude:o,loggerProvider:a}),null==a||a.log("".concat(d," has been successfully added."))),[2]}))}))},execute:function(r){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return[2,r]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return c.unsubscribe(),[2]}))}))}}};export{s as ObservablesEnum,l as networkCapturePlugin};
@@ -4,13 +4,13 @@ import type { BulkTransfer, BulkTransferParams, GetBulkTransfer, GetBulkTransfer
4
4
  * Fetches the list of SEPA bulk transfers for the current user.
5
5
  * @param getBulkTransfersParams - An optional object containing:
6
6
  * - `operationSettings`: An object with operation-level settings such as
7
- * `proxyRequestFunction` (preferred over using the access token flow),
7
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
8
8
  * `accessToken`, `stagingToken`, `paginationSettings`, and other optional
9
9
  * parameters.
10
10
  * @returns A promise that resolves to an object containing an array of bulk
11
11
  * transfers and a `meta` object containing pagination state.
12
12
  * @throws `InvalidParametersError` If any parameter validation fails.
13
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
13
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
14
14
  * `accessToken` are invalid or missing within `operationSettings`.
15
15
  * @throws `EmbedApiError` If the API request fails or returns an error.
16
16
  */
@@ -21,14 +21,14 @@ export declare function getBulkTransfers(getBulkTransfersParams?: SepaTransferPa
21
21
  * - `sepaTransferSettings`: An object that contains the mandatory `bulkTransferId`
22
22
  * to identify the bulk transfer to retrieve.
23
23
  * - `operationSettings`: An object with operation-level settings such as
24
- * `proxyRequestFunction` (preferred over using the access token flow),
24
+ * `proxyEndpointDescriptor` (preferred over using the access token flow),
25
25
  * `accessToken`, `stagingToken`, and other optional
26
26
  * parameters.
27
27
  * @returns A promise that resolves to a BulkTransfer object containing details of
28
28
  * the requested bulk transfer.
29
29
  * @throws `InvalidParametersError` If the `bulkTransferId` parameter is not a string
30
30
  * or missing, or if any parameter validation fails.
31
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and
31
+ * @throws `AuthenticationError` If both the `proxyEndpointDescriptor` and
32
32
  * `accessToken` are invalid or missing within `operationSettings`.
33
33
  * @throws `EmbedApiError` If the API request fails or returns an error.
34
34
  */
@@ -10,7 +10,7 @@ export interface BulkTransferClientParams<T> {
10
10
  /**
11
11
  * Fetches the list of SEPA bulk transfers for the current user.
12
12
  * @param getBulkTransfersParams - An optional object containing operation settings with
13
- * proxyRequestFunction or proxyEndpointDescriptor (required).
13
+ * proxyEndpointDescriptor (required).
14
14
  * @returns A promise that resolves to an object containing an array of bulk
15
15
  * transfers and a `meta` object containing pagination state.
16
16
  */
@@ -18,7 +18,7 @@ export declare function getBulkTransfers(getBulkTransfersParams?: BulkTransferCl
18
18
  /**
19
19
  * Fetches a specific SEPA bulk transfer by its ID.
20
20
  * @param params - An object containing the bulkTransferId and operation settings with
21
- * proxyRequestFunction or proxyEndpointDescriptor (required).
21
+ * proxyEndpointDescriptor (required).
22
22
  * @returns A promise that resolves to a BulkTransfer object.
23
23
  */
24
24
  export declare function getBulkTransfer({ bulkTransferSettings, operationSettings, }: BulkTransferClientParams<GetBulkTransfer>): Promise<BulkTransfer>;
@@ -34,7 +34,7 @@ interface CreateBulkTransferClientParams {
34
34
  * This function is only available in client-side (browser) environments as it requires UI interaction.
35
35
  *
36
36
  * @param params - An object containing bulk transfer settings and operation settings with
37
- * proxyRequestFunction or proxyEndpointDescriptor (required).
37
+ * proxyEndpointDescriptor (required).
38
38
  * @returns As a yielded value, VoP check results for all unique beneficiaries.
39
39
  * As the final return value, an object containing the created bulk transfer and metadata
40
40
  * including the idempotency key.
@@ -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":"AAeA,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,CAmCnC;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAuBnE;AAwBD;;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,CAqEA"}
1
+ {"version":3,"file":"bulk-transfers.client.d.ts","sourceRoot":"","sources":["../../../../../src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.ts"],"names":[],"mappings":"AAeA,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"}
@@ -12,7 +12,7 @@ import { createBulkTransfer, getBulkTransfer, getBulkTransfers } from './client/
12
12
  * const { bulkTransfers } = sepaTransfers;
13
13
  *
14
14
  * await bulkTransfers.getBulkTransfers({
15
- * operationSettings: { proxyRequestFunction }
15
+ * operationSettings: { proxyEndpointDescriptor }
16
16
  * });
17
17
  * ```
18
18
  */
@@ -13,12 +13,11 @@ export interface SepaTransferClientParams<T> {
13
13
  * Fetches the list of SEPA transfers for the current user.
14
14
  * @param getSepaTransfersParams - An object containing:
15
15
  * - `operationSettings`: An object with operation-level settings such as
16
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required),
16
+ * `proxyEndpointDescriptor` (required),
17
17
  * `paginationSettings`, and other optional parameters.
18
18
  * @returns A promise that resolves to an object containing an array of SEPA
19
19
  * transfers and a `meta` object containing pagination state.
20
- * @throws `InvalidParametersError` If neither proxyRequestFunction nor
21
- * proxyEndpointDescriptor is provided.
20
+ * @throws `InvalidParametersError` If proxyEndpointDescriptor is not provided.
22
21
  * @throws `EmbedApiError` If the API request fails or returns an error.
23
22
  */
24
23
  export declare function getSepaTransfers(getSepaTransfersParams?: SepaTransferClientParams<never>): Promise<GetSepaTransfersResponse>;
@@ -27,10 +26,10 @@ export declare function getSepaTransfers(getSepaTransfersParams?: SepaTransferCl
27
26
  * @param getSepaTransferParams - An object containing:
28
27
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
29
28
  * - `operationSettings`: An object with operation-level settings such as
30
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
29
+ * `proxyEndpointDescriptor` (required).
31
30
  * @returns A promise that resolves to a SEPA transfer.
32
31
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is not a string,
33
- * missing, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
32
+ * missing, or if proxyEndpointDescriptor is not provided.
34
33
  * @throws `EmbedApiError` If the API request fails or returns an error.
35
34
  */
36
35
  export declare function getSepaTransfer({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<GetSepaTransfer>): Promise<SepaTransfer>;
@@ -61,10 +60,10 @@ export declare function createSepaTransfer({ sepaTransferSettings, operationSett
61
60
  * @param cancelSepaTransferParams - An object containing:
62
61
  * - `sepaTransferSettings`: An object with the `sepaTransferId` property (string).
63
62
  * - `operationSettings`: An object with operation-level settings such as
64
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
63
+ * `proxyEndpointDescriptor` (required).
65
64
  * @returns A promise that resolves without return value.
66
65
  * @throws `InvalidParametersError` If the `sepaTransferId` parameter is missing,
67
- * not a string, or if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
66
+ * not a string, or if proxyEndpointDescriptor is not provided.
68
67
  * @throws `EmbedApiError` If the API request fails or returns an error.
69
68
  */
70
69
  export declare function cancelSepaTransfer({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<CancelSepaTransferParams>): Promise<void>;
@@ -75,10 +74,10 @@ export declare function cancelSepaTransfer({ sepaTransferSettings, operationSett
75
74
  * @param getSepaTransferCreationFlowLinkParams - An object containing:
76
75
  * - `sepaTransferSettings`: An object with the `callbackUrl` property.
77
76
  * - `operationSettings`: An object with operation-level settings such as
78
- * `proxyRequestFunction` or `proxyEndpointDescriptor` (required).
77
+ * `proxyEndpointDescriptor` (required).
79
78
  * @returns A promise that resolves to an object representing the Embed Auth Link.
80
79
  * @throws `InvalidParametersError` If the callbackUrl is invalid or missing, or if
81
- * neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
80
+ * proxyEndpointDescriptor is not provided.
82
81
  * @throws `EmbedApiError` If the API request fails or returns an error.
83
82
  */
84
83
  export declare function getSepaTransferCreationFlowLink({ sepaTransferSettings, operationSettings, }: SepaTransferClientParams<SepaTransferCreationFlowRequest>): Promise<AuthLinkRequestResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"sepa-transfers.client.d.ts","sourceRoot":"","sources":["../../../../src/sepa-transfers/client/sepa-transfers.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAcjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAuBzF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAI/B,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AAexC,OAAO,+DAA+D,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAmCnC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAuBnE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CACzB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAChB,qBAAqB,EACrB,0BAA0B,GAAG,SAAS,CACvC,CAuIA;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBpE;AA6BD;;;;;;;;;;;;GAYG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4B5F"}
1
+ {"version":3,"file":"sepa-transfers.client.d.ts","sourceRoot":"","sources":["../../../../src/sepa-transfers/client/sepa-transfers.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAcjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAuBzF,OAAO,KAAK,EACV,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,eAAe,EACf,wBAAwB,EACxB,eAAe,EAEf,YAAY,EACZ,+BAA+B,EAI/B,qBAAqB,EACtB,MAAM,gCAAgC,CAAC;AAexC,OAAO,+DAA+D,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACzB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,sBAAsB,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,GACvD,OAAO,CAAC,wBAAwB,CAAC,CAkCnC;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,EACpC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAqBnE;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAuB,kBAAkB,CAAC,EACxC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CACzB,eAAe,GAAG,4BAA4B,CAC/C,GAAG,cAAc,CAChB,qBAAqB,EACrB,0BAA0B,GAAG,SAAS,CACvC,CAiIA;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,wBAAwB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBpE;AA2BD;;;;;;;;;;;;GAYG;AACH,wBAAsB,+BAA+B,CAAC,EACpD,oBAAoB,EACpB,iBAAiB,GAClB,EAAE,wBAAwB,CAAC,+BAA+B,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA0B5F"}
@@ -1,7 +1,7 @@
1
1
  import { cancelSepaTransfer, createSepaTransfer, getSepaTransfer, getSepaTransferCreationFlowLink, getSepaTransfers } from './client/sepa-transfers.client';
2
2
  /**
3
3
  * The sepaTransfers namespace contains all the client-side functions related to SEPA transfer operations.
4
- * This version uses proxy-based authentication (proxyRequestFunction or proxyEndpointDescriptor)
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'.
@@ -15,11 +15,11 @@ import { cancelSepaTransfer, createSepaTransfer, getSepaTransfer, getSepaTransfe
15
15
  * ```ts
16
16
  * // Single SEPA transfers
17
17
  * await sepaTransfers.getSepaTransfers({
18
- * operationSettings: { proxyRequestFunction }
18
+ * operationSettings: { proxyEndpointDescriptor }
19
19
  * });
20
20
  * await sepaTransfers.getSepaTransfer({
21
21
  * sepaTransferSettings: { sepaTransferId: '...' },
22
- * operationSettings: { proxyRequestFunction }
22
+ * operationSettings: { proxyEndpointDescriptor }
23
23
  * });
24
24
  *
25
25
  * // Bulk transfers are nested under sepaTransfers.bulkTransfers