@qonto/embed-sdk 0.49.0 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cards/cards.d.ts +39 -26
- package/dist/cards/cards.d.ts.map +1 -1
- package/dist/errors/AuthenticationError.d.ts +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/organizations/organizations.d.ts +11 -6
- package/dist/organizations/organizations.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.api.d.ts +9 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.api.d.ts.map +1 -1
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +25 -32
- package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts.map +1 -1
- package/dist/sepa-transfers/sepa-transfers.d.ts +36 -51
- package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
- package/dist/src/cards/cards.js +1 -1
- package/dist/src/common/api-pagination/api-pagination.js +1 -1
- package/dist/src/errors/AuthenticationError.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.api.js +1 -1
- package/dist/src/sepa-transfers/bulk-transfers/bulk-transfers.js +1 -1
- package/package.json +1 -1
package/dist/cards/cards.d.ts
CHANGED
|
@@ -52,13 +52,14 @@ export declare function getCards(getCardsParams?: CardParams<{
|
|
|
52
52
|
* @param getCardParams - An object containing:
|
|
53
53
|
* - `cardSettings`: An object with the `cardId` property (string).
|
|
54
54
|
* - `operationSettings`: An object with operation-level settings such as
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
55
|
+
* `proxyRequestFunction` (preferred over using the access token flow),
|
|
56
|
+
* `accessToken`, `stagingToken`, and other optional
|
|
57
|
+
* parameters. See {@link CardParams}.
|
|
58
58
|
* @returns A promise that resolves to a card.
|
|
59
|
-
* @throws `InvalidParametersError` If the cardId is not provided
|
|
60
|
-
*
|
|
61
|
-
* `
|
|
59
|
+
* @throws `InvalidParametersError` If the cardId is not provided, not a string, or
|
|
60
|
+
* if any parameter validation fails.
|
|
61
|
+
* @throws `AuthenticationError` If both the `proxyRequestFunction` and
|
|
62
|
+
* `accessToken` are invalid or missing within `operationSettings`.
|
|
62
63
|
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
63
64
|
*/
|
|
64
65
|
export declare function getCard({ cardSettings, operationSettings, }: CardParams<{
|
|
@@ -68,13 +69,17 @@ export declare function getCard({ cardSettings, operationSettings, }: CardParams
|
|
|
68
69
|
* Requests the creation of a card by showing the user the UI to perform MFA in the calling page.
|
|
69
70
|
* It will show an element on the screen where users will be able to go through the MFA
|
|
70
71
|
* authentication process and upon successful authentication, will perform the ordering operation.
|
|
71
|
-
* @param cardConfig - An object
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* the UI
|
|
72
|
+
* @param cardConfig - An object containing:
|
|
73
|
+
* - `cardSettings`: An object with the card order parameters (see examples below).
|
|
74
|
+
* - `operationSettings`: Required settings to configure this operation. Must include
|
|
75
|
+
* `uiParentElementId` to specify where the UI will be rendered. Also supports
|
|
76
|
+
* `accessToken`, `stagingToken`, `mfaPreference`, `debugMode`, and other properties.
|
|
77
|
+
* See {@link OperationSettings} for details.
|
|
75
78
|
* @returns A promise that resolves to an object representing the ordered card.
|
|
76
|
-
* @throws `InvalidParametersError` If
|
|
77
|
-
*
|
|
79
|
+
* @throws `InvalidParametersError` If `uiParentElementId` is missing, if the card
|
|
80
|
+
* settings are invalid, or if any parameter validation fails.
|
|
81
|
+
* @throws `AuthenticationError` If the `accessToken` is invalid or missing.
|
|
82
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
78
83
|
* @example Ordering a physical card to be shipped to the org's business address
|
|
79
84
|
* ```ts
|
|
80
85
|
* const cardConfig = {
|
|
@@ -153,14 +158,17 @@ export declare function orderCard(cardConfig: CardParams<CardOrderSettings>): Pr
|
|
|
153
158
|
* Unlocks a locked card by showing the user the UI to perform MFA in the calling page.
|
|
154
159
|
* It will show an element on the screen where users will be able to go through the MFA
|
|
155
160
|
* authentication process and upon successful authentication, will perform the unlock operation.
|
|
156
|
-
* @param cardConfig - An object
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
+
* @param cardConfig - An object containing:
|
|
162
|
+
* - `cardSettings`: An object with the `cardId` property (string).
|
|
163
|
+
* - `operationSettings`: Required settings to configure this operation. Must include
|
|
164
|
+
* `uiParentElementId` to specify where the UI will be rendered. Also supports
|
|
165
|
+
* `accessToken`, `stagingToken`, `mfaPreference`, `debugMode`, and other properties.
|
|
166
|
+
* See {@link OperationSettings} for details.
|
|
161
167
|
* @returns A promise that resolves to an object representing the unlocked card.
|
|
162
|
-
* @throws `InvalidParametersError` If
|
|
163
|
-
*
|
|
168
|
+
* @throws `InvalidParametersError` If `uiParentElementId` is missing, if the cardId
|
|
169
|
+
* is not provided or not a string, or if any parameter validation fails.
|
|
170
|
+
* @throws `AuthenticationError` If the `accessToken` is invalid or missing.
|
|
171
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
164
172
|
* @example
|
|
165
173
|
* ```ts
|
|
166
174
|
* const cardConfig = {
|
|
@@ -178,15 +186,20 @@ export declare function unlockCard(cardConfig: CardParams<UnlockCardSettings>):
|
|
|
178
186
|
/**
|
|
179
187
|
* Displays a Cards UI in the calling page which allows the user to see card details and perform
|
|
180
188
|
* some operations.
|
|
181
|
-
* @param cardConfig - An object
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
189
|
+
* @param cardConfig - An object containing:
|
|
190
|
+
* - `cardSettings`: An object with the `cardId` property (string).
|
|
191
|
+
* - `operationSettings`: Required settings to configure this operation. Must include
|
|
192
|
+
* `uiParentElementId` to specify where the UI will be rendered. Also supports
|
|
193
|
+
* `proxyRequestFunction` (recommended for production to avoid exposing tokens),
|
|
194
|
+
* `accessToken`, `stagingToken`, and other properties. See {@link OperationSettings}
|
|
195
|
+
* for details.
|
|
186
196
|
* @returns A promise that resolves to an object with a `destroyEmbedUI` function. When calling
|
|
187
197
|
* this function, the UI will be removed from the DOM.
|
|
188
|
-
* @throws `InvalidParametersError` If
|
|
189
|
-
*
|
|
198
|
+
* @throws `InvalidParametersError` If `uiParentElementId` is missing, if the cardId
|
|
199
|
+
* is not provided or not a string, or if any parameter validation fails.
|
|
200
|
+
* @throws `AuthenticationError` If both `proxyRequestFunction` and `accessToken`
|
|
201
|
+
* are invalid or missing.
|
|
202
|
+
* @throws `EmbedApiError` If the API request fails or returns an error.
|
|
190
203
|
*/
|
|
191
204
|
export declare function displayCard(cardConfig: CardParams<DisplayCardSettings>): Promise<DisplayCardReturnObject>;
|
|
192
205
|
//# sourceMappingURL=cards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/cards/cards.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AAavB,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,2CAA2C,CAAC;AAQnD;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B;;;OAGG;IACH,YAAY,EAAE,CAAC,CAAC;IAChB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,QAAQ,CAC5B,cAAc,CAAC,EAAE,UAAU,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GACrD,OAAO,CAAC,IAAI,EAAE,CAAC,CAkCjB;AAED
|
|
1
|
+
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/cards/cards.ts"],"names":[],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lC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QontoEmbedSdkError } from './QontoEmbedSdkError';
|
|
2
2
|
/**
|
|
3
|
-
* Error thrown when authentication fails due to missing or invalid
|
|
3
|
+
* Error thrown when authentication fails due to missing or invalid authentication methods
|
|
4
4
|
*/
|
|
5
5
|
export declare class AuthenticationError extends QontoEmbedSdkError {
|
|
6
6
|
/**
|