@qonto/embed-sdk 0.60.0 → 0.61.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 (92) hide show
  1. package/dist/index.umd.js +2 -2
  2. package/dist/mocks/handlers.d.ts +1 -1
  3. package/dist/mocks/handlers.d.ts.map +1 -1
  4. package/dist/organizations/client/organizations.client.d.ts +67 -0
  5. package/dist/organizations/client/organizations.client.d.ts.map +1 -0
  6. package/dist/organizations/client/organizations.client.test.d.ts +2 -0
  7. package/dist/organizations/client/organizations.client.test.d.ts.map +1 -0
  8. package/dist/organizations/index.d.ts +24 -4
  9. package/dist/organizations/index.d.ts.map +1 -1
  10. package/dist/organizations/index.server.d.ts +32 -0
  11. package/dist/organizations/index.server.d.ts.map +1 -0
  12. package/dist/organizations/server/organizations.server.d.ts +49 -0
  13. package/dist/organizations/server/organizations.server.d.ts.map +1 -0
  14. package/dist/organizations/server/organizations.server.test.d.ts +2 -0
  15. package/dist/organizations/server/organizations.server.test.d.ts.map +1 -0
  16. package/dist/organizations/shared/organizations.api.d.ts.map +1 -0
  17. package/dist/organizations/shared/organizations.serializer.d.ts.map +1 -0
  18. package/dist/organizations/shared/organizations.shared.test.d.ts +2 -0
  19. package/dist/organizations/shared/organizations.shared.test.d.ts.map +1 -0
  20. package/dist/organizations/shared/organizations.types.d.ts.map +1 -0
  21. package/dist/server/mocks/handlers.d.ts +1 -1
  22. package/dist/server/mocks/handlers.d.ts.map +1 -1
  23. package/dist/server/organizations/client/organizations.client.d.ts +67 -0
  24. package/dist/server/organizations/client/organizations.client.d.ts.map +1 -0
  25. package/dist/server/organizations/client/organizations.client.test.d.ts +2 -0
  26. package/dist/server/organizations/client/organizations.client.test.d.ts.map +1 -0
  27. package/dist/server/organizations/index.d.ts +24 -4
  28. package/dist/server/organizations/index.d.ts.map +1 -1
  29. package/dist/server/organizations/index.server.d.ts +32 -0
  30. package/dist/server/organizations/index.server.d.ts.map +1 -0
  31. package/dist/server/organizations/server/organizations.server.d.ts +49 -0
  32. package/dist/server/organizations/server/organizations.server.d.ts.map +1 -0
  33. package/dist/server/organizations/server/organizations.server.test.d.ts +2 -0
  34. package/dist/server/organizations/server/organizations.server.test.d.ts.map +1 -0
  35. package/dist/server/organizations/shared/organizations.api.d.ts.map +1 -0
  36. package/dist/server/organizations/shared/organizations.serializer.d.ts.map +1 -0
  37. package/dist/server/organizations/shared/organizations.shared.test.d.ts +2 -0
  38. package/dist/server/organizations/shared/organizations.shared.test.d.ts.map +1 -0
  39. package/dist/server/organizations/shared/organizations.types.d.ts.map +1 -0
  40. package/dist/server/types/types.public-api.d.ts +1 -1
  41. package/dist/server/types/types.public-api.d.ts.map +1 -1
  42. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts +1 -1
  43. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts.map +1 -1
  44. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +1 -1
  45. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -1
  46. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +1 -1
  47. package/dist/server/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -1
  48. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +1 -1
  49. package/dist/server/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -1
  50. package/dist/src/organizations/client/organizations.client.js +1 -0
  51. package/dist/src/organizations/index.js +1 -1
  52. package/dist/src/organizations/shared/organizations.api.js +1 -0
  53. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.js +9 -9
  54. package/dist/types/types.public-api.d.ts +1 -1
  55. package/dist/types/types.public-api.d.ts.map +1 -1
  56. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts +1 -1
  57. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.d.ts.map +1 -1
  58. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts +1 -1
  59. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.d.ts.map +1 -1
  60. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts +1 -1
  61. package/dist/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.d.ts.map +1 -1
  62. package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts +1 -1
  63. package/dist/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.events.d.ts.map +1 -1
  64. package/package.json +5 -1
  65. package/dist/organizations/organizations.api.d.ts.map +0 -1
  66. package/dist/organizations/organizations.d.ts +0 -29
  67. package/dist/organizations/organizations.d.ts.map +0 -1
  68. package/dist/organizations/organizations.public-api.d.ts +0 -5
  69. package/dist/organizations/organizations.public-api.d.ts.map +0 -1
  70. package/dist/organizations/organizations.serializer.d.ts.map +0 -1
  71. package/dist/organizations/organizations.test.d.ts +0 -2
  72. package/dist/organizations/organizations.test.d.ts.map +0 -1
  73. package/dist/organizations/organizations.types.d.ts.map +0 -1
  74. package/dist/server/organizations/organizations.api.d.ts.map +0 -1
  75. package/dist/server/organizations/organizations.d.ts +0 -29
  76. package/dist/server/organizations/organizations.d.ts.map +0 -1
  77. package/dist/server/organizations/organizations.public-api.d.ts +0 -5
  78. package/dist/server/organizations/organizations.public-api.d.ts.map +0 -1
  79. package/dist/server/organizations/organizations.serializer.d.ts.map +0 -1
  80. package/dist/server/organizations/organizations.test.d.ts +0 -2
  81. package/dist/server/organizations/organizations.test.d.ts.map +0 -1
  82. package/dist/server/organizations/organizations.types.d.ts.map +0 -1
  83. package/dist/src/organizations/organizations.api.js +0 -1
  84. package/dist/src/organizations/organizations.js +0 -1
  85. package/dist/src/organizations/organizations.public-api.js +0 -1
  86. /package/dist/organizations/{organizations.api.d.ts → shared/organizations.api.d.ts} +0 -0
  87. /package/dist/organizations/{organizations.serializer.d.ts → shared/organizations.serializer.d.ts} +0 -0
  88. /package/dist/organizations/{organizations.types.d.ts → shared/organizations.types.d.ts} +0 -0
  89. /package/dist/server/organizations/{organizations.api.d.ts → shared/organizations.api.d.ts} +0 -0
  90. /package/dist/server/organizations/{organizations.serializer.d.ts → shared/organizations.serializer.d.ts} +0 -0
  91. /package/dist/server/organizations/{organizations.types.d.ts → shared/organizations.types.d.ts} +0 -0
  92. /package/dist/src/organizations/{organizations.serializer.js → shared/organizations.serializer.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import type { Beneficiary, BeneficiaryDataObject } from '@beneficiaries/shared/beneficiaries.types';
2
2
  import type { CardDataObject } from '@cards/cards.types';
3
- import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/organizations.types';
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
6
  import type { TransactionDataObject } from '@transactions/transactions.types';
@@ -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,oCAAoC,CAAC;AAI5C,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6C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CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,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,6BAk4BvB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { type ClientOperationSettings } from '@validation/operation-settings-validation';
2
+ import type { BankAccount, Organization } from '../shared/organizations.types';
3
+ /**
4
+ * Retrieves the organization information.
5
+ *
6
+ * **Client-side only** - Uses proxy-based authentication.
7
+ * For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
8
+ *
9
+ * @param operationSettings - An object with operation-level settings such as
10
+ * `proxyEndpointDescriptor` (preferred) or `proxyRequestFunction` (at least one required).
11
+ * @returns A promise that resolves to the organization the current user belongs to.
12
+ * @throws `InvalidParametersError` If neither `proxyEndpointDescriptor` nor
13
+ * `proxyRequestFunction` is provided.
14
+ * @throws `EmbedApiError` If the API request fails or returns an error.
15
+ *
16
+ * @example
17
+ * ```
18
+ * // Preferred: Using proxyEndpointDescriptor
19
+ * const organization = await getOrganization({
20
+ * operationSettings: { proxyEndpointDescriptor }
21
+ * });
22
+ *```
23
+ *
24
+ * @example
25
+ * ```
26
+ * // Alternative: Using proxyRequestFunction
27
+ * const organization = await getOrganization({
28
+ * operationSettings: { proxyRequestFunction }
29
+ * });
30
+ * ```
31
+ */
32
+ export declare const getOrganization: ({ operationSettings, }: {
33
+ operationSettings: ClientOperationSettings;
34
+ }) => Promise<Organization>;
35
+ /**
36
+ * Retrieves the bank accounts for the organization.
37
+ *
38
+ * **Client-side only** - Uses proxy-based authentication.
39
+ * For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
40
+ *
41
+ * @param operationSettings - An object with operation-level settings such as
42
+ * `proxyEndpointDescriptor` (preferred) or `proxyRequestFunction` (at least one required).
43
+ * @returns A promise that resolves to the bank accounts for the organization.
44
+ * @throws `InvalidParametersError` If neither `proxyEndpointDescriptor` nor
45
+ * `proxyRequestFunction` is provided.
46
+ * @throws `EmbedApiError` If the API request fails or returns an error.
47
+ *
48
+ * @example
49
+ * ```
50
+ * // Preferred: Using proxyEndpointDescriptor
51
+ * const bankAccounts = await getBankAccounts({
52
+ * operationSettings: { proxyEndpointDescriptor }
53
+ * });
54
+ * ```
55
+ *
56
+ * @example
57
+ * ```
58
+ * // Alternative: Using proxyRequestFunction
59
+ * const bankAccounts = await getBankAccounts({
60
+ * operationSettings: { proxyRequestFunction }
61
+ * });
62
+ * ```
63
+ */
64
+ export declare const getBankAccounts: ({ operationSettings, }: {
65
+ operationSettings: ClientOperationSettings;
66
+ }) => Promise<BankAccount[]>;
67
+ //# sourceMappingURL=organizations.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,YAAY,CAkBvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,WAAW,EAAE,CAgBxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.client.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.client.test.d.ts","sourceRoot":"","sources":["../../../src/organizations/client/organizations.client.test.ts"],"names":[],"mappings":""}
@@ -1,13 +1,33 @@
1
1
  /**
2
2
  * The organizations namespace contains all the functions related to organizations'
3
- * operations such as retrieving bank accounts. It can be accessed like this:
3
+ * operations such as retrieving bank accounts.
4
+ *
5
+ * **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor or proxyRequestFunction).
6
+ * For server-side operations with accessToken, import from `'@qonto/embed-sdk/server/organizations'`.
7
+ *
8
+ * @example
4
9
  * ```ts
5
10
  * import { organizations } from '@qonto/embed-sdk/organizations';
6
- * await organizations.getBankAccounts({accessToken, stagingToken});
11
+ *
12
+ * // Preferred: Using proxyEndpointDescriptor
13
+ * const bankAccounts = await organizations.getBankAccounts({
14
+ * operationSettings: { proxyEndpointDescriptor }
15
+ * });
16
+ *
17
+ * // Alternative: Using proxyRequestFunction
18
+ * const bankAccounts = await organizations.getBankAccounts({
19
+ * operationSettings: { proxyRequestFunction }
20
+ * });
7
21
  * ```
8
22
  */
9
23
  export declare const organizations: {
10
- getOrganization: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").Organization>;
11
- getBankAccounts: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").BankAccount[]>;
24
+ getOrganization: ({ operationSettings, }: {
25
+ operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
26
+ }) => Promise<import(".").Organization>;
27
+ getBankAccounts: ({ operationSettings, }: {
28
+ operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
29
+ }) => Promise<import(".").BankAccount[]>;
12
30
  };
31
+ export type * from './shared/organizations.types';
32
+ export type { ClientOperationSettings, ClientOperationSettingsWithUI, } from '@validation/operation-settings-validation';
13
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;CAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organizations/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa;;;;;;;CAGzB,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The organizations namespace contains all the functions related to organizations'
3
+ * operations such as retrieving bank accounts.
4
+ *
5
+ * **Server-side only** - Uses accessToken-based authentication.
6
+ * For client-side operations with proxyEndpointDescriptor/proxyRequestFunction,
7
+ * import from `'@qonto/embed-sdk/organizations'`.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { organizations } from '@qonto/embed-sdk/server/organizations';
12
+ *
13
+ * // Using explicit accessToken
14
+ * const bankAccounts = await organizations.getBankAccounts({
15
+ * operationSettings: { accessToken: 'your-token' }
16
+ * });
17
+ *
18
+ * // Using globally configured token
19
+ * const bankAccounts = await organizations.getBankAccounts();
20
+ * ```
21
+ */
22
+ export declare const organizations: {
23
+ getOrganization: ({ operationSettings, }?: {
24
+ operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
25
+ }) => Promise<import(".").Organization>;
26
+ getBankAccounts: ({ operationSettings, }?: {
27
+ operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
28
+ }) => Promise<import(".").BankAccount[]>;
29
+ };
30
+ export type * from './shared/organizations.types';
31
+ export type { ServerOperationSettings } from '@validation/operation-settings-validation';
32
+ //# sourceMappingURL=index.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBAQ8O,CAAC;;;yBAAoqC,CAAC;;CAL76C,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { ServerOperationSettings } from '@validation/operation-settings-validation';
2
+ import type { BankAccount, Organization } from '../shared/organizations.types';
3
+ /**
4
+ * Retrieves the organization information.
5
+ *
6
+ * **Server-side only** - Uses accessToken-based authentication.
7
+ * For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
8
+ *
9
+ * @param params - An object containing:
10
+ * - `operationSettings`: (Optional) An object with operation-level settings such as
11
+ * `accessToken` and `stagingToken`.
12
+ * @returns A promise that resolves to the organization the current user belongs to.
13
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
14
+ * @throws `EmbedApiError` If the API request fails or returns an error.
15
+ *
16
+ * @example
17
+ * ```
18
+ * const organization = await getOrganization({
19
+ * operationSettings: { accessToken: 'your-token' }
20
+ * });
21
+ * ```
22
+ */
23
+ export declare const getOrganization: ({ operationSettings, }?: {
24
+ operationSettings?: ServerOperationSettings;
25
+ }) => Promise<Organization>;
26
+ /**
27
+ * Retrieves the bank accounts for the organization.
28
+ *
29
+ * **Server-side only** - Uses accessToken-based authentication.
30
+ * For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
31
+ *
32
+ * @param params - An object containing:
33
+ * - `operationSettings`: (Optional) An object with operation-level settings such as
34
+ * `accessToken` and `stagingToken`.
35
+ * @returns A promise that resolves to the bank accounts for the organization.
36
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
37
+ * @throws `EmbedApiError` If the API request fails or returns an error.
38
+ *
39
+ * @example
40
+ * ```
41
+ * const bankAccounts = await getBankAccounts({
42
+ * operationSettings: { accessToken: 'your-token' }
43
+ * });
44
+ * ```
45
+ */
46
+ export declare const getBankAccounts: ({ operationSettings, }?: {
47
+ operationSettings?: ServerOperationSettings;
48
+ }) => Promise<BankAccount[]>;
49
+ //# sourceMappingURL=organizations.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAUzF,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,YAAY,CAS5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,WAAW,EAAE,CAS7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.server.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.server.test.d.ts","sourceRoot":"","sources":["../../../src/organizations/server/organizations.server.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,YAAY,EAAE,sBAAsB,CAAA;CAAE,CASnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,aAAa,EAAE,qBAAqB,EAAE,CAAA;CAAE,CASrD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../src/organizations/shared/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qBAAqB,GAChC,cAAc,sBAAsB,KACnC,YAgBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,qBAAqB,KACjC,WAgBF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.shared.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.shared.test.d.ts","sourceRoot":"","sources":["../../../src/organizations/shared/organizations.shared.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../src/organizations/shared/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;IAC7D;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
@@ -1,6 +1,6 @@
1
1
  import type { Beneficiary, BeneficiaryDataObject } from '@beneficiaries/shared/beneficiaries.types';
2
2
  import type { CardDataObject } from '@cards/cards.types';
3
- import type { BankAccountDataObject, OrganizationDataObject } from '@organizations/organizations.types';
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
6
  import type { TransactionDataObject } from '@transactions/transactions.types';
@@ -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,oCAAoC,CAAC;AAI5C,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,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEj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C/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BAk4BvB,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { type ClientOperationSettings } from '@validation/operation-settings-validation';
2
+ import type { BankAccount, Organization } from '../shared/organizations.types';
3
+ /**
4
+ * Retrieves the organization information.
5
+ *
6
+ * **Client-side only** - Uses proxy-based authentication.
7
+ * For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
8
+ *
9
+ * @param operationSettings - An object with operation-level settings such as
10
+ * `proxyEndpointDescriptor` (preferred) or `proxyRequestFunction` (at least one required).
11
+ * @returns A promise that resolves to the organization the current user belongs to.
12
+ * @throws `InvalidParametersError` If neither `proxyEndpointDescriptor` nor
13
+ * `proxyRequestFunction` is provided.
14
+ * @throws `EmbedApiError` If the API request fails or returns an error.
15
+ *
16
+ * @example
17
+ * ```
18
+ * // Preferred: Using proxyEndpointDescriptor
19
+ * const organization = await getOrganization({
20
+ * operationSettings: { proxyEndpointDescriptor }
21
+ * });
22
+ *```
23
+ *
24
+ * @example
25
+ * ```
26
+ * // Alternative: Using proxyRequestFunction
27
+ * const organization = await getOrganization({
28
+ * operationSettings: { proxyRequestFunction }
29
+ * });
30
+ * ```
31
+ */
32
+ export declare const getOrganization: ({ operationSettings, }: {
33
+ operationSettings: ClientOperationSettings;
34
+ }) => Promise<Organization>;
35
+ /**
36
+ * Retrieves the bank accounts for the organization.
37
+ *
38
+ * **Client-side only** - Uses proxy-based authentication.
39
+ * For server-side operations, import from `'@qonto/embed-sdk/server/organizations'`.
40
+ *
41
+ * @param operationSettings - An object with operation-level settings such as
42
+ * `proxyEndpointDescriptor` (preferred) or `proxyRequestFunction` (at least one required).
43
+ * @returns A promise that resolves to the bank accounts for the organization.
44
+ * @throws `InvalidParametersError` If neither `proxyEndpointDescriptor` nor
45
+ * `proxyRequestFunction` is provided.
46
+ * @throws `EmbedApiError` If the API request fails or returns an error.
47
+ *
48
+ * @example
49
+ * ```
50
+ * // Preferred: Using proxyEndpointDescriptor
51
+ * const bankAccounts = await getBankAccounts({
52
+ * operationSettings: { proxyEndpointDescriptor }
53
+ * });
54
+ * ```
55
+ *
56
+ * @example
57
+ * ```
58
+ * // Alternative: Using proxyRequestFunction
59
+ * const bankAccounts = await getBankAccounts({
60
+ * operationSettings: { proxyRequestFunction }
61
+ * });
62
+ * ```
63
+ */
64
+ export declare const getBankAccounts: ({ operationSettings, }: {
65
+ operationSettings: ClientOperationSettings;
66
+ }) => Promise<BankAccount[]>;
67
+ //# sourceMappingURL=organizations.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.client.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2CAA2C,CAAC;AAUnD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EAEb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,YAAY,CAkBvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,eAAe,GAAU,wBAEnC;IACD,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,KAAG,OAAO,CAAC,WAAW,EAAE,CAgBxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.client.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.client.test.d.ts","sourceRoot":"","sources":["../../../../src/organizations/client/organizations.client.test.ts"],"names":[],"mappings":""}
@@ -1,13 +1,33 @@
1
1
  /**
2
2
  * The organizations namespace contains all the functions related to organizations'
3
- * operations such as retrieving bank accounts. It can be accessed like this:
3
+ * operations such as retrieving bank accounts.
4
+ *
5
+ * **Client-side only** - Uses proxy-based authentication (proxyEndpointDescriptor or proxyRequestFunction).
6
+ * For server-side operations with accessToken, import from `'@qonto/embed-sdk/server/organizations'`.
7
+ *
8
+ * @example
4
9
  * ```ts
5
10
  * import { organizations } from '@qonto/embed-sdk/organizations';
6
- * await organizations.getBankAccounts({accessToken, stagingToken});
11
+ *
12
+ * // Preferred: Using proxyEndpointDescriptor
13
+ * const bankAccounts = await organizations.getBankAccounts({
14
+ * operationSettings: { proxyEndpointDescriptor }
15
+ * });
16
+ *
17
+ * // Alternative: Using proxyRequestFunction
18
+ * const bankAccounts = await organizations.getBankAccounts({
19
+ * operationSettings: { proxyRequestFunction }
20
+ * });
7
21
  * ```
8
22
  */
9
23
  export declare const organizations: {
10
- getOrganization: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").Organization>;
11
- getBankAccounts: (operationSettings: import("../validation/operation-settings-validation").OperationSettings) => Promise<import("./organizations.types").BankAccount[]>;
24
+ getOrganization: ({ operationSettings, }: {
25
+ operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
26
+ }) => Promise<import(".").Organization>;
27
+ getBankAccounts: ({ operationSettings, }: {
28
+ operationSettings: import("@validation/operation-settings-validation").ClientOperationSettings;
29
+ }) => Promise<import(".").BankAccount[]>;
12
30
  };
31
+ export type * from './shared/organizations.types';
32
+ export type { ClientOperationSettings, ClientOperationSettingsWithUI, } from '@validation/operation-settings-validation';
13
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;CAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa;;;;;;;CAGzB,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The organizations namespace contains all the functions related to organizations'
3
+ * operations such as retrieving bank accounts.
4
+ *
5
+ * **Server-side only** - Uses accessToken-based authentication.
6
+ * For client-side operations with proxyEndpointDescriptor/proxyRequestFunction,
7
+ * import from `'@qonto/embed-sdk/organizations'`.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { organizations } from '@qonto/embed-sdk/server/organizations';
12
+ *
13
+ * // Using explicit accessToken
14
+ * const bankAccounts = await organizations.getBankAccounts({
15
+ * operationSettings: { accessToken: 'your-token' }
16
+ * });
17
+ *
18
+ * // Using globally configured token
19
+ * const bankAccounts = await organizations.getBankAccounts();
20
+ * ```
21
+ */
22
+ export declare const organizations: {
23
+ getOrganization: ({ operationSettings, }?: {
24
+ operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
25
+ }) => Promise<import(".").Organization>;
26
+ getBankAccounts: ({ operationSettings, }?: {
27
+ operationSettings?: import("@validation/operation-settings-validation").ServerOperationSettings;
28
+ }) => Promise<import(".").BankAccount[]>;
29
+ };
30
+ export type * from './shared/organizations.types';
31
+ export type { ServerOperationSettings } from '@validation/operation-settings-validation';
32
+ //# sourceMappingURL=index.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../../../src/organizations/index.server.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;yBAQ8O,CAAC;;;yBAAoqC,CAAC;;CAL76C,CAAC;AAGF,mBAAmB,8BAA8B,CAAC;AAClD,YAAY,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { ServerOperationSettings } from '@validation/operation-settings-validation';
2
+ import type { BankAccount, Organization } from '../shared/organizations.types';
3
+ /**
4
+ * Retrieves the organization information.
5
+ *
6
+ * **Server-side only** - Uses accessToken-based authentication.
7
+ * For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
8
+ *
9
+ * @param params - An object containing:
10
+ * - `operationSettings`: (Optional) An object with operation-level settings such as
11
+ * `accessToken` and `stagingToken`.
12
+ * @returns A promise that resolves to the organization the current user belongs to.
13
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
14
+ * @throws `EmbedApiError` If the API request fails or returns an error.
15
+ *
16
+ * @example
17
+ * ```
18
+ * const organization = await getOrganization({
19
+ * operationSettings: { accessToken: 'your-token' }
20
+ * });
21
+ * ```
22
+ */
23
+ export declare const getOrganization: ({ operationSettings, }?: {
24
+ operationSettings?: ServerOperationSettings;
25
+ }) => Promise<Organization>;
26
+ /**
27
+ * Retrieves the bank accounts for the organization.
28
+ *
29
+ * **Server-side only** - Uses accessToken-based authentication.
30
+ * For client-side operations, import from `'@qonto/embed-sdk/organizations'`.
31
+ *
32
+ * @param params - An object containing:
33
+ * - `operationSettings`: (Optional) An object with operation-level settings such as
34
+ * `accessToken` and `stagingToken`.
35
+ * @returns A promise that resolves to the bank accounts for the organization.
36
+ * @throws `AuthenticationError` If the `accessToken` is invalid or missing.
37
+ * @throws `EmbedApiError` If the API request fails or returns an error.
38
+ *
39
+ * @example
40
+ * ```
41
+ * const bankAccounts = await getBankAccounts({
42
+ * operationSettings: { accessToken: 'your-token' }
43
+ * });
44
+ * ```
45
+ */
46
+ export declare const getBankAccounts: ({ operationSettings, }?: {
47
+ operationSettings?: ServerOperationSettings;
48
+ }) => Promise<BankAccount[]>;
49
+ //# sourceMappingURL=organizations.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.server.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAUzF,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,YAAY,CAS5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,GAAU,yBAEnC;IACD,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CACxC,KAAG,OAAO,CAAC,WAAW,EAAE,CAS7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.server.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.server.test.d.ts","sourceRoot":"","sources":["../../../../src/organizations/server/organizations.server.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.api.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,YAAY,EAAE,sBAAsB,CAAA;CAAE,CASnD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,gCAGpC;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,qBAYH,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,gCAGnC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC;IAAE,aAAa,EAAE,qBAAqB,EAAE,CAAA;CAAE,CASrD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.serializer.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.serializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qBAAqB,GAChC,cAAc,sBAAsB,KACnC,YAgBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,qBAAqB,KACjC,WAgBF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=organizations.shared.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.shared.test.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.shared.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.types.d.ts","sourceRoot":"","sources":["../../../../src/organizations/shared/organizations.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,OAAO,cAAc,CA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,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B"}
@@ -3,7 +3,7 @@ import type { Beneficiary, GetBeneficiariesResponse } from '@beneficiaries/share
3
3
  import type { Card, CardOrderSettings, PhysicalCardOrderSettings, VirtualCardOrderSettings } from '@cards/cards.types';
4
4
  import type { PaginationState } from '@common/api-pagination/api-pagination.types';
5
5
  import type { Locale } from '@common/locale/locale.types';
6
- import type { ACCOUNT_STATUS, BankAccount } from '@organizations/organizations.types';
6
+ import type { ACCOUNT_STATUS, BankAccount } from '@organizations/shared/organizations.types';
7
7
  import type { CreatePaymentLinkSettings, Item, PaymentLinkParams } from '@payment-links/payment-links.types';
8
8
  import type { CreateSepaTransferResponse, GetSepaTransfersResponse, NewSepaTransfer, SepaTransfer, SepaTransferStatus, VopCheckResult, VopVerificationResult } from '@sepa-transfers/shared/sepa-transfers.types';
9
9
  import type { GetTransactionSettings, GetTransactionsResponse, GetTransactionsSettings, Transaction, TransactionDataObject } from '@transactions/transactions.types';
@@ -1 +1 @@
1
- {"version":3,"file":"types.public-api.d.ts","sourceRoot":"","sources":["../../../src/types/types.public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACf,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACzB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EACV,yBAAyB,EACzB,IAAI,EACJ,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,IAAI,EACJ,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,WAAW,EACX,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,MAAM,EACN,WAAW,EACX,cAAc,EACd,IAAI,EACJ,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,GACf,CAAC"}
1
+ {"version":3,"file":"types.public-api.d.ts","sourceRoot":"","sources":["../../../src/types/types.public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,EACf,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACzB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,2CAA2C,CAAC;AAEnD,OAAO,KAAK,EACV,yBAAyB,EACzB,IAAI,EACJ,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,qBAAqB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,IAAI,EACJ,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,WAAW,EACX,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,MAAM,EACN,WAAW,EACX,cAAc,EACd,IAAI,EACJ,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,GACf,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BankAccount } from '@organizations/organizations.types.ts';
1
+ import type { BankAccount } from '@organizations/shared/organizations.types';
2
2
  interface AmountErrorMessageParams {
3
3
  amountTouched: boolean;
4
4
  transferAmount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-details-page-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,UAAU,wBAAwB;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,cAAc,EACd,cAAc,GACf,EAAE,wBAAwB,GAAG,MAAM,CAcnC;AAED,UAAU,2BAA2B;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,2BAA2B,GAAG,MAAM,CAUtC"}
1
+ {"version":3,"file":"transfer-details-page-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,UAAU,wBAAwB;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,cAAc,EACd,cAAc,GACf,EAAE,wBAAwB,GAAG,MAAM,CAcnC;AAED,UAAU,2BAA2B;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,2BAA2B,GAAG,MAAM,CAUtC"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  import type { Beneficiary } from '@beneficiaries/shared/beneficiaries.types';
3
- import type { BankAccount } from '@organizations/organizations.types.ts';
3
+ import type { BankAccount } from '@organizations/shared/organizations.types';
4
4
  import type { VopVerificationResult } from '@sepa-transfers/shared/sepa-transfers.types';
5
5
  import type { OperationSettings } from '@validation/operation-settings-validation.ts';
6
6
  import '../../../customizable-components/styles/styles.css';
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-details-page.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAK7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAOzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAQtF,OAAO,oDAAoD,CAAC;AAC5D,OAAO,6DAA6D,CAAC;AACrE,OAAO,yDAAyD,CAAC;AACjE,OAAO,gFAAgF,CAAC;AACxF,OAAO,6EAA6E,CAAC;AACrF,OAAO,iEAAiE,CAAC;AACzE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,+DAA+D,CAAC;AACvE,OAAO,qEAAqE,CAAC;AAE7E,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAGrC,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IAGxC,cAAc,EAAE,MAAM,CAAK;IAG3B,iBAAiB,EAAE,MAAM,CAAM;IAG/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAG7C,YAAY,EAAE,OAAO,CAAS;IAG9B,OAAO,CAAC,YAAY,CAAqB;IAGzC,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAGlC,OAAO,CAAC,aAAa,CAAkB;IAGvC,OAAO,CAAC,gBAAgB,CAAkB;IAE1C,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,iBAAiB;IAyB/B,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,YAAY;IAYpB,MAAM;CA6IP"}
1
+ {"version":3,"file":"transfer-details-page.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAI7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAOzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAQtF,OAAO,oDAAoD,CAAC;AAC5D,OAAO,6DAA6D,CAAC;AACrE,OAAO,yDAAyD,CAAC;AACjE,OAAO,gFAAgF,CAAC;AACxF,OAAO,6EAA6E,CAAC;AACrF,OAAO,iEAAiE,CAAC;AACzE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,+DAA+D,CAAC;AACvE,OAAO,qEAAqE,CAAC;AAE7E,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAGrC,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IAGxC,cAAc,EAAE,MAAM,CAAK;IAG3B,iBAAiB,EAAE,MAAM,CAAM;IAG/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAG7C,YAAY,EAAE,OAAO,CAAS;IAG9B,OAAO,CAAC,YAAY,CAAqB;IAGzC,OAAO,CAAC,SAAS,CAAkB;IAGnC,OAAO,CAAC,KAAK,CAAqB;IAGlC,OAAO,CAAC,aAAa,CAAkB;IAGvC,OAAO,CAAC,gBAAgB,CAAkB;IAE1C,iBAAiB;IAMjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;YAMjC,iBAAiB;IA2B/B,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,YAAY;IAYpB,MAAM;CA6IP"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  import type { Beneficiary } from '@beneficiaries/shared/beneficiaries.types';
3
- import type { BankAccount } from '@organizations/organizations.types.ts';
3
+ import type { BankAccount } from '@organizations/shared/organizations.types';
4
4
  import type { VopVerificationResult } from '@sepa-transfers/shared/sepa-transfers.types';
5
5
  import type { OperationSettings } from '@validation/operation-settings-validation.ts';
6
6
  import '../../../customizable-components/styles/styles.css';
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-summary-page.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OA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EAAE,MAAM,8CAA8C,CAAC;AAItF,OAAO,oDAAoD,CAAC;AAC5D,OAAO,yDAAyD,CAAC;AACjE,qBAEa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAA6B;IAG1C,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAGjD,MAAM,EAAE,MAAM,CAAQ;IAGtB,WAAW,EAAE,WAAW,GAAG,SAAS,CAAa;IAGjD,cAAc,EAAE,WAAW,GAAG,SAAS,CAAa;IAGpD,cAAc,EAAE,MAAM,CAAM;IAG5B,iBAAiB,EAAE,MAAM,CAAM;IAG/B,SAAS,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAG7C,YAAY,EAAE,OAAO,CAAS;IAG9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,iBAAiB;IAKjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAM/C,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;IAcrB,MAAM;CAuGP"}
@@ -1,5 +1,5 @@
1
1
  import type { Beneficiary } from '@beneficiaries/shared/beneficiaries.types';
2
- import type { BankAccount } from '@organizations/organizations.types.ts';
2
+ import type { BankAccount } from '@organizations/shared/organizations.types';
3
3
  /**
4
4
  * Event detail for recipient info submitted (Step 1)
5
5
  */