@qonto/embed-sdk 0.61.0 → 0.63.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 (182) hide show
  1. package/dist/cards/{cards.d.ts → client/cards.client.d.ts} +64 -89
  2. package/dist/cards/client/cards.client.d.ts.map +1 -0
  3. package/dist/cards/client/cards.client.test.d.ts +2 -0
  4. package/dist/cards/client/cards.client.test.d.ts.map +1 -0
  5. package/dist/cards/index.d.ts +40 -10
  6. package/dist/cards/index.d.ts.map +1 -1
  7. package/dist/cards/index.server.d.ts +41 -0
  8. package/dist/cards/index.server.d.ts.map +1 -0
  9. package/dist/cards/server/cards.server.d.ts +60 -0
  10. package/dist/cards/server/cards.server.d.ts.map +1 -0
  11. package/dist/cards/server/cards.server.test.d.ts +2 -0
  12. package/dist/cards/server/cards.server.test.d.ts.map +1 -0
  13. package/dist/cards/shared/cards.api.d.ts.map +1 -0
  14. package/dist/cards/shared/cards.constants.d.ts +11 -0
  15. package/dist/cards/shared/cards.constants.d.ts.map +1 -0
  16. package/dist/cards/{cards.helper.d.ts → shared/cards.helper.d.ts} +2 -0
  17. package/dist/cards/shared/cards.helper.d.ts.map +1 -0
  18. package/dist/cards/shared/cards.serializer.d.ts +35 -0
  19. package/dist/cards/shared/cards.serializer.d.ts.map +1 -0
  20. package/dist/cards/shared/cards.shared.test.d.ts +2 -0
  21. package/dist/cards/shared/cards.shared.test.d.ts.map +1 -0
  22. package/dist/cards/{cards.types.d.ts → shared/cards.types.d.ts} +3 -8
  23. package/dist/cards/shared/cards.types.d.ts.map +1 -0
  24. package/dist/cards/{cards.validate.d.ts → shared/cards.validate.d.ts} +1 -1
  25. package/dist/cards/shared/cards.validate.d.ts.map +1 -0
  26. package/dist/common/operation-settings/operation-settings.d.ts.map +1 -1
  27. package/dist/index.umd.js +3 -3
  28. package/dist/mocks/handlers.d.ts +2 -2
  29. package/dist/mocks/handlers.d.ts.map +1 -1
  30. package/dist/server/cards/{cards.d.ts → client/cards.client.d.ts} +64 -89
  31. package/dist/server/cards/client/cards.client.d.ts.map +1 -0
  32. package/dist/server/cards/client/cards.client.test.d.ts +2 -0
  33. package/dist/server/cards/client/cards.client.test.d.ts.map +1 -0
  34. package/dist/server/cards/index.d.ts +40 -10
  35. package/dist/server/cards/index.d.ts.map +1 -1
  36. package/dist/server/cards/index.server.d.ts +41 -0
  37. package/dist/server/cards/index.server.d.ts.map +1 -0
  38. package/dist/server/cards/server/cards.server.d.ts +60 -0
  39. package/dist/server/cards/server/cards.server.d.ts.map +1 -0
  40. package/dist/server/cards/server/cards.server.test.d.ts +2 -0
  41. package/dist/server/cards/server/cards.server.test.d.ts.map +1 -0
  42. package/dist/server/cards/shared/cards.api.d.ts.map +1 -0
  43. package/dist/server/cards/shared/cards.constants.d.ts +11 -0
  44. package/dist/server/cards/shared/cards.constants.d.ts.map +1 -0
  45. package/dist/server/cards/{cards.helper.d.ts → shared/cards.helper.d.ts} +2 -0
  46. package/dist/server/cards/shared/cards.helper.d.ts.map +1 -0
  47. package/dist/server/cards/shared/cards.serializer.d.ts +35 -0
  48. package/dist/server/cards/shared/cards.serializer.d.ts.map +1 -0
  49. package/dist/server/cards/shared/cards.shared.test.d.ts +2 -0
  50. package/dist/server/cards/shared/cards.shared.test.d.ts.map +1 -0
  51. package/dist/server/cards/{cards.types.d.ts → shared/cards.types.d.ts} +3 -8
  52. package/dist/{cards → server/cards/shared}/cards.types.d.ts.map +1 -1
  53. package/dist/server/cards/{cards.validate.d.ts → shared/cards.validate.d.ts} +1 -1
  54. package/dist/server/cards/shared/cards.validate.d.ts.map +1 -0
  55. package/dist/server/common/operation-settings/operation-settings.d.ts.map +1 -1
  56. package/dist/server/index.server.umd.js +1 -1
  57. package/dist/server/mocks/handlers.d.ts +2 -2
  58. package/dist/server/mocks/handlers.d.ts.map +1 -1
  59. package/dist/server/src/common/operation-settings/operation-settings.js +1 -1
  60. package/dist/{transactions/transactions.d.ts → server/transactions/client/transactions.client.d.ts} +33 -17
  61. package/dist/server/transactions/client/transactions.client.d.ts.map +1 -0
  62. package/dist/server/transactions/client/transactions.client.test.d.ts +2 -0
  63. package/dist/server/transactions/client/transactions.client.test.d.ts.map +1 -0
  64. package/dist/server/transactions/index.d.ts +14 -16
  65. package/dist/server/transactions/index.d.ts.map +1 -1
  66. package/dist/server/transactions/index.server.d.ts +45 -0
  67. package/dist/server/transactions/index.server.d.ts.map +1 -0
  68. package/dist/server/transactions/server/transactions.server.d.ts +70 -0
  69. package/dist/server/transactions/server/transactions.server.d.ts.map +1 -0
  70. package/dist/server/transactions/server/transactions.server.test.d.ts +2 -0
  71. package/dist/server/transactions/server/transactions.server.test.d.ts.map +1 -0
  72. package/dist/server/transactions/shared/transactions.api.d.ts.map +1 -0
  73. package/dist/server/transactions/shared/transactions.serializer.d.ts.map +1 -0
  74. package/dist/server/transactions/shared/transactions.shared.test.d.ts +2 -0
  75. package/dist/server/transactions/shared/transactions.shared.test.d.ts.map +1 -0
  76. package/dist/server/transactions/shared/transactions.types.d.ts.map +1 -0
  77. package/dist/server/transactions/shared/transactions.validation.d.ts +3 -0
  78. package/dist/server/transactions/shared/transactions.validation.d.ts.map +1 -0
  79. package/dist/server/types/types.public-api.d.ts +2 -2
  80. package/dist/server/types/types.public-api.d.ts.map +1 -1
  81. package/dist/server/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts +1 -1
  82. package/dist/server/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts.map +1 -1
  83. package/dist/server/ui/ui-elements/transaction-list/transaction-list.d.ts.map +1 -1
  84. package/dist/src/cards/client/cards.client.js +1 -0
  85. package/dist/src/cards/index.js +1 -1
  86. package/dist/src/cards/shared/cards.api.js +1 -0
  87. package/dist/src/cards/shared/cards.constants.js +1 -0
  88. package/dist/src/cards/shared/cards.helper.js +1 -0
  89. package/dist/src/cards/shared/cards.serializer.js +1 -0
  90. package/dist/src/cards/{cards.types.js → shared/cards.types.js} +1 -1
  91. package/dist/src/cards/shared/cards.validate.js +1 -0
  92. package/dist/src/common/operation-settings/operation-settings.js +1 -1
  93. package/dist/src/transactions/client/transactions.client.js +1 -0
  94. package/dist/src/transactions/index.js +1 -1
  95. package/dist/src/transactions/shared/transactions.api.js +1 -0
  96. package/dist/src/transactions/shared/transactions.validation.js +1 -0
  97. package/dist/src/ui/ui-elements/transaction-list/transaction-list.js +2 -2
  98. package/dist/{server/transactions/transactions.d.ts → transactions/client/transactions.client.d.ts} +33 -17
  99. package/dist/transactions/client/transactions.client.d.ts.map +1 -0
  100. package/dist/transactions/client/transactions.client.test.d.ts +2 -0
  101. package/dist/transactions/client/transactions.client.test.d.ts.map +1 -0
  102. package/dist/transactions/index.d.ts +14 -16
  103. package/dist/transactions/index.d.ts.map +1 -1
  104. package/dist/transactions/index.server.d.ts +45 -0
  105. package/dist/transactions/index.server.d.ts.map +1 -0
  106. package/dist/transactions/server/transactions.server.d.ts +70 -0
  107. package/dist/transactions/server/transactions.server.d.ts.map +1 -0
  108. package/dist/transactions/server/transactions.server.test.d.ts +2 -0
  109. package/dist/transactions/server/transactions.server.test.d.ts.map +1 -0
  110. package/dist/transactions/shared/transactions.api.d.ts.map +1 -0
  111. package/dist/transactions/shared/transactions.serializer.d.ts.map +1 -0
  112. package/dist/transactions/shared/transactions.shared.test.d.ts +2 -0
  113. package/dist/transactions/shared/transactions.shared.test.d.ts.map +1 -0
  114. package/dist/transactions/shared/transactions.types.d.ts.map +1 -0
  115. package/dist/transactions/shared/transactions.validation.d.ts +3 -0
  116. package/dist/transactions/shared/transactions.validation.d.ts.map +1 -0
  117. package/dist/types/types.public-api.d.ts +2 -2
  118. package/dist/types/types.public-api.d.ts.map +1 -1
  119. package/dist/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts +1 -1
  120. package/dist/ui/ui-elements/transaction-list/create-transaction-list-element.d.ts.map +1 -1
  121. package/dist/ui/ui-elements/transaction-list/transaction-list.d.ts.map +1 -1
  122. package/package.json +9 -1
  123. package/dist/cards/cards.api.d.ts.map +0 -1
  124. package/dist/cards/cards.d.ts.map +0 -1
  125. package/dist/cards/cards.helper.d.ts.map +0 -1
  126. package/dist/cards/cards.public-api.d.ts +0 -10
  127. package/dist/cards/cards.public-api.d.ts.map +0 -1
  128. package/dist/cards/cards.serializer.d.ts +0 -72
  129. package/dist/cards/cards.serializer.d.ts.map +0 -1
  130. package/dist/cards/cards.test.d.ts +0 -2
  131. package/dist/cards/cards.test.d.ts.map +0 -1
  132. package/dist/cards/cards.validate.d.ts.map +0 -1
  133. package/dist/server/cards/cards.api.d.ts.map +0 -1
  134. package/dist/server/cards/cards.d.ts.map +0 -1
  135. package/dist/server/cards/cards.helper.d.ts.map +0 -1
  136. package/dist/server/cards/cards.public-api.d.ts +0 -10
  137. package/dist/server/cards/cards.public-api.d.ts.map +0 -1
  138. package/dist/server/cards/cards.serializer.d.ts +0 -72
  139. package/dist/server/cards/cards.serializer.d.ts.map +0 -1
  140. package/dist/server/cards/cards.test.d.ts +0 -2
  141. package/dist/server/cards/cards.test.d.ts.map +0 -1
  142. package/dist/server/cards/cards.types.d.ts.map +0 -1
  143. package/dist/server/cards/cards.validate.d.ts.map +0 -1
  144. package/dist/server/transactions/transactions.api.d.ts.map +0 -1
  145. package/dist/server/transactions/transactions.d.ts.map +0 -1
  146. package/dist/server/transactions/transactions.public-api.d.ts +0 -8
  147. package/dist/server/transactions/transactions.public-api.d.ts.map +0 -1
  148. package/dist/server/transactions/transactions.serializer.d.ts.map +0 -1
  149. package/dist/server/transactions/transactions.test.d.ts +0 -2
  150. package/dist/server/transactions/transactions.test.d.ts.map +0 -1
  151. package/dist/server/transactions/transactions.types.d.ts.map +0 -1
  152. package/dist/server/transactions/transactions.validation.d.ts +0 -3
  153. package/dist/server/transactions/transactions.validation.d.ts.map +0 -1
  154. package/dist/src/cards/cards.api.js +0 -1
  155. package/dist/src/cards/cards.helper.js +0 -1
  156. package/dist/src/cards/cards.js +0 -1
  157. package/dist/src/cards/cards.public-api.js +0 -1
  158. package/dist/src/cards/cards.serializer.js +0 -1
  159. package/dist/src/cards/cards.validate.js +0 -1
  160. package/dist/src/transactions/transactions.api.js +0 -1
  161. package/dist/src/transactions/transactions.js +0 -1
  162. package/dist/src/transactions/transactions.public-api.js +0 -1
  163. package/dist/src/transactions/transactions.validation.js +0 -1
  164. package/dist/transactions/transactions.api.d.ts.map +0 -1
  165. package/dist/transactions/transactions.d.ts.map +0 -1
  166. package/dist/transactions/transactions.public-api.d.ts +0 -8
  167. package/dist/transactions/transactions.public-api.d.ts.map +0 -1
  168. package/dist/transactions/transactions.serializer.d.ts.map +0 -1
  169. package/dist/transactions/transactions.test.d.ts +0 -2
  170. package/dist/transactions/transactions.test.d.ts.map +0 -1
  171. package/dist/transactions/transactions.types.d.ts.map +0 -1
  172. package/dist/transactions/transactions.validation.d.ts +0 -3
  173. package/dist/transactions/transactions.validation.d.ts.map +0 -1
  174. /package/dist/cards/{cards.api.d.ts → shared/cards.api.d.ts} +0 -0
  175. /package/dist/server/cards/{cards.api.d.ts → shared/cards.api.d.ts} +0 -0
  176. /package/dist/server/transactions/{transactions.api.d.ts → shared/transactions.api.d.ts} +0 -0
  177. /package/dist/server/transactions/{transactions.serializer.d.ts → shared/transactions.serializer.d.ts} +0 -0
  178. /package/dist/server/transactions/{transactions.types.d.ts → shared/transactions.types.d.ts} +0 -0
  179. /package/dist/src/transactions/{transactions.serializer.js → shared/transactions.serializer.js} +0 -0
  180. /package/dist/transactions/{transactions.api.d.ts → shared/transactions.api.d.ts} +0 -0
  181. /package/dist/transactions/{transactions.serializer.d.ts → shared/transactions.serializer.d.ts} +0 -0
  182. /package/dist/transactions/{transactions.types.d.ts → shared/transactions.types.d.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  import type { Beneficiary, BeneficiaryDataObject } from '@beneficiaries/shared/beneficiaries.types';
2
- import type { CardDataObject } from '@cards/cards.types';
2
+ import type { CardDataObject } from '@cards/shared/cards.types';
3
3
  import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/shared/organizations.types';
4
4
  import type { BulkTransferDataObject, BulkTransferSettings, NewBulkTransfer, NewBulkTransferWithBeneficiary } from '@sepa-transfers/bulk-transfers/shared/bulk-transfers.types';
5
5
  import type { SepaTransferDataObject } from '@sepa-transfers/shared/sepa-transfers.types';
6
- import type { TransactionDataObject } from '@transactions/transactions.types';
6
+ import type { TransactionDataObject } from '@transactions/shared/transactions.types';
7
7
  export declare const INVALID_ACCESS_TOKEN = "INVALID_ACCESS_TOKEN";
8
8
  export declare const mockedBankAccountsList: BankAccountDataObject[];
9
9
  export declare const mockedOrganization: OrganizationDataObject;
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUzD,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAI9E,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAA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AO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BA26BvB,CAAC"}
@@ -1,101 +1,81 @@
1
- import { type OperationSettings } from '@validation/operation-settings-validation';
2
- import { type Card, type CardOrderSettings, type DisplayCardReturnObject, type DisplayCardSettings, type UnlockCardSettings } from './cards.types';
1
+ import type { ClientOperationSettings, ClientOperationSettingsWithUI } from '@validation/operation-settings-validation';
2
+ import type { Card, CardOrderSettings, DisplayCardReturnObject, DisplayCardSettings, UnlockCardSettings } from '../shared/cards.types';
3
3
  /**
4
- * This is the common parameter format most of the card functions expect as
5
- * their only parameter. It consists of a `cardSettings` object and an optional
6
- * `operationSettings` object. The `cardSettings` object's properties will be
7
- * different depending on the function being called. Read the docs of each card
8
- * related function to see the expected properties of the `cardSettings` object.
9
- * The `operationSettings` object can include a `proxyRequestFunction` which allows
10
- * the SDK to operate without needing an access token in the client. This is the
11
- * recommended approach for production environments to avoid exposing sensitive tokens.
4
+ * Generic parameter type for client-side card operations
12
5
  */
13
- export interface CardParams<T> {
14
- /**
15
- * An object with the parameters relevant to different card operations. Read the
16
- * documentation of each function to see the expected properties of this object.
17
- */
6
+ export interface CardClientParams<T> {
7
+ cardSettings?: T;
8
+ operationSettings?: ClientOperationSettings;
9
+ }
10
+ /**
11
+ * Generic parameter type for client-side card operations that require UI
12
+ */
13
+ export interface CardClientParamsWithUI<T> {
18
14
  cardSettings: T;
19
- /**
20
- * Optional operation settings that can include:
21
- * - `proxyRequestFunction`: A function that allows the SDK to make requests through your server
22
- * to avoid exposing sensitive tokens in the client. This is the recommended approach.
23
- * - `accessToken`: An access token for direct API calls (not recommended for client-side code)
24
- * - `stagingToken`: A token for testing in staging environments
25
- * - Other operation-specific settings
26
- */
27
- operationSettings?: OperationSettings;
15
+ operationSettings: ClientOperationSettingsWithUI;
28
16
  }
29
17
  /**
30
- * Fetches the list of cards for the current user.
18
+ * Fetches the list of cards for the current user (client-side version).
19
+ *
20
+ * This function uses proxy-based authentication and is designed for browser environments.
21
+ * It requires either `proxyEndpointDescriptor` or `proxyRequestFunction` in operationSettings.
22
+ *
31
23
  * @param getCardsParams - An object with optional parameters:
32
24
  * - `cardSettings`: An object that can contain the optional `membershipId` property.
33
- * - `operationSettings`: An object with operation-level settings such as
34
- * `proxyRequestFunction` (preferred over using the access token flow),
35
- * `accessToken`, `stagingToken`, and other optional parameters.
36
- * See {@link OperationSettings} for more details.
37
- * If the `membershipId` parameter is passed, the function will return the cards
38
- * that belong to the specified membership only.
39
- * If the `accessToken` is not provided, the function will use the token previously
40
- * passed to the initialize function. The `stagingToken` is optional, but it has
41
- * to be passed to use the SDK in staging environments (it will be ignored in production).
25
+ * - `operationSettings`: An object with `proxyEndpointDescriptor` or `proxyRequestFunction`
26
+ * (required), `stagingToken`, and other optional parameters.
42
27
  * @returns A promise that resolves to an array of cards.
43
- * @throws `AuthenticationError` If both the `proxyRequestFunction` and `accessToken` are invalid or missing within
44
- * `operationSettings`.
28
+ * @throws `InvalidParametersError` If neither proxyEndpointDescriptor nor proxyRequestFunction
29
+ * is provided, or if membershipId is invalid.
45
30
  * @throws `EmbedApiError` If the API request fails or returns an error.
46
31
  */
47
- export declare function getCards(getCardsParams?: CardParams<{
32
+ export declare function getCards(getCardsParams?: CardClientParams<{
48
33
  membershipId?: string;
49
34
  }>): Promise<Card[]>;
50
35
  /**
51
- * Fetches a card by its id.
36
+ * Fetches a card by its id (client-side version).
37
+ *
38
+ * This function uses proxy-based authentication and is designed for browser environments.
39
+ * It requires either `proxyRequestFunction` or `proxyEndpointDescriptor` in operationSettings.
40
+ *
52
41
  * @param getCardParams - An object containing:
53
42
  * - `cardSettings`: An object with the `cardId` property (string).
54
- * - `operationSettings`: An object with operation-level settings such as
55
- * `proxyRequestFunction` (preferred over using the access token flow),
56
- * `accessToken`, `stagingToken`, and other optional
57
- * parameters. See {@link CardParams}.
43
+ * - `operationSettings`: An object with `proxyRequestFunction` or `proxyEndpointDescriptor`
44
+ * (required), `stagingToken`, and other optional parameters.
58
45
  * @returns A promise that resolves to a card.
59
46
  * @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`.
47
+ * if neither proxyRequestFunction nor proxyEndpointDescriptor is provided.
63
48
  * @throws `EmbedApiError` If the API request fails or returns an error.
64
49
  */
65
- export declare function getCard({ cardSettings, operationSettings, }: CardParams<{
66
- cardId: string;
67
- }>): Promise<Card>;
50
+ export declare function getCard({ cardSettings, operationSettings, }: {
51
+ cardSettings: {
52
+ cardId: string;
53
+ };
54
+ operationSettings?: ClientOperationSettings;
55
+ }): Promise<Card>;
68
56
  /**
69
- * Requests the creation of a card by showing the user the UI to perform MFA in the calling page.
57
+ * Requests the creation of a card by showing the user the UI to perform MFA in the calling page (client-side only).
58
+ *
59
+ * This function is only available in client-side environments as it requires UI rendering.
70
60
  * It will show an element on the screen where users will be able to go through the MFA
71
61
  * authentication process and upon successful authentication, will perform the ordering operation.
62
+ *
72
63
  * @param cardConfig - An object containing:
73
64
  * - `cardSettings`: An object with the card order parameters (see examples below).
74
65
  * - `operationSettings`: Required settings to configure this operation. Must include
75
66
  * `uiParentElementId` to specify where the UI will be rendered. Also supports
76
67
  * `accessToken`, `stagingToken`, `mfaPreference`, `debugMode`, and other properties.
77
- * See {@link OperationSettings} for details.
78
68
  * @returns A promise that resolves to an object representing the ordered card.
79
- * @throws `InvalidParametersError` If `uiParentElementId` is missing, if the card
80
- * settings are invalid, or if any parameter validation fails.
69
+ * @throws `InvalidParametersError` If `uiParentElementId` is missing or if the card
70
+ * settings are invalid.
81
71
  * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
82
72
  * @throws `EmbedApiError` If the API request fails or returns an error.
73
+ *
83
74
  * @example Ordering a physical card to be shipped to the org's business address
84
75
  * ```ts
85
76
  * const cardConfig = {
86
77
  * cardSettings: {
87
- * categories: [
88
- * 'transport',
89
- * 'restaurant_and_bar',
90
- * 'food_and_grocery',
91
- * 'it_and_electronics',
92
- * 'utility',
93
- * 'tax',
94
- * 'legal_and_accounting',
95
- * 'atm', 'office_supply',
96
- * 'hardware_and_equipment',
97
- * 'finance'
98
- * ],
78
+ * categories: ['transport', 'restaurant_and_bar', 'food_and_grocery'],
99
79
  * membershipId: 'membership-id',
100
80
  * cardLevel: 'standard', // Other options are 'plus' or 'metal'
101
81
  * cardDesign: 'standard.recycled.plastic.2023',
@@ -126,18 +106,7 @@ export declare function getCard({ cardSettings, operationSettings, }: CardParams
126
106
  * ```ts
127
107
  * const cardConfig = {
128
108
  * cardSettings: {
129
- * categories: [
130
- * 'transport',
131
- * 'restaurant_and_bar',
132
- * 'food_and_grocery',
133
- * 'it_and_electronics',
134
- * 'utility',
135
- * 'tax',
136
- * 'legal_and_accounting',
137
- * 'atm', 'office_supply',
138
- * 'hardware_and_equipment',
139
- * 'finance'
140
- * ],
109
+ * categories: ['transport', 'restaurant_and_bar', 'food_and_grocery'],
141
110
  * membershipId: 'membership-id',
142
111
  * cardLevel: 'virtual',
143
112
  * monthlyLimit: 1300,
@@ -153,22 +122,25 @@ export declare function getCard({ cardSettings, operationSettings, }: CardParams
153
122
  * orderCard(cardConfig);
154
123
  * ```
155
124
  */
156
- export declare function orderCard(cardConfig: CardParams<CardOrderSettings>): Promise<Card>;
125
+ export declare function orderCard(cardConfig: CardClientParamsWithUI<CardOrderSettings>): Promise<Card>;
157
126
  /**
158
- * Unlocks a locked card by showing the user the UI to perform MFA in the calling page.
127
+ * Unlocks a locked card by showing the user the UI to perform MFA in the calling page (client-side only).
128
+ *
129
+ * This function is only available in client-side environments as it requires UI rendering.
159
130
  * It will show an element on the screen where users will be able to go through the MFA
160
131
  * authentication process and upon successful authentication, will perform the unlock operation.
132
+ *
161
133
  * @param cardConfig - An object containing:
162
134
  * - `cardSettings`: An object with the `cardId` property (string).
163
135
  * - `operationSettings`: Required settings to configure this operation. Must include
164
136
  * `uiParentElementId` to specify where the UI will be rendered. Also supports
165
137
  * `accessToken`, `stagingToken`, `mfaPreference`, `debugMode`, and other properties.
166
- * See {@link OperationSettings} for details.
167
138
  * @returns A promise that resolves to an object representing the unlocked card.
168
- * @throws `InvalidParametersError` If `uiParentElementId` is missing, if the cardId
169
- * is not provided or not a string, or if any parameter validation fails.
139
+ * @throws `InvalidParametersError` If `uiParentElementId` is missing or if the cardId
140
+ * is not provided or not a string.
170
141
  * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
171
142
  * @throws `EmbedApiError` If the API request fails or returns an error.
143
+ *
172
144
  * @example
173
145
  * ```ts
174
146
  * const cardConfig = {
@@ -182,24 +154,27 @@ export declare function orderCard(cardConfig: CardParams<CardOrderSettings>): Pr
182
154
  * const unlockedCard = await unlockCard(cardConfig);
183
155
  * ```
184
156
  */
185
- export declare function unlockCard(cardConfig: CardParams<UnlockCardSettings>): Promise<Card>;
157
+ export declare function unlockCard(cardConfig: CardClientParamsWithUI<UnlockCardSettings>): Promise<Card>;
186
158
  /**
187
159
  * Displays a Cards UI in the calling page which allows the user to see card details and perform
188
- * some operations.
160
+ * some operations (client-side only).
161
+ *
162
+ * This function is only available in client-side environments as it requires UI rendering.
163
+ * It supports both proxy-based and access token-based authentication.
164
+ *
189
165
  * @param cardConfig - An object containing:
190
166
  * - `cardSettings`: An object with the `cardId` property (string).
191
167
  * - `operationSettings`: Required settings to configure this operation. Must include
192
168
  * `uiParentElementId` to specify where the UI will be rendered. Also supports
193
169
  * `proxyRequestFunction` (recommended for production to avoid exposing tokens),
194
- * `accessToken`, `stagingToken`, and other properties. See {@link OperationSettings}
195
- * for details.
170
+ * `accessToken`, `stagingToken`, and other properties.
196
171
  * @returns A promise that resolves to an object with a `destroyEmbedUI` function. When calling
197
172
  * this function, the UI will be removed from the DOM.
198
- * @throws `InvalidParametersError` If `uiParentElementId` is missing, if the cardId
199
- * is not provided or not a string, or if any parameter validation fails.
173
+ * @throws `InvalidParametersError` If `uiParentElementId` is missing or if the cardId
174
+ * is not provided or not a string.
200
175
  * @throws `AuthenticationError` If both `proxyRequestFunction` and `accessToken`
201
176
  * are invalid or missing.
202
177
  * @throws `EmbedApiError` If the API request fails or returns an error.
203
178
  */
204
- export declare function displayCard(cardConfig: CardParams<DisplayCardSettings>): Promise<DisplayCardReturnObject>;
205
- //# sourceMappingURL=cards.d.ts.map
179
+ export declare function displayCard(cardConfig: CardClientParamsWithUI<DisplayCardSettings>): Promise<DisplayCardReturnObject>;
180
+ //# sourceMappingURL=cards.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.client.d.ts","sourceRoot":"","sources":["../../../../src/cards/client/cards.client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAE9B,MAAM,2CAA2C,CAAC;AAgBnD,OAAO,KAAK,EACV,IAAI,EAEJ,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAW/B;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,YAAY,EAAE,CAAC,CAAC;IAChB,iBAAiB,EAAE,6BAA6B,CAAC;CAClD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAC5B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAC3D,OAAO,CAAC,IAAI,EAAE,CAAC,CA8BjB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,YAAY,EACZ,iBAAiB,GAClB,EAAE;IACD,YAAY,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BhB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAAsB,SAAS,CAC7B,UAAU,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,GACpD,OAAO,CAAC,IAAI,CAAC,CAoCf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,GACrD,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,sBAAsB,CAAC,mBAAmB,CAAC,GACtD,OAAO,CAAC,uBAAuB,CAAC,CAwDlC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cards.client.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.client.test.d.ts","sourceRoot":"","sources":["../../../../src/cards/client/cards.client.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,11 @@
1
+ import { displayCard, getCard, getCards, orderCard, unlockCard } from './client/cards.client';
1
2
  /**
2
- * The cards namespace contains all the functions related to card operations.
3
+ * The cards namespace contains all the client-side functions related to card operations.
4
+ * This version uses proxy-based authentication (proxyEndpointDescriptor or proxyRequestFunction)
5
+ * and is designed for browser environments.
6
+ *
7
+ * For server-side operations using access tokens, import from `'@qonto/embed-sdk/cards/server'`.
8
+ *
3
9
  * It can be accessed like this:
4
10
  * ```ts
5
11
  * import { cards } from '@qonto/embed-sdk/cards';
@@ -7,17 +13,41 @@
7
13
  *
8
14
  * Then, the cards object contains the functions to perform card operations:
9
15
  * ```ts
10
- * await cards.displayCard(/* params here *\/);
11
- * await cards.getCards();
12
- * await cards.orderCard(/* params here *\/);
13
- * await cards.unlockCard(/* params here *\/);
16
+ * // Fetch cards (requires proxyEndpointDescriptor or proxyRequestFunction)
17
+ * await cards.getCards({
18
+ * operationSettings: { proxyEndpointDescriptor }
19
+ * });
20
+ *
21
+ * // Get a specific card
22
+ * await cards.getCard({
23
+ * cardSettings: { cardId: '...' },
24
+ * operationSettings: { proxyEndpointDescriptor }
25
+ * });
26
+ *
27
+ * // UI operations (client-only)
28
+ * await cards.displayCard({
29
+ * cardSettings: { cardId: '...' },
30
+ * operationSettings: { proxyEndpointDescriptor, uiParentElementId: 'element-id' }
31
+ * });
32
+ *
33
+ * await cards.orderCard({
34
+ * cardSettings: { ... },
35
+ * operationSettings: { proxyEndpointDescriptor, uiParentElementId: 'element-id' }
36
+ * });
37
+ *
38
+ * await cards.unlockCard({
39
+ * cardSettings: { cardId: '...' },
40
+ * operationSettings: { proxyEndpointDescriptor, uiParentElementId: 'element-id' }
41
+ * });
14
42
  * ```
15
43
  */
16
44
  export declare const cards: {
17
- getCards: typeof import("./cards").getCards;
18
- getCard: typeof import("./cards").getCard;
19
- orderCard: typeof import("./cards").orderCard;
20
- unlockCard: typeof import("./cards").unlockCard;
21
- displayCard: typeof import("./cards").displayCard;
45
+ getCards: typeof getCards;
46
+ getCard: typeof getCard;
47
+ orderCard: typeof orderCard;
48
+ unlockCard: typeof unlockCard;
49
+ displayCard: typeof displayCard;
22
50
  };
51
+ export type * from './shared/cards.types';
52
+ export type { ClientOperationSettings, ClientOperationSettingsWithUI, } from '@validation/operation-settings-validation';
23
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cards/index.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,KAAK;;;;;;CAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cards/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACX,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC;AAGF,mBAAmB,sBAAsB,CAAC;AAC1C,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { getCard, getCards } from './server/cards.server';
2
+ /**
3
+ * The cards namespace contains all the server-side functions related to card operations.
4
+ * This version uses access token-based authentication and is designed for server environments.
5
+ *
6
+ * For client-side operations using proxy functions, import from `'@qonto/embed-sdk/cards'`.
7
+ *
8
+ * It can be accessed like this:
9
+ * ```ts
10
+ * import { cards } from '@qonto/embed-sdk/cards/server';
11
+ * ```
12
+ *
13
+ * Then, the cards object contains the functions to perform card operations:
14
+ * ```ts
15
+ * // Fetch cards (uses accessToken or global auth)
16
+ * await cards.getCards({
17
+ * operationSettings: { accessToken: 'your-token' }
18
+ * });
19
+ *
20
+ * // Get a specific card
21
+ * await cards.getCard({
22
+ * cardSettings: { cardId: '...' },
23
+ * operationSettings: { accessToken: 'your-token' }
24
+ * });
25
+ * ```
26
+ *
27
+ * **Note:** The following functions are NOT available in the server-side API as they require
28
+ * browser-specific UI rendering:
29
+ * - orderCard
30
+ * - unlockCard
31
+ * - displayCard
32
+ *
33
+ * These functions are only available in the client-side import.
34
+ */
35
+ export declare const cards: {
36
+ getCards: typeof getCards;
37
+ getCard: typeof getCard;
38
+ };
39
+ export type * from './shared/cards.types';
40
+ export type { ServerOperationSettings } from '@validation/operation-settings-validation';
41
+ //# sourceMappingURL=index.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/cards/index.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,KAAK;;;CAGjB,CAAC;AAGF,mBAAmB,sBAAsB,CAAC;AAC1C,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,60 @@
1
+ import type { ServerOperationSettings } from '@validation/operation-settings-validation';
2
+ import type { Card } from '../shared/cards.types';
3
+ /**
4
+ * Generic parameter type for server-side card operations
5
+ */
6
+ export interface CardServerParams<T> {
7
+ cardSettings?: T;
8
+ operationSettings?: ServerOperationSettings;
9
+ }
10
+ /**
11
+ * Fetches the list of cards for the current user (server-side version).
12
+ *
13
+ * This function uses access token-based authentication and is designed for server environments.
14
+ * It requires `accessToken` in operationSettings.
15
+ *
16
+ * @param getCardsParams - An object with optional parameters:
17
+ * - `cardSettings`: An object that can contain the optional `membershipId` property.
18
+ * - `operationSettings`: An object with `accessToken`,
19
+ * `stagingToken`, and other optional parameters.
20
+ * @returns A promise that resolves to an array of cards.
21
+ * @throws `InvalidParametersError` If membershipId is invalid.
22
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
23
+ * @throws `EmbedApiError` If the API request fails or returns an error.
24
+ */
25
+ export declare function getCards(getCardsParams?: CardServerParams<{
26
+ membershipId?: string;
27
+ }>): Promise<Card[]>;
28
+ /**
29
+ * Fetches a card by its id (server-side version).
30
+ *
31
+ * This function uses access token-based authentication and is designed for server environments.
32
+ * It requires `accessToken` in operationSettings or relies on the globally configured token.
33
+ *
34
+ * @param getCardParams - An object containing:
35
+ * - `cardSettings`: An object with the `cardId` property (string).
36
+ * - `operationSettings`: An object with `accessToken` (optional, falls back to global auth),
37
+ * `stagingToken`, and other optional parameters.
38
+ * @returns A promise that resolves to a card.
39
+ * @throws `InvalidParametersError` If the cardId is not provided or not a string.
40
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
41
+ * @throws `EmbedApiError` If the API request fails or returns an error.
42
+ */
43
+ export declare function getCard({ cardSettings, operationSettings, }: {
44
+ cardSettings: {
45
+ cardId: string;
46
+ };
47
+ operationSettings?: ServerOperationSettings;
48
+ }): Promise<Card>;
49
+ /**
50
+ * Note: The following functions are NOT available in the server-side API as they require
51
+ * browser-specific UI rendering capabilities:
52
+ *
53
+ * - orderCard: Requires UI rendering for MFA (iframe)
54
+ * - unlockCard: Requires UI rendering for MFA (iframe)
55
+ * - displayCard: Requires UI rendering for card display
56
+ *
57
+ * These functions are only available in the client-side import:
58
+ * `import { cards } from '@qonto/embed-sdk/cards'`
59
+ */
60
+ //# sourceMappingURL=cards.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.server.d.ts","sourceRoot":"","sources":["../../../../src/cards/server/cards.server.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAQzF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAGlD;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAC5B,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAC3D,OAAO,CAAC,IAAI,EAAE,CAAC,CAoBjB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,YAAY,EACZ,iBAAiB,GAClB,EAAE;IACD,YAAY,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C,GAAG,OAAO,CAAC,IAAI,CAAC,CAchB;AAED;;;;;;;;;;GAUG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cards.server.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.server.test.d.ts","sourceRoot":"","sources":["../../../../src/cards/server/cards.server.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.api.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAInF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzE,UAAU,cAAc;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,6BAA6B;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GACtD,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC;AAE5E,wBAAgB,mBAAmB,CAAC,EAClC,YAAY,EACZ,WAAW,EACX,YAAY,GACb,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,qBAAqB,CAiBxB;AAED,wBAAsB,QAAQ,CAAC,EAC7B,YAAY,EACZ,WAAW,EACX,YAAY,GACb,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAY5C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,WAAW,EACX,YAAY,GACb,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,qBAAqB,CAWxB;AAED,wBAAsB,OAAO,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,YAAY,GACb,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAYzC;AAED,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,YAAY,GACb,EAAE,6BAA6B,GAAG,qBAAqB,CAMvD;AAED,wBAAsB,gBAAgB,CACpC,sBAAsB,EAAE,sBAAsB,GAC7C,OAAO,CAAC,uBAAuB,CAAC,CAQlC"}
@@ -0,0 +1,11 @@
1
+ export declare const VIRTUAL_CARD_LEVEL: {
2
+ ADVERTISING: string;
3
+ FLASH: string;
4
+ VIRTUAL: string;
5
+ };
6
+ export declare const PHYSICAL_CARD_LEVEL: {
7
+ METAL: string;
8
+ PLUS: string;
9
+ STANDARD: string;
10
+ };
11
+ //# sourceMappingURL=cards.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.constants.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { CardOrderSettings, VirtualCardOrderSettings } from '@cards';
1
2
  import type { OperationSettings } from '@validation/operation-settings-validation';
2
3
  interface IframeUrlDecorationParams {
3
4
  cardId: string;
@@ -13,5 +14,6 @@ export declare function createEmbedUI({ decorationParams, operationSettings, car
13
14
  }): Promise<{
14
15
  destroyEmbedUI: () => void;
15
16
  }>;
17
+ export declare function isVirtualCardOrderSettings(params: CardOrderSettings): params is VirtualCardOrderSettings;
16
18
  export {};
17
19
  //# sourceMappingURL=cards.helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.helper.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,2CAA2C,CAAC;AAMnD,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,yBAAyB,GAChC,MAAM,CAkBR;AAED,wBAAsB,aAAa,CAAC,EAClC,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GACd,EAAE;IACD,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,MAAM,CAAC;CACvB;;GAmBA;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,iBAAiB,GACxB,MAAM,IAAI,wBAAwB,CAEpC"}
@@ -0,0 +1,35 @@
1
+ import { type Card, type CardDataObject, type CardOrderSettings, type UnlockCardSettings } from './cards.types';
2
+ export declare function serializeOrderCardPayload(payload: CardOrderSettings): {
3
+ actionId: string;
4
+ actionData: {
5
+ idempotencyKey: string;
6
+ body: {
7
+ card: {
8
+ payment_monthly_limit: number;
9
+ payment_daily_limit: number | undefined;
10
+ payment_daily_limit_option: boolean | undefined;
11
+ payment_transaction_limit: number | undefined;
12
+ payment_transaction_limit_option: boolean | undefined;
13
+ active_days: number[];
14
+ holder_id: string;
15
+ organization_id: string;
16
+ bank_account_id: string;
17
+ categories: string[];
18
+ card_level: string;
19
+ };
20
+ };
21
+ };
22
+ };
23
+ export declare function serializeCard(cardDataObject: CardDataObject): Card;
24
+ export declare function filterValidCategories(categories: string[] | undefined): string[];
25
+ export declare function serializeUnlockCardPayload(payload: {
26
+ cardSettings: UnlockCardSettings;
27
+ }): {
28
+ actionId: string;
29
+ actionData: {
30
+ body: {
31
+ cardId: string;
32
+ };
33
+ };
34
+ };
35
+ //# sourceMappingURL=cards.serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.serializer.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.serializer.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAExB,MAAM,eAAe,CAAC;AAEvB,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;EAMnE;AA8ED,wBAAgB,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CA2DlE;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,SAAS,YAKrE;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,YAAY,EAAE,kBAAkB,CAAC;CAClC;;;;;;;EASA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cards.shared.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.shared.test.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.shared.test.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import { PHYSICAL_CARD_LEVEL, VIRTUAL_CARD_LEVEL } from '@cards/shared/cards.constants.ts';
1
2
  /**
2
3
  * The possible statuses a card can be in.
3
4
  */
@@ -40,18 +41,12 @@ type CardCategory = (typeof CardCategories)[keyof typeof CardCategories];
40
41
  * to customize the appearance of the card.
41
42
  */
42
43
  type CardDesign = 'standard.recycled.plastic.2023' | 'plus.black.2023' | 'plus.recycled.plastic.silver.2023' | 'plus.recycled.plastic.black.2023' | 'plus.recycled.plastic.lilac.2023' | 'metal.graphite.black.2019' | 'metal.mineral.gray.2024' | 'metal.sand.gold.2024' | 'virtual.default.2017' | 'virtual.blueberry.2025' | 'virtual.sakura.2025' | 'virtual.plum.2025' | 'virtual.dawn.2025' | 'virtual.together.or.nothing.2025' | 'virtual.gus.gus.2025' | 'virtual.forever.bound.2025' | 'virtual.puzzle.2025' | 'flash.default.2021' | 'advertising.default.2023';
43
- export declare enum VirtualCardLevel {
44
- VIRTUAL = "virtual"
45
- }
44
+ export type VirtualCardLevel = (typeof VIRTUAL_CARD_LEVEL)[keyof typeof VIRTUAL_CARD_LEVEL];
46
45
  /**
47
46
  * The possible levels of a physical card. These levels are used to determine
48
47
  * the features and benefits associated with the card.
49
48
  */
50
- export declare enum PhysicalCardLevel {
51
- METAL = "metal",
52
- PLUS = "plus",
53
- STANDARD = "standard"
54
- }
49
+ export type PhysicalCardLevel = (typeof PHYSICAL_CARD_LEVEL)[keyof typeof PHYSICAL_CARD_LEVEL];
55
50
  type CardType = 'debit' | 'prepaid';
56
51
  type TypeOfPrint = 'embossed' | 'print' | null;
57
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cards.types.d.ts","sourceRoot":"","sources":["../../src/cards/cards.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;IA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AS,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,EAAE;QACnB,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,UAAU,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;IAYI;AACJ,MAAM,WAAW,mBAAmB;IAClC;;QAEI;IACJ,MAAM,EAAE,MAAM,CAAC;IACf;;;QAGI;IACJ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;QAII;IACJ,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;IAGI;AACJ,MAAM,WAAW,uBAAuB;IACtC;;;QAGI;IACJ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B"}
1
+ {"version":3,"file":"cards.types.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,IAAI,SA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ings, type VirtualCardOrderSettings } from '@cards/cards.types';
1
+ import type { CardOrderSettings, DisplayCardSettings, UnlockCardSettings, VirtualCardOrderSettings } from './cards.types';
2
2
  export declare function validateOrderCardParams(params: CardOrderSettings): void | VirtualCardOrderSettings;
3
3
  export declare function validateUnlockCardParams(params: UnlockCardSettings): void;
4
4
  export declare function validateDisplayCardParams(params: DisplayCardSettings): DisplayCardSettings;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cards.validate.d.ts","sourceRoot":"","sources":["../../../../src/cards/shared/cards.validate.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,iBAAiB,EACjB,mBAAmB,EAEnB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,eAAe,CAAC;AAmBvB,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,mCAWhE;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,QAelE;AA6ND,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,uBAkCpE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;YAAR,MAAM;EAiB7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"operation-settings.d.ts","sourceRoot":"","sources":["../../../../src/common/operation-settings/operation-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,2CAA2C,CAAC;AAEnD;;GAEG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAClD,OAAO,CAAC,iBAAiB,CAAgC;IACzD,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,oBAAoB,CAEd;IACd,OAAO,CAAC,uBAAuB,CAAsC;IAErE,OAAO;IAIP;;OAEG;WACW,WAAW,IAAI,wBAAwB;IAOrD;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAkB9D;;;OAGG;IACI,oBAAoB,IAAI,iBAAiB,GAAG,SAAS;IAI5D;;;OAGG;IACI,gBAAgB,IAAI,SAAS;IAIpC;;;OAGG;IACI,YAAY,IAAI,OAAO;IAIvB,uBAAuB,wBAhEN,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC;IAoE3C,0BAA0B,IAAI,uBAAuB,GAAG,SAAS;IAIxE;;OAEG;IACI,aAAa,IAAI,IAAI;IAOrB,WAAW,IAAI,iBAAiB;CAQxC;AAGD,eAAO,MAAM,wBAAwB,0BAAyC,CAAC"}
1
+ {"version":3,"file":"operation-settings.d.ts","sourceRoot":"","sources":["../../../../src/common/operation-settings/operation-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,2CAA2C,CAAC;AAEnD;;GAEG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAA2B;IAClD,OAAO,CAAC,iBAAiB,CAAgC;IACzD,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,oBAAoB,CAEd;IACd,OAAO,CAAC,uBAAuB,CAAsC;IAErE,OAAO;IAIP;;OAEG;WACW,WAAW,IAAI,wBAAwB;IAOrD;;;OAGG;IACI,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAkB9D;;;OAGG;IACI,oBAAoB,IAAI,iBAAiB,GAAG,SAAS;IAI5D;;;OAGG;IACI,gBAAgB,IAAI,SAAS;IAIpC;;;OAGG;IACI,YAAY,IAAI,OAAO;IAIvB,uBAAuB,wBAhEN,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC;IAoE3C,0BAA0B,IAAI,uBAAuB,GAAG,SAAS;IAIxE;;OAEG;IACI,aAAa,IAAI,IAAI;IAQrB,WAAW,IAAI,iBAAiB;CAQxC;AAGD,eAAO,MAAM,wBAAwB,0BAAyC,CAAC"}