@qonto/embed-sdk 0.64.3 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +2 -2
- package/dist/organizations/client/organizations.client.d.ts +4 -24
- package/dist/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/organizations/index.d.ts +1 -7
- package/dist/organizations/index.d.ts.map +1 -1
- package/dist/organizations/index.server.d.ts +1 -1
- package/dist/organizations/index.server.d.ts.map +1 -1
- package/dist/server/organizations/client/organizations.client.d.ts +4 -24
- package/dist/server/organizations/client/organizations.client.d.ts.map +1 -1
- package/dist/server/organizations/index.d.ts +1 -7
- package/dist/server/organizations/index.d.ts.map +1 -1
- package/dist/server/organizations/index.server.d.ts +1 -1
- package/dist/server/organizations/index.server.d.ts.map +1 -1
- package/dist/server/transactions/client/transactions.client.d.ts +1 -2
- package/dist/server/transactions/client/transactions.client.d.ts.map +1 -1
- package/dist/src/organizations/client/organizations.client.js +1 -1
- package/dist/src/transactions/client/transactions.client.js +1 -1
- package/dist/transactions/client/transactions.client.d.ts +1 -2
- package/dist/transactions/client/transactions.client.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,26 +7,16 @@ import type { BankAccount, Organization } from '../shared/organizations.types';
|
|
|
7
7
|
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
8
8
|
*
|
|
9
9
|
* @param operationSettings - An object with operation-level settings such as
|
|
10
|
-
* `proxyEndpointDescriptor` (
|
|
10
|
+
* `proxyEndpointDescriptor` (required).
|
|
11
11
|
* @returns A promise that resolves to the organization the current user belongs to.
|
|
12
|
-
* @throws `InvalidParametersError` If
|
|
13
|
-
* `proxyRequestFunction` is provided.
|
|
12
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided.
|
|
14
13
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
16
|
* ```
|
|
18
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
19
17
|
* const organization = await getOrganization({
|
|
20
18
|
* operationSettings: { proxyEndpointDescriptor }
|
|
21
19
|
* });
|
|
22
|
-
*```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
* // Alternative: Using proxyRequestFunction
|
|
27
|
-
* const organization = await getOrganization({
|
|
28
|
-
* operationSettings: { proxyRequestFunction }
|
|
29
|
-
* });
|
|
30
20
|
* ```
|
|
31
21
|
*/
|
|
32
22
|
export declare const getOrganization: ({ operationSettings, }: {
|
|
@@ -39,27 +29,17 @@ export declare const getOrganization: ({ operationSettings, }: {
|
|
|
39
29
|
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
40
30
|
*
|
|
41
31
|
* @param operationSettings - An object with operation-level settings such as
|
|
42
|
-
* `proxyEndpointDescriptor` (
|
|
32
|
+
* `proxyEndpointDescriptor` (required).
|
|
43
33
|
* @returns A promise that resolves to the bank accounts for the organization.
|
|
44
|
-
* @throws `InvalidParametersError` If
|
|
45
|
-
* `proxyRequestFunction` is provided.
|
|
34
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided.
|
|
46
35
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
47
36
|
*
|
|
48
37
|
* @example
|
|
49
38
|
* ```
|
|
50
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
51
39
|
* const bankAccounts = await getBankAccounts({
|
|
52
40
|
* operationSettings: { proxyEndpointDescriptor }
|
|
53
41
|
* });
|
|
54
42
|
* ```
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```
|
|
58
|
-
* // Alternative: Using proxyRequestFunction
|
|
59
|
-
* const bankAccounts = await getBankAccounts({
|
|
60
|
-
* operationSettings: { proxyRequestFunction }
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
43
|
*/
|
|
64
44
|
export declare const getBankAccounts: ({ operationSettings, }: {
|
|
65
45
|
operationSettings: ClientOperationSettings;
|
|
@@ -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;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC
|
|
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;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,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"}
|
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
* The organizations namespace contains all the functions related to organizations'
|
|
3
3
|
* operations such as retrieving bank accounts.
|
|
4
4
|
*
|
|
5
|
-
* **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor
|
|
5
|
+
* **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor).
|
|
6
6
|
* For server-side operations with accessToken, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
10
|
* import { organizations } from '@qonto/embed-sdk/organizations';
|
|
11
11
|
*
|
|
12
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
13
12
|
* const bankAccounts = await organizations.getBankAccounts({
|
|
14
13
|
* operationSettings: { proxyEndpointDescriptor }
|
|
15
14
|
* });
|
|
16
|
-
*
|
|
17
|
-
* // Alternative: Using proxyRequestFunction
|
|
18
|
-
* const bankAccounts = await organizations.getBankAccounts({
|
|
19
|
-
* operationSettings: { proxyRequestFunction }
|
|
20
|
-
* });
|
|
21
15
|
* ```
|
|
22
16
|
*/
|
|
23
17
|
export declare const organizations: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;;;;;CAGzB,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* operations such as retrieving bank accounts.
|
|
4
4
|
*
|
|
5
5
|
* **Server-side only** - Uses accessToken-based authentication.
|
|
6
|
-
* For client-side operations with proxyEndpointDescriptor
|
|
6
|
+
* For client-side operations with proxyEndpointDescriptor,
|
|
7
7
|
* import from `'@qonto/embed-sdk/organizations'`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBAQmQ,CAAC;;;yBAAoqC,CAAC;;CALl8C,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -7,26 +7,16 @@ import type { BankAccount, Organization } from '../shared/organizations.types';
|
|
|
7
7
|
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
8
8
|
*
|
|
9
9
|
* @param operationSettings - An object with operation-level settings such as
|
|
10
|
-
* `proxyEndpointDescriptor` (
|
|
10
|
+
* `proxyEndpointDescriptor` (required).
|
|
11
11
|
* @returns A promise that resolves to the organization the current user belongs to.
|
|
12
|
-
* @throws `InvalidParametersError` If
|
|
13
|
-
* `proxyRequestFunction` is provided.
|
|
12
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided.
|
|
14
13
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
16
|
* ```
|
|
18
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
19
17
|
* const organization = await getOrganization({
|
|
20
18
|
* operationSettings: { proxyEndpointDescriptor }
|
|
21
19
|
* });
|
|
22
|
-
*```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
* // Alternative: Using proxyRequestFunction
|
|
27
|
-
* const organization = await getOrganization({
|
|
28
|
-
* operationSettings: { proxyRequestFunction }
|
|
29
|
-
* });
|
|
30
20
|
* ```
|
|
31
21
|
*/
|
|
32
22
|
export declare const getOrganization: ({ operationSettings, }: {
|
|
@@ -39,27 +29,17 @@ export declare const getOrganization: ({ operationSettings, }: {
|
|
|
39
29
|
* For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
40
30
|
*
|
|
41
31
|
* @param operationSettings - An object with operation-level settings such as
|
|
42
|
-
* `proxyEndpointDescriptor` (
|
|
32
|
+
* `proxyEndpointDescriptor` (required).
|
|
43
33
|
* @returns A promise that resolves to the bank accounts for the organization.
|
|
44
|
-
* @throws `InvalidParametersError` If
|
|
45
|
-
* `proxyRequestFunction` is provided.
|
|
34
|
+
* @throws `InvalidParametersError` If `proxyEndpointDescriptor` is not provided.
|
|
46
35
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
47
36
|
*
|
|
48
37
|
* @example
|
|
49
38
|
* ```
|
|
50
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
51
39
|
* const bankAccounts = await getBankAccounts({
|
|
52
40
|
* operationSettings: { proxyEndpointDescriptor }
|
|
53
41
|
* });
|
|
54
42
|
* ```
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```
|
|
58
|
-
* // Alternative: Using proxyRequestFunction
|
|
59
|
-
* const bankAccounts = await getBankAccounts({
|
|
60
|
-
* operationSettings: { proxyRequestFunction }
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
43
|
*/
|
|
64
44
|
export declare const getBankAccounts: ({ operationSettings, }: {
|
|
65
45
|
operationSettings: ClientOperationSettings;
|
|
@@ -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;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC
|
|
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;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,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"}
|
|
@@ -2,22 +2,16 @@
|
|
|
2
2
|
* The organizations namespace contains all the functions related to organizations'
|
|
3
3
|
* operations such as retrieving bank accounts.
|
|
4
4
|
*
|
|
5
|
-
* **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor
|
|
5
|
+
* **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor).
|
|
6
6
|
* For server-side operations with accessToken, import from `'@qonto/embed-sdk/server/organizations'`.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
10
|
* import { organizations } from '@qonto/embed-sdk/organizations';
|
|
11
11
|
*
|
|
12
|
-
* // Preferred: Using proxyEndpointDescriptor
|
|
13
12
|
* const bankAccounts = await organizations.getBankAccounts({
|
|
14
13
|
* operationSettings: { proxyEndpointDescriptor }
|
|
15
14
|
* });
|
|
16
|
-
*
|
|
17
|
-
* // Alternative: Using proxyRequestFunction
|
|
18
|
-
* const bankAccounts = await organizations.getBankAccounts({
|
|
19
|
-
* operationSettings: { proxyRequestFunction }
|
|
20
|
-
* });
|
|
21
15
|
* ```
|
|
22
16
|
*/
|
|
23
17
|
export declare const organizations: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;;;;;;CAGzB,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* operations such as retrieving bank accounts.
|
|
4
4
|
*
|
|
5
5
|
* **Server-side only** - Uses accessToken-based authentication.
|
|
6
|
-
* For client-side operations with proxyEndpointDescriptor
|
|
6
|
+
* For client-side operations with proxyEndpointDescriptor,
|
|
7
7
|
* import from `'@qonto/embed-sdk/organizations'`.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBAQmQ,CAAC;;;yBAAoqC,CAAC;;CALl8C,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -45,8 +45,7 @@ export interface TransactionParams<T> {
|
|
|
45
45
|
* object containing pagination state.
|
|
46
46
|
* @throws `InvalidParametersError` If any of the values provided under
|
|
47
47
|
* operationSettings or transactionSettings is invalid.
|
|
48
|
-
* @throws `AuthenticationError` If
|
|
49
|
-
* `proxyEndpointDescriptor` is missing within `operationSettings`.
|
|
48
|
+
* @throws `AuthenticationError` If `proxyEndpointDescriptor` is missing within `operationSettings`.
|
|
50
49
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
51
50
|
*/
|
|
52
51
|
export declare function getTransactions(getTransactionsParams?: TransactionParams<GetTransactionsSettings>): Promise<GetTransactionsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED
|
|
1
|
+
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,eAAe,CACnC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,GACjE,OAAO,CAAC,uBAAuB,CAAC,CA6BlC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAwBlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as
|
|
1
|
+
import{tracker as o}from"../../common/analytics/analytics-tracker.js";import{callProxyFunction as i}from"../../common/common.utils.js";import{validateClientOperationSettings as n}from"../../validation/operation-settings-validation.js";import{prepareGetBankAccounts as t,prepareGetOrganization as r}from"../shared/organizations.api.js";import{serializeBankAccount as a,serializeOrganization as s}from"../shared/organizations.serializer.js";const e=async({operationSettings:t})=>{o.organizationsList();const{stagingToken:a,proxyEndpointDescriptor:e}=n(t,"Client-side organizations operations require proxyEndpointDescriptor."),p=r({stagingToken:a}),c=await i({proxyEndpointDescriptor:e,networkCallDescriptor:p});return s(c.body.organization)},p=async({operationSettings:r})=>{o.organizationsBankAccounts();const{stagingToken:s,proxyEndpointDescriptor:e}=n(r,"Client-side organizations operations require proxyEndpointDescriptor."),p=t({stagingToken:s});return(await i({proxyEndpointDescriptor:e,networkCallDescriptor:p})).body.bank_accounts.map(a)};export{p as getBankAccounts,e as getOrganization};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tracker as t}from"../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import{callProxyFunction as o}from"../../common/common.utils.js";import{validateClientOperationSettings as r}from"../../validation/operation-settings-validation.js";import{prepareGetTransactionsCall as i,prepareGetTransactionCall as
|
|
1
|
+
import{tracker as t}from"../../common/analytics/analytics-tracker.js";import{serializePaginationResponse as n}from"../../common/api-pagination/api-pagination.js";import{callProxyFunction as o}from"../../common/common.utils.js";import{validateClientOperationSettings as r}from"../../validation/operation-settings-validation.js";import{prepareGetTransactionsCall as i,prepareGetTransactionCall as s}from"../shared/transactions.api.js";import{serializeTransaction as e}from"../shared/transactions.serializer.js";import{validateGetTransactionParams as a}from"../shared/transactions.validation.js";async function c(s){t.transactionsList();const{proxyEndpointDescriptor:a,paginationSettings:c}=r(s?.operationSettings||{},'Client-side transaction operations require proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/server/transactions" only in server-side/backend environments.'),p={...s?.transactionSettings||{},paginationSettings:c},m=i(p),d=await o({proxyEndpointDescriptor:a,networkCallDescriptor:m});return{transactions:d.body.transactions.map(e),meta:n(d.body.meta)}}async function p({transactionSettings:n,operationSettings:i}){t.transactionsGet();const{proxyEndpointDescriptor:c}=r(i||{},'Client-side transaction operations require proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/server/transactions" only in server-side/backend environments.'),{transactionId:p}=a(n),m=s({transactionId:p}),d=await o({proxyEndpointDescriptor:c,networkCallDescriptor:m});return e(d.body.transaction)}export{p as getTransaction,c as getTransactions};
|
|
@@ -45,8 +45,7 @@ export interface TransactionParams<T> {
|
|
|
45
45
|
* object containing pagination state.
|
|
46
46
|
* @throws `InvalidParametersError` If any of the values provided under
|
|
47
47
|
* operationSettings or transactionSettings is invalid.
|
|
48
|
-
* @throws `AuthenticationError` If
|
|
49
|
-
* `proxyEndpointDescriptor` is missing within `operationSettings`.
|
|
48
|
+
* @throws `AuthenticationError` If `proxyEndpointDescriptor` is missing within `operationSettings`.
|
|
50
49
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
51
50
|
*/
|
|
52
51
|
export declare function getTransactions(getTransactionsParams?: TransactionParams<GetTransactionsSettings>): Promise<GetTransactionsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED
|
|
1
|
+
{"version":3,"file":"transactions.client.d.ts","sourceRoot":"","sources":["../../../src/transactions/client/transactions.client.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAOnD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,eAAe,CACnC,qBAAqB,CAAC,EAAE,iBAAiB,CAAC,uBAAuB,CAAC,GACjE,OAAO,CAAC,uBAAuB,CAAC,CA6BlC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,cAAc,CAAC,EACnC,mBAAmB,EACnB,iBAAiB,GAClB,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAwBlE"}
|