@qonto/embed-sdk 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/cards/{cards.d.ts → client/cards.client.d.ts} +64 -89
- package/dist/cards/client/cards.client.d.ts.map +1 -0
- package/dist/cards/client/cards.client.test.d.ts +2 -0
- package/dist/cards/client/cards.client.test.d.ts.map +1 -0
- package/dist/cards/index.d.ts +40 -10
- package/dist/cards/index.d.ts.map +1 -1
- package/dist/cards/index.server.d.ts +41 -0
- package/dist/cards/index.server.d.ts.map +1 -0
- package/dist/cards/server/cards.server.d.ts +60 -0
- package/dist/cards/server/cards.server.d.ts.map +1 -0
- package/dist/cards/server/cards.server.test.d.ts +2 -0
- package/dist/cards/server/cards.server.test.d.ts.map +1 -0
- package/dist/cards/shared/cards.api.d.ts.map +1 -0
- package/dist/cards/shared/cards.constants.d.ts +11 -0
- package/dist/cards/shared/cards.constants.d.ts.map +1 -0
- package/dist/{server/cards → cards/shared}/cards.helper.d.ts +2 -0
- package/dist/cards/shared/cards.helper.d.ts.map +1 -0
- package/dist/cards/shared/cards.serializer.d.ts +35 -0
- package/dist/cards/shared/cards.serializer.d.ts.map +1 -0
- package/dist/cards/shared/cards.shared.test.d.ts +2 -0
- package/dist/cards/shared/cards.shared.test.d.ts.map +1 -0
- package/dist/cards/{cards.types.d.ts → shared/cards.types.d.ts} +3 -8
- package/dist/cards/shared/cards.types.d.ts.map +1 -0
- package/dist/cards/{cards.validate.d.ts → shared/cards.validate.d.ts} +1 -1
- package/dist/cards/shared/cards.validate.d.ts.map +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/mocks/handlers.d.ts +1 -1
- package/dist/mocks/handlers.d.ts.map +1 -1
- package/dist/payment-links/client/payment-links.client.d.ts +95 -0
- package/dist/payment-links/client/payment-links.client.d.ts.map +1 -0
- package/dist/payment-links/client/payment-links.client.test.d.ts +2 -0
- package/dist/payment-links/client/payment-links.client.test.d.ts.map +1 -0
- package/dist/payment-links/index.d.ts +27 -6
- package/dist/payment-links/index.d.ts.map +1 -1
- package/dist/payment-links/index.server.d.ts +35 -0
- package/dist/payment-links/index.server.d.ts.map +1 -0
- package/dist/payment-links/server/payment-links.server.d.ts +50 -0
- package/dist/payment-links/server/payment-links.server.d.ts.map +1 -0
- package/dist/payment-links/server/payment-links.server.test.d.ts +2 -0
- package/dist/payment-links/server/payment-links.server.test.d.ts.map +1 -0
- package/dist/payment-links/shared/currency.validation.d.ts.map +1 -0
- package/dist/payment-links/shared/payment-links.shared.test.d.ts +2 -0
- package/dist/payment-links/shared/payment-links.shared.test.d.ts.map +1 -0
- package/dist/{server/payment-links → payment-links/shared}/payment-links.types.d.ts +2 -2
- package/dist/payment-links/shared/payment-links.types.d.ts.map +1 -0
- package/dist/payment-links/{validation → shared}/payment-links.validate.d.ts +1 -1
- package/dist/payment-links/shared/payment-links.validate.d.ts.map +1 -0
- package/dist/payment-links/shared/unit.validation.d.ts.map +1 -0
- package/dist/server/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
- package/dist/server/cards/{cards.d.ts → client/cards.client.d.ts} +64 -89
- package/dist/server/cards/client/cards.client.d.ts.map +1 -0
- package/dist/server/cards/client/cards.client.test.d.ts +2 -0
- package/dist/server/cards/client/cards.client.test.d.ts.map +1 -0
- package/dist/server/cards/index.d.ts +40 -10
- package/dist/server/cards/index.d.ts.map +1 -1
- package/dist/server/cards/index.server.d.ts +41 -0
- package/dist/server/cards/index.server.d.ts.map +1 -0
- package/dist/server/cards/server/cards.server.d.ts +60 -0
- package/dist/server/cards/server/cards.server.d.ts.map +1 -0
- package/dist/server/cards/server/cards.server.test.d.ts +2 -0
- package/dist/server/cards/server/cards.server.test.d.ts.map +1 -0
- package/dist/server/cards/shared/cards.api.d.ts.map +1 -0
- package/dist/server/cards/shared/cards.constants.d.ts +11 -0
- package/dist/server/cards/shared/cards.constants.d.ts.map +1 -0
- package/dist/{cards → server/cards/shared}/cards.helper.d.ts +2 -0
- package/dist/server/cards/shared/cards.helper.d.ts.map +1 -0
- package/dist/server/cards/shared/cards.serializer.d.ts +35 -0
- package/dist/server/cards/shared/cards.serializer.d.ts.map +1 -0
- package/dist/server/cards/shared/cards.shared.test.d.ts +2 -0
- package/dist/server/cards/shared/cards.shared.test.d.ts.map +1 -0
- package/dist/server/cards/{cards.types.d.ts → shared/cards.types.d.ts} +3 -8
- package/dist/{cards → server/cards/shared}/cards.types.d.ts.map +1 -1
- package/dist/server/cards/{cards.validate.d.ts → shared/cards.validate.d.ts} +1 -1
- package/dist/server/cards/shared/cards.validate.d.ts.map +1 -0
- package/dist/server/mocks/handlers.d.ts +1 -1
- package/dist/server/mocks/handlers.d.ts.map +1 -1
- package/dist/server/payment-links/client/payment-links.client.d.ts +95 -0
- package/dist/server/payment-links/client/payment-links.client.d.ts.map +1 -0
- package/dist/server/payment-links/client/payment-links.client.test.d.ts +2 -0
- package/dist/server/payment-links/client/payment-links.client.test.d.ts.map +1 -0
- package/dist/server/payment-links/index.d.ts +27 -6
- package/dist/server/payment-links/index.d.ts.map +1 -1
- package/dist/server/payment-links/index.server.d.ts +35 -0
- package/dist/server/payment-links/index.server.d.ts.map +1 -0
- package/dist/server/payment-links/server/payment-links.server.d.ts +50 -0
- package/dist/server/payment-links/server/payment-links.server.d.ts.map +1 -0
- package/dist/server/payment-links/server/payment-links.server.test.d.ts +2 -0
- package/dist/server/payment-links/server/payment-links.server.test.d.ts.map +1 -0
- package/dist/server/payment-links/shared/currency.validation.d.ts.map +1 -0
- package/dist/server/payment-links/shared/payment-links.shared.test.d.ts +2 -0
- package/dist/server/payment-links/shared/payment-links.shared.test.d.ts.map +1 -0
- package/dist/{payment-links → server/payment-links/shared}/payment-links.types.d.ts +2 -2
- package/dist/server/payment-links/shared/payment-links.types.d.ts.map +1 -0
- package/dist/server/payment-links/{validation → shared}/payment-links.validate.d.ts +1 -1
- package/dist/server/payment-links/shared/payment-links.validate.d.ts.map +1 -0
- package/dist/server/payment-links/shared/unit.validation.d.ts.map +1 -0
- package/dist/server/types/types.public-api.d.ts +2 -2
- package/dist/server/types/types.public-api.d.ts.map +1 -1
- package/dist/server/validation/operation-settings-validation.d.ts +2 -1
- package/dist/server/validation/operation-settings-validation.d.ts.map +1 -1
- package/dist/src/auth-links/shared/auth-links.api.js +1 -1
- package/dist/src/beneficiaries/client/beneficiaries.client.js +1 -1
- package/dist/src/cards/client/cards.client.js +1 -0
- package/dist/src/cards/index.js +1 -1
- package/dist/src/cards/shared/cards.api.js +1 -0
- package/dist/src/cards/shared/cards.constants.js +1 -0
- package/dist/src/cards/shared/cards.helper.js +1 -0
- package/dist/src/cards/shared/cards.serializer.js +1 -0
- package/dist/src/cards/{cards.types.js → shared/cards.types.js} +1 -1
- package/dist/src/cards/shared/cards.validate.js +1 -0
- package/dist/src/payment-links/client/payment-links.client.js +1 -0
- package/dist/src/payment-links/index.js +1 -1
- package/dist/src/payment-links/shared/payment-links.validate.js +1 -0
- package/dist/types/types.public-api.d.ts +2 -2
- package/dist/types/types.public-api.d.ts.map +1 -1
- package/dist/validation/operation-settings-validation.d.ts +2 -1
- package/dist/validation/operation-settings-validation.d.ts.map +1 -1
- package/package.json +9 -1
- package/dist/cards/cards.api.d.ts.map +0 -1
- package/dist/cards/cards.d.ts.map +0 -1
- package/dist/cards/cards.helper.d.ts.map +0 -1
- package/dist/cards/cards.public-api.d.ts +0 -10
- package/dist/cards/cards.public-api.d.ts.map +0 -1
- package/dist/cards/cards.serializer.d.ts +0 -72
- package/dist/cards/cards.serializer.d.ts.map +0 -1
- package/dist/cards/cards.test.d.ts +0 -2
- package/dist/cards/cards.test.d.ts.map +0 -1
- package/dist/cards/cards.validate.d.ts.map +0 -1
- package/dist/payment-links/payment-links.d.ts +0 -58
- package/dist/payment-links/payment-links.d.ts.map +0 -1
- package/dist/payment-links/payment-links.public-api.d.ts +0 -5
- package/dist/payment-links/payment-links.public-api.d.ts.map +0 -1
- package/dist/payment-links/payment-links.test.d.ts +0 -2
- package/dist/payment-links/payment-links.test.d.ts.map +0 -1
- package/dist/payment-links/payment-links.types.d.ts.map +0 -1
- package/dist/payment-links/validation/currency.validation.d.ts.map +0 -1
- package/dist/payment-links/validation/payment-links.validate.d.ts.map +0 -1
- package/dist/payment-links/validation/unit.validation.d.ts.map +0 -1
- package/dist/server/cards/cards.api.d.ts.map +0 -1
- package/dist/server/cards/cards.d.ts.map +0 -1
- package/dist/server/cards/cards.helper.d.ts.map +0 -1
- package/dist/server/cards/cards.public-api.d.ts +0 -10
- package/dist/server/cards/cards.public-api.d.ts.map +0 -1
- package/dist/server/cards/cards.serializer.d.ts +0 -72
- package/dist/server/cards/cards.serializer.d.ts.map +0 -1
- package/dist/server/cards/cards.test.d.ts +0 -2
- package/dist/server/cards/cards.test.d.ts.map +0 -1
- package/dist/server/cards/cards.types.d.ts.map +0 -1
- package/dist/server/cards/cards.validate.d.ts.map +0 -1
- package/dist/server/payment-links/payment-links.d.ts +0 -58
- package/dist/server/payment-links/payment-links.d.ts.map +0 -1
- package/dist/server/payment-links/payment-links.public-api.d.ts +0 -5
- package/dist/server/payment-links/payment-links.public-api.d.ts.map +0 -1
- package/dist/server/payment-links/payment-links.test.d.ts +0 -2
- package/dist/server/payment-links/payment-links.test.d.ts.map +0 -1
- package/dist/server/payment-links/payment-links.types.d.ts.map +0 -1
- package/dist/server/payment-links/validation/currency.validation.d.ts.map +0 -1
- package/dist/server/payment-links/validation/payment-links.validate.d.ts.map +0 -1
- package/dist/server/payment-links/validation/unit.validation.d.ts.map +0 -1
- package/dist/src/auth-links/auth-links.js +0 -1
- package/dist/src/cards/cards.api.js +0 -1
- package/dist/src/cards/cards.helper.js +0 -1
- package/dist/src/cards/cards.js +0 -1
- package/dist/src/cards/cards.public-api.js +0 -1
- package/dist/src/cards/cards.serializer.js +0 -1
- package/dist/src/cards/cards.validate.js +0 -1
- package/dist/src/payment-links/payment-links.js +0 -1
- package/dist/src/payment-links/payment-links.public-api.js +0 -1
- package/dist/src/payment-links/validation/payment-links.validate.js +0 -1
- /package/dist/cards/{cards.api.d.ts → shared/cards.api.d.ts} +0 -0
- /package/dist/payment-links/{validation → shared}/currency.validation.d.ts +0 -0
- /package/dist/payment-links/{validation → shared}/unit.validation.d.ts +0 -0
- /package/dist/server/cards/{cards.api.d.ts → shared/cards.api.d.ts} +0 -0
- /package/dist/server/payment-links/{validation → shared}/currency.validation.d.ts +0 -0
- /package/dist/server/payment-links/{validation → shared}/unit.validation.d.ts +0 -0
- /package/dist/src/payment-links/{validation → shared}/currency.validation.js +0 -0
- /package/dist/src/payment-links/{payment-links.types.js → shared/payment-links.types.js} +0 -0
- /package/dist/src/payment-links/{validation → shared}/unit.validation.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-links.shared.test.d.ts","sourceRoot":"","sources":["../../../../src/payment-links/shared/payment-links.shared.test.ts"],"names":[],"mappings":""}
|
|
@@ -17,9 +17,9 @@ export interface CreatePaymentLinkSettings {
|
|
|
17
17
|
items?: Item[];
|
|
18
18
|
callbackUrl?: string;
|
|
19
19
|
}
|
|
20
|
-
export interface PaymentLinkParams<T> {
|
|
20
|
+
export interface PaymentLinkParams<T, O = OperationSettings> {
|
|
21
21
|
paymentLinkSettings: T;
|
|
22
|
-
operationSettings?:
|
|
22
|
+
operationSettings?: O;
|
|
23
23
|
}
|
|
24
24
|
export declare const LINK_TYPES: {
|
|
25
25
|
GOOD: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-links.types.d.ts","sourceRoot":"","sources":["../../../../src/payment-links/shared/payment-links.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,MAAM,CAAC,CAAC,GAAG,MAAM;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,GAAG,iBAAiB;IACzD,mBAAmB,EAAE,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,CAAC;CACvB;AAED,eAAO,MAAM,UAAU;;;CAGtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CreatePaymentLinkSettings, type Item } from '
|
|
1
|
+
import { type CreatePaymentLinkSettings, type Item } from './payment-links.types';
|
|
2
2
|
export declare function validateItems(items: Item[] | undefined): never[] | undefined;
|
|
3
3
|
export declare const validateType: (type: string) => void;
|
|
4
4
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-links.validate.d.ts","sourceRoot":"","sources":["../../../../src/payment-links/shared/payment-links.validate.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,IAAI,EAEV,MAAM,uBAAuB,CAAC;AAgB/B,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,uBAqCtD;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,SAOxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,mBAAmB,EAAE,yBAAyB,GAAG,SAAS,GACzD,MAAM,CAaR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit.validation.d.ts","sourceRoot":"","sources":["../../../../src/payment-links/shared/unit.validation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,SAMxC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction } from '@auth-links/shared/auth-links.types';
|
|
2
2
|
import type { Beneficiary, GetBeneficiariesResponse } from '@beneficiaries/shared/beneficiaries.types';
|
|
3
|
-
import type { Card, CardOrderSettings, PhysicalCardOrderSettings, VirtualCardOrderSettings } from '@cards/cards.types';
|
|
3
|
+
import type { Card, CardOrderSettings, PhysicalCardOrderSettings, VirtualCardOrderSettings } from '@cards/shared/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
6
|
import type { ACCOUNT_STATUS, BankAccount } from '@organizations/shared/organizations.types';
|
|
7
|
-
import type { CreatePaymentLinkSettings, Item, PaymentLinkParams } from '@payment-links/payment-links.types';
|
|
7
|
+
import type { CreatePaymentLinkSettings, Item, PaymentLinkParams } from '@payment-links/shared/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/shared/transactions.types';
|
|
10
10
|
export type { Card, VirtualCardOrderSettings, PhysicalCardOrderSettings, CardOrderSettings, Beneficiary, GetBeneficiariesResponse, SepaTransfer, SepaTransferStatus, NewSepaTransfer, GetSepaTransfersResponse, CreateSepaTransferResponse, Transaction, TransactionDataObject, GetTransactionsResponse, GetTransactionsSettings, GetTransactionSettings, VopVerificationResult, VopCheckResult, PaginationState, Locale, BankAccount, ACCOUNT_STATUS, Item, CreatePaymentLinkSettings, PaymentLinkParams, AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction, };
|
|
@@ -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,
|
|
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,2BAA2B,CAAC;AAEnC,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,2CAA2C,CAAC;AAEnD,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,yCAAyC,CAAC;AAEjD,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"}
|
|
@@ -267,7 +267,8 @@ export declare function validateOperationSettingsParams(params: OperationSetting
|
|
|
267
267
|
* const settings = validateClientOperationSettings(
|
|
268
268
|
* params?.operationSettings,
|
|
269
269
|
* 'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. ' +
|
|
270
|
-
* '
|
|
270
|
+
* 'For security, never expose access tokens in the browser. ' +
|
|
271
|
+
* 'Use "@qonto/embed-sdk/{namespace}/server" only in server-side/backend environments.'
|
|
271
272
|
* );
|
|
272
273
|
* ```
|
|
273
274
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAIrF,MA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|
|
1
|
+
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAIrF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IAEH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;IAClD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD,iBAAiB,EAAE,iBAAiB,CAAC;CACtC,CAAC;AAEF;;;;GAI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C,EAAE,KAAK,CAAC;CAChB;AAMD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,EAAE,wCAAwC,GAAG;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE,GACtE,uBAAuB,CAAC;AAC3B,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,CAAC,EAAE,wCAAwC,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,GACzE,iBAAiB,CAAC;AA+ErB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,uBAAuB,GAAG,SAAS,EAC3C,YAAY,CAAC,EAAE,MAAM,GACpB,uBAAuB,CAqBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"../../common/auth/auth.js";import"../../common/environment/environment-manager.js";import"../../common/locale/locale-manager.js";import"../../common/operation-settings/operation-settings.js";function o({accessToken:o,stagingToken:n,action:t,callbackUrl:e}){const a={post_authn_action:t};return e&&(a.callback_url=e),{path:"/v1/embed_auth_links",options:{method:"POST",headers:{accessToken:o,stagingToken:n},body:{embed_auth_link:a}}}}export{o as prepareAuthLinkRequest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{serializePaginationResponse as e}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as i}from"../../common/auth/auth.validate.js";import{callProxyFunction as
|
|
1
|
+
import{serializePaginationResponse as e}from"../../common/api-pagination/api-pagination.js";import"../../common/auth/auth.js";import{validatePresenceOfAuthToken as i}from"../../common/auth/auth.validate.js";import{callProxyFunction as n}from"../../common/common.utils.js";import{ACTIONS as r}from"../../common/constants.js";import{buildRequestHeaders as o}from"../../common/network/network.js";import{validateClientOperationSettings as t,validateOperationSettingsParams as s}from"../../validation/operation-settings-validation.js";import{buildIframeUrl as a,createIframe as c}from"../../iframe/iframe-manager.js";import{prepareUntrustBeneficiaryCall as p,prepareUpdateBeneficiaryCall as y,prepareAddBeneficiaryCall as d,prepareGetBeneficiaryCall as m,prepareGetBeneficiariesCall as b}from"../shared/beneficiaries.api.js";import{serializeBeneficiary as f}from"../shared/beneficiaries.serializer.js";import{validateTrustBeneficiariesParams as u,validateUpdateBeneficiaryParams as x,validateAddBeneficiaryParams as l,validateGetBeneficiaryParams as k}from"../shared/beneficiaries.validate.js";async function v(i){const{proxyRequestFunction:r,proxyEndpointDescriptor:o,paginationSettings:s}=t(i?.operationSettings,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),a=b({paginationSettings:s}),c=await n({proxyFunction:r,proxyEndpointDescriptor:o,networkCallDescriptor:a}),p=c.body.beneficiaries.map((e=>f(e))),y=e(c.body.meta);return{beneficiaries:p,...y?{meta:y}:{}}}async function g({beneficiarySettings:e,operationSettings:i}){const r=k(e?.beneficiaryId),{proxyRequestFunction:o,proxyEndpointDescriptor:s}=t(i,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),a=m({beneficiaryId:r}),c=await n({proxyFunction:o,proxyEndpointDescriptor:s,networkCallDescriptor:a});return f(c.body.beneficiary)}async function q({beneficiarySettings:e,operationSettings:i}){const r=l(e),{proxyRequestFunction:s,proxyEndpointDescriptor:a,idempotencyKey:c}=t(i,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),p=d({beneficiary:r,idempotencyKey:c});p.options.headers=o({...p.options.headers});const y=await n({proxyFunction:s,proxyEndpointDescriptor:a,networkCallDescriptor:p});return f(y.body.beneficiary)}async function D({beneficiarySettings:e,operationSettings:i}){const r=x(e),{proxyRequestFunction:o,proxyEndpointDescriptor:s,idempotencyKey:a,mfaPreference:c}=t(i,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),p=y({beneficiaryParamsBeingEdited:r,idempotencyKey:a,mfaPreference:c}),d=await n({proxyFunction:o,proxyEndpointDescriptor:s,networkCallDescriptor:p});return f(d.body.beneficiary)}async function E({beneficiarySettings:e,operationSettings:n}){const{accessToken:o,uiParentElementId:t,debugMode:p}=s(n,{requiresUI:!0}),y=o||i(),d=u(e?.beneficiaryIds),m=a({accessToken:y,debugMode:p}),b=await c({parentElementId:t,iframeUrl:m});return(await b.postMessage({actionId:r.BENEFICIARIES_TRUST,actionData:{body:{beneficiaryIds:d}}})).beneficiaries}async function F({beneficiarySettings:e,operationSettings:i}){const r=u(e?.beneficiaryIds),{proxyRequestFunction:o,proxyEndpointDescriptor:s}=t(i,'Client-side beneficiary operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/beneficiaries/server" only in server-side/backend environments.'),a=p({beneficiaryIds:r});return(await n({proxyFunction:o,proxyEndpointDescriptor:s,networkCallDescriptor:a})).body.beneficiaries.map(f)}export{q as addBeneficiary,v as getBeneficiaries,g as getBeneficiary,E as trustBeneficiaries,F as untrustBeneficiaries,D as updateBeneficiary};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIRTUAL_CARD_LEVEL as e}from"../shared/cards.constants.js";import{tracker as r}from"../../common/analytics/analytics-tracker.js";import{authManager as t}from"../../common/auth/auth.js";import{validatePresenceOfAuthToken as n}from"../../common/auth/auth.validate.js";import{callProxyFunction as o}from"../../common/common.utils.js";import{validateClientOperationSettings as i}from"../../validation/operation-settings-validation.js";import{InvalidParametersError as s}from"../../errors/InvalidParametersError.js";import{buildIframeUrl as a,createIframe as d}from"../../iframe/iframe-manager.js";import{prepareGetCardIframeUrl as c,prepareGetCardCall as p,prepareGetCardsCall as m}from"../shared/cards.api.js";import{createEmbedUI as g}from"../shared/cards.helper.js";import{serializeUnlockCardPayload as u,serializeCard as l,serializeOrderCardPayload as y}from"../shared/cards.serializer.js";import{validateDisplayCardParams as f,validateUnlockCardParams as h,validateOrderCardParams as k,validateGetCardParams as w}from"../shared/cards.validate.js";async function b(e){r.cardsList();const t=e?.cardSettings?.membershipId;if(t&&"string"!=typeof t)throw new s("membershipId must be a string");const{proxyRequestFunction:n,proxyEndpointDescriptor:a,stagingToken:d}=i(e?.operationSettings,'Client-side card operations require either proxyEndpointDescriptor or proxyRequestFunction. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/cards/server" only in server-side/backend environments.'),c=m({membershipId:t,stagingToken:d});return(await o({proxyFunction:n,proxyEndpointDescriptor:a,networkCallDescriptor:c})).body.cards.map((e=>l(e)))}async function I({cardSettings:e,operationSettings:r}){w(e);const t=e.cardId,{proxyRequestFunction:n,proxyEndpointDescriptor:a,stagingToken:d}=i(r,'Client-side card operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/cards/server" only in server-side/backend environments.'),c=p({cardId:t,stagingToken:d}),m=(await o({proxyFunction:n,proxyEndpointDescriptor:a,networkCallDescriptor:c})).body.cards;if(Array.isArray(m)&&m.length>0)return l(m[0]);throw new s("Unable to retrieve card data")}async function x(o){const i=n(),{uiParentElementId:c,debugMode:p}=o.operationSettings;if(!c)throw new s("uiParentElementId is required");k(o.cardSettings);const m=o.cardSettings.cardLevel===e.VIRTUAL,g=a({accessToken:i,stagingToken:t.getStagingToken()||void 0,debugMode:p}),u=await d({iframeUrl:g,parentElementId:c}),f=y(o.cardSettings),h=await u.postMessage(f);return u.destroy(),m?r.cardsOrderVirtual():r.cardsOrderPhysical(),l(h)}async function E(e){const r=n(),{uiParentElementId:o,debugMode:i}=e.operationSettings;if(!o)throw new s("uiParentElementId is required");h(e.cardSettings);const c=a({accessToken:r,stagingToken:t.getStagingToken()||void 0,debugMode:i}),p=await d({iframeUrl:c,parentElementId:o}),m=u(e),g=await p.postMessage(m);return p.destroy(),l(g)}async function S(e){const{uiParentElementId:r,accessToken:t,stagingToken:i,debugMode:a,mfaPreference:d,proxyRequestFunction:p,proxyEndpointDescriptor:m}=e.operationSettings;if(!r)throw new s("uiParentElementId is required");if(f(e.cardSettings),p||m){const t=c({stagingToken:i}),n=(await o({proxyFunction:p,proxyEndpointDescriptor:m,networkCallDescriptor:t})).body.embed_auth_link;return g({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:r,debugMode:a},cardIframeUrl:n.url})}{const o=t||n(),{getCardIframeURL:s}=await import("../shared/cards.api.js"),d=await s({...e.cardSettings,accessToken:o,stagingToken:i});return g({decorationParams:e.cardSettings,operationSettings:{uiParentElementId:r,debugMode:a},cardIframeUrl:d.url})}}export{S as displayCard,I as getCard,b as getCards,x as orderCard,E as unlockCard};
|
package/dist/src/cards/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{displayCard as r,unlockCard as d,orderCard as a,getCard as t,getCards as e}from"./client/cards.client.js";const o={getCards:e,getCard:t,orderCard:a,unlockCard:d,displayCard:r};export{o as cards};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{prepareAuthLinkRequest as n}from"../../auth-links/shared/auth-links.api.js";import{AUTH_LINK_ACTIONS as o}from"../../common/constants.js";import{makeNetworkCall as s}from"../../common/network/network.js";function e({membershipId:n,accessToken:o,stagingToken:s}){return{path:n?`/v2/cards?holder_ids[]=${n}`:"/v2/cards",options:{method:"GET",headers:{accessToken:o,stagingToken:s}}}}function t({cardId:n,accessToken:o,stagingToken:s}){return{path:`/v2/cards?ids[]=${n}`,options:{method:"GET",headers:{accessToken:o,stagingToken:s}}}}function a({accessToken:s,stagingToken:e}){return n({accessToken:s,stagingToken:e,action:o.CARD_DISPLAY})}async function c(n){const o=a(n),{embed_auth_link:e}=await s(o);return e}export{c as getCardIframeURL,t as prepareGetCardCall,a as prepareGetCardIframeUrl,e as prepareGetCardsCall};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={VIRTUAL:"virtual"},a={METAL:"metal",PLUS:"plus",STANDARD:"standard"};export{a as PHYSICAL_CARD_LEVEL,t as VIRTUAL_CARD_LEVEL};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIRTUAL_CARD_LEVEL as a}from"./cards.constants.js";import{gatherQontoEmbedCssVariables as e}from"../../customization/customization.js";import{CUSTOM_PROP_PREFIX as o}from"../../customization/customization.constants.js";import{createIframe as t}from"../../iframe/iframe-manager.js";function r(a,t){const r=new URL(a);r.searchParams.set("cardId",t.cardId),"boolean"==typeof t.allowPinReveal&&r.searchParams.set("canSeePin",t.allowPinReveal.toString()),"boolean"==typeof t.allowBlocking&&r.searchParams.set("canBlock",t.allowBlocking.toString()),!0===t.debugMode&&r.searchParams.set("debug",t.debugMode.toString());const n=e(o);return Object.keys(n).length>0&&r.searchParams.set("customization",JSON.stringify(n)),r.toString()}async function n({decorationParams:a,operationSettings:e,cardIframeUrl:o}){const{cardId:n,allowPinReveal:i,allowBlocking:s}=a,{uiParentElementId:c,debugMode:l}=e,m=r(o,{cardId:n,allowPinReveal:i,allowBlocking:s,debugMode:l}),d=await t({iframeUrl:m,parentElementId:c});return{destroyEmbedUI:()=>{d.destroy()}}}function i(e){return e.cardLevel===a.VIRTUAL}export{n as createEmbedUI,r as getPopulatedIframeURL,i as isVirtualCardOrderSettings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isVirtualCardOrderSettings as t}from"./cards.helper.js";import{ACTIONS as i}from"../../common/constants.js";import{CardCategories as a}from"./cards.types.js";import n from"../../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js";function e(a){return t(a)?function(t){const a=s(t.categories);return{actionId:i.CARD_ORDER,actionData:{idempotencyKey:n(),body:{card:{payment_monthly_limit:t.monthlyLimit,payment_daily_limit:t.dailyLimit,payment_daily_limit_option:t.hasDailyLimit,payment_transaction_limit:t.transactionLimit,payment_transaction_limit_option:t.hasTransactionLimit,active_days:t.activeDays||[],holder_id:t.membershipId,organization_id:t.organizationId,bank_account_id:t.bankAccountId,categories:a,card_level:t.cardLevel}}}}}(a):function(t){const a=s(t.categories);return{actionId:i.CARD_ORDER,actionData:{idempotencyKey:n(),body:{card:{payment_monthly_limit:t.monthlyLimit,payment_daily_limit:t.dailyLimit,payment_daily_limit_option:t.hasDailyLimit,payment_transaction_limit:t.transactionLimit,payment_transaction_limit_option:t.hasTransactionLimit,active_days:t.activeDays||[],holder_id:t.membershipId,organization_id:t.organizationId,bank_account_id:t.bankAccountId,categories:a,card_level:t.cardLevel,card_design:t.cardDesign,..."plus"===t.cardLevel&&{type_of_print:t.typeOfPrint},ship_to_business_address:t.shipToBusiness,atm_option:t.hasAtmOption,nfc_option:t.hasNfcOption,foreign_option:t.hasForeignPaymentOption,online_option:t.hasOnlinePaymentOption,atm_daily_limit:t.atmDailyLimit,atm_monthly_limit:t.atmMonthlyLimit,...!t.shipToBusiness&&{address:{contact_name:t.address?.contactName,first_line:t.address?.firstLine,second_line:t.address?.secondLine,third_line:t.address?.thirdLine,zipcode:t.address?.zipCode,city:t.address?.city,country:t.address?.country}}}}}}}(a)}function o(t){return{id:t.id,nickname:t.nickname,embossedName:t.embossed_name,status:t.status,maskPan:t.mask_pan,expMonth:parseInt(t.exp_month,10),expYear:parseInt(t.exp_year,10),lastActivityAt:new Date(t.last_activity_at),lastDigits:t.last_digits,shipToBusiness:t.ship_to_business,atmOption:t.atm_option,atmDailyLimitOption:t.atm_daily_limit_option,nfcOption:t.nfc_option,onlineOption:t.online_option,foreignOption:t.foreign_option,atmMonthlyLimit:t.atm_monthly_limit,atmMonthlySpent:t.atm_monthly_spent,atmDailyLimit:t.atm_daily_limit,atmDailySpent:t.atm_daily_spent,paymentMonthlyLimit:t.payment_monthly_limit,paymentMonthlySpent:t.payment_monthly_spent,paymentDailyLimit:t.payment_daily_limit,paymentDailySpent:t.payment_daily_spent,paymentDailyLimitOption:t.payment_daily_limit_option,paymentTransactionLimit:t.payment_transaction_limit,paymentTransactionLimitOption:t.payment_transaction_limit_option,activeDays:t.active_days,holderId:t.holder_id,bankAccountId:t.bank_account_id,organizationId:t.organization_id,updatedAt:new Date(t.updated_at),createdAt:new Date(t.created_at),shippedAt:new Date(t.shipped_at),cardType:t.card_type,cardLevel:t.card_level,paymentLifespanLimit:t.payment_lifespan_limit,paymentLifespanSpent:t.payment_lifespan_spent,preExpiresAt:new Date(t.pre_expires_at),categories:t.categories,renewed:t.renewed,renewal:t.renewal,...t.parent_card_summary&&{parentCardSummary:{id:t.parent_card_summary.id,lastDigits:t.parent_card_summary.last_digits}},hadOperation:t.had_operation,hadPinOperation:t.had_pin_operation,cardDesign:t.card_design,typeOfPrint:t.type_of_print,upsold:t.upsold,upsell:t.upsell,discardOn:new Date(t.discard_on),reordered:t.reordered}}function s(t){const i=Object.values(a);return(t||[]).filter((t=>i.includes(t)))}function d(t){return{actionId:i.CARD_UNLOCK,actionData:{body:{cardId:t.cardSettings.cardId}}}}export{s as filterValidCategories,o as serializeCard,e as serializeOrderCardPayload,d as serializeUnlockCardPayload};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e;!function(e){e.PENDING="pending",e.ONHOLD="onhold",e.ORDER_CANCELED="order_canceled",e.LIVE="live",e.PAUSED="paused",e.STOLEN="stolen",e.LOST="lost",e.PIN_BLOCKED="pin_blocked",e.DELETED="deleted",e.PRE_EXPIRED="pre_expired",e.EXPIRED="expired",e.DISCARDED="discarded",e.SHIPPED_LOST="shipped_lost",e.ABUSIVE="abusive"}(e||(e={}));const
|
|
1
|
+
var e;!function(e){e.PENDING="pending",e.ONHOLD="onhold",e.ORDER_CANCELED="order_canceled",e.LIVE="live",e.PAUSED="paused",e.STOLEN="stolen",e.LOST="lost",e.PIN_BLOCKED="pin_blocked",e.DELETED="deleted",e.PRE_EXPIRED="pre_expired",e.EXPIRED="expired",e.DISCARDED="discarded",e.SHIPPED_LOST="shipped_lost",e.ABUSIVE="abusive"}(e||(e={}));const _={TRANSPORT:"transport",RESTAURANT_AND_BAR:"restaurant_and_bar",FOOD_AND_GROCERY:"food_and_grocery",IT_AND_ELECTRONICS:"it_and_electronics",UTILITY:"utility",TAX:"tax",LEGAL_AND_ACCOUNTING:"legal_and_accounting",ATM:"atm",OFFICE_SUPPLY:"office_supply",HARDWARE_AND_EQUIPMENT:"hardware_and_equipment",FINANCE:"finance"};export{_ as CardCategories,e as CardStatus};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIRTUAL_CARD_LEVEL as t,PHYSICAL_CARD_LEVEL as i}from"./cards.constants.js";import{isVirtualCardOrderSettings as n}from"./cards.helper.js";import{validateExpectedStringValues as e,validateExpectedBooleanValues as a,validatePresenceOfRequiredParams as r,validateExpectedNumericValues as o}from"../../validation/input-param-validation.js";import{InvalidParametersError as s}from"../../errors/InvalidParametersError.js";const c=[{name:"organizationId"},{name:"membershipId"},{name:"bankAccountId"},{name:"monthlyLimit"},{name:"cardLevel"}],m=[...c,{name:"atmDailyLimit",requiredIfPresent:"hasAtmDailyLimit"},{name:"hasAtmDailyLimit",requiredIfPresent:"hasAtmOption"},{name:"atmMonthlyLimit",requiredIfPresent:"hasAtmOption"},{name:"shipToBusiness"},{name:"cardLevel"}];function d(d){if(!d)throw new s("cardSettings parameter is required for the called function");return n(d)?function(i){return r(i,c),function(i){const{membershipId:n,organizationId:r,bankAccountId:c,hasDailyLimit:m,hasTransactionLimit:d,monthlyLimit:l,dailyLimit:f,transactionLimit:y,activeDays:p,categories:L,cardLevel:w}=i,I=function(i){return i!==t.VIRTUAL?['cardLevel must be "virtual"']:[]}(w),g=e({membershipId:n,organizationId:r,bankAccountId:c}),v=a({hasDailyLimit:m,hasTransactionLimit:d}),b=o({monthlyLimit:l,dailyLimit:f,transactionLimit:y}),A=u(p),D=h(L),O=[...I,...g,...v,...b,...A,...D];if(O.length>0)throw new s(O)}(i),i}(d):function(t){r(t,m),function(t){const{membershipId:n,organizationId:r,bankAccountId:c,hasDailyLimit:m,hasTransactionLimit:d,monthlyLimit:l,dailyLimit:f,transactionLimit:y,activeDays:p,categories:L,cardLevel:w,hasNfcOption:I,hasForeignPaymentOption:g,hasOnlinePaymentOption:v,shipToBusiness:b,hasAtmOption:A,hasAtmDailyLimit:D,atmDailyLimit:O,atmMonthlyLimit:P,address:q,cardDesign:k,typeOfPrint:T}=t,z=function(t){return Object.values(i).includes(t)?[]:['cardLevel must be one of "standard", "plus", "metal"']}(w),B=function(t){const i=null!=t&&"string"!=typeof t,n=!["print","embossed",void 0,null].includes(t);return i||n?['typeOfPrint must be one of "print", "embossed" or null']:[]}(T),j=e({membershipId:n,organizationId:r,bankAccountId:c}),N=a({hasDailyLimit:m,hasTransactionLimit:d,hasAtmOption:A,hasNfcOption:I,hasForeignPaymentOption:g,hasOnlinePaymentOption:v,hasAtmDailyLimit:D,shipToBusiness:b}),R=o({monthlyLimit:l,dailyLimit:f,transactionLimit:y,atmDailyLimit:O,atmMonthlyLimit:P}),S=u(p),M=h(L),C=function(t){return["undefined","string"].includes(typeof t)?[]:["cardDesign must be a string"]}(k),F=function(t,i){if(i)return[];return!t||t.contactName&&t.firstLine&&t.zipCode&&t.city&&t.country?[]:["address must contain at least contactName, firstLine, zipCode, city and country properties"]}(q,b),x=[...z,...j,...N,...R,...S,...M,...B,...C,...F];if(x.length>0)throw new s(x)}(t)}(d)}function l(t){if(!t)throw new s("cardSettings parameter is required for the called function");if(!t.cardId)throw new s("cardId is required for the called function");const i=e({cardId:t.cardId});if(i.length>0)throw new s(i)}function u(t){const i=!Array.isArray(t)||!t.every((t=>Number.isInteger(t)&&t>0&&t<8));return void 0!==t&&i?["activeDays must be an array of integers between 1 and 7"]:[]}function h(t){const i=!Array.isArray(t)||t.some((t=>"string"!=typeof t));return void 0!==t&&i?["categories must be an array of strings"]:[]}function f(t){if(!t)throw new s("cardSettings parameter is required for the called function");if(!t.cardId)throw new s("cardId is required for the called function");const i=e({cardId:t.cardId});if(i.length>0)throw new s(i);let n={};void 0!==t.allowPinReveal&&(n={allowPinReveal:t.allowPinReveal}),void 0!==t.allowBlocking&&(n={...n,allowBlocking:t.allowBlocking});const r=a(n);if(r.length>0)throw new s(r);return t}function y(t){if(!t)throw new s("cardSettings parameter is required for the called function");if(!t.cardId)throw new s("cardId parameter is required for the called function");const i=e({cardId:t.cardId});if(i.length>0)throw new s(i);return t}export{f as validateDisplayCardParams,y as validateGetCardParams,d as validateOrderCardParams,l as validateUnlockCardParams};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{authLinks as t}from"../../auth-links/index.js";import{AUTH_LINK_ACTIONS as e}from"../../common/constants.js";import{validateClientOperationSettings as n}from"../../validation/operation-settings-validation.js";import{validateItems as i,validatePaymentLinkCreationFlowParams as o}from"../shared/payment-links.validate.js";const s=async({paymentLinkSettings:s,operationSettings:r})=>{n(r,'Client-side payment link operations require either proxyRequestFunction or proxyEndpointDescriptor. For security, never expose access tokens in the browser. Use "@qonto/embed-sdk/payment-links/server" only in server-side/backend environments.');const{items:a}=s;i(a);const p=o(s),m=await t.request({requestSettings:{action:e.PAYMENT_LINK_CREATE,callbackUrl:p},operationSettings:r}),c=new URLSearchParams({...a?{items:JSON.stringify(a)}:{}});return c.toString()?`${m.url}?${c.toString()}`:m.url},r=async({paymentLinkSettings:t,operationSettings:e})=>{const n=await s({paymentLinkSettings:t,operationSettings:e});window.location.href=n};export{s as getPaymentLinkCreationFlowUrl,r as redirectToPaymentLinkCreationFlow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{redirectToPaymentLinkCreationFlow as t,getPaymentLinkCreationFlowUrl as e}from"./client/payment-links.client.js";const n={getPaymentLinkCreationFlowUrl:e,redirectToPaymentLinkCreationFlow:t};export{n as paymentLinks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{validatePresenceOfRequiredParams as t,validateExpectedStringValues as e,validateExpectedNumericValues as r}from"../../validation/input-param-validation.js";import{validateCurrency as i}from"./currency.validation.js";import{LINK_TYPES as a}from"./payment-links.types.js";import{validateUnit as n}from"./unit.validation.js";import{InvalidParametersError as c}from"../../errors/InvalidParametersError.js";const l=[{name:"id"},{name:"title"},{name:"type"},{name:"quantity"},{name:"measureUnit"},{name:"unitPrice"},{name:"vatRate"}],o=[{name:"currency"},{name:"value"}];function m(a){if(!a||!Array.isArray(a))return[];a.forEach((a=>{t(a,l),t(a.unitPrice,o);const m=[...e({id:a.id,title:a.title,vatRate:a.vatRate,currency:a.unitPrice.currency,measureUnit:a.measureUnit,unitPrice:a.unitPrice.value,...a.description?{description:a.description}:{}}),...r({quantity:a.quantity})].flat();if(m.length>0)throw new c(m);u(a.type),i(a.unitPrice.currency),n(a.measureUnit)}))}const u=t=>{if(!Object.values(a).includes(t))throw new c(`type ${t} is not valid, valid types are ${Object.values(a).join(", ")}`)};function s(t){if(!t?.callbackUrl)throw new c("callbackUrl parameter is required for the payment link creation flow");if("string"!=typeof t.callbackUrl)throw new c("callbackUrl must be a string");if(""===t.callbackUrl.trim())throw new c("callbackUrl cannot be empty");return t.callbackUrl}export{m as validateItems,s as validatePaymentLinkCreationFlowParams,u as validateType};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction } from '@auth-links/shared/auth-links.types';
|
|
2
2
|
import type { Beneficiary, GetBeneficiariesResponse } from '@beneficiaries/shared/beneficiaries.types';
|
|
3
|
-
import type { Card, CardOrderSettings, PhysicalCardOrderSettings, VirtualCardOrderSettings } from '@cards/cards.types';
|
|
3
|
+
import type { Card, CardOrderSettings, PhysicalCardOrderSettings, VirtualCardOrderSettings } from '@cards/shared/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
6
|
import type { ACCOUNT_STATUS, BankAccount } from '@organizations/shared/organizations.types';
|
|
7
|
-
import type { CreatePaymentLinkSettings, Item, PaymentLinkParams } from '@payment-links/payment-links.types';
|
|
7
|
+
import type { CreatePaymentLinkSettings, Item, PaymentLinkParams } from '@payment-links/shared/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/shared/transactions.types';
|
|
10
10
|
export type { Card, VirtualCardOrderSettings, PhysicalCardOrderSettings, CardOrderSettings, Beneficiary, GetBeneficiariesResponse, SepaTransfer, SepaTransferStatus, NewSepaTransfer, GetSepaTransfersResponse, CreateSepaTransferResponse, Transaction, TransactionDataObject, GetTransactionsResponse, GetTransactionsSettings, GetTransactionSettings, VopVerificationResult, VopCheckResult, PaginationState, Locale, BankAccount, ACCOUNT_STATUS, Item, CreatePaymentLinkSettings, PaymentLinkParams, AuthLinkRequestParams, AuthLinkRequestResult, AuthLinkRequestSettings, PostAuthAction, };
|
|
@@ -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,
|
|
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,2BAA2B,CAAC;AAEnC,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,2CAA2C,CAAC;AAEnD,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,yCAAyC,CAAC;AAEjD,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"}
|
|
@@ -267,7 +267,8 @@ export declare function validateOperationSettingsParams(params: OperationSetting
|
|
|
267
267
|
* const settings = validateClientOperationSettings(
|
|
268
268
|
* params?.operationSettings,
|
|
269
269
|
* 'Client-side operations require either proxyRequestFunction or proxyEndpointDescriptor. ' +
|
|
270
|
-
* '
|
|
270
|
+
* 'For security, never expose access tokens in the browser. ' +
|
|
271
|
+
* 'Use "@qonto/embed-sdk/{namespace}/server" only in server-side/backend environments.'
|
|
271
272
|
* );
|
|
272
273
|
* ```
|
|
273
274
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAIrF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IAEH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,uBAAuB,CAAC,EAAE,uBAAuB,CAAC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;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B,uBAAuB,CAAC,EAAE,KAAK,CAAC;IAChC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAC1B,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAMD,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,EAAE,wCAAwC,GAAG;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE,GACtE,uBAAuB,CAAC;AAC3B,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,MAAM,CAAC,EAAE,wCAAwC,GAAG;IAAE,UAAU,CAAC,EAAE,KAAK,CAAA;CAAE,GACzE,iBAAiB,CAAC;AA+ErB
|
|
1
|
+
{"version":3,"file":"operation-settings-validation.d.ts","sourceRoot":"","sources":["../../src/validation/operation-settings-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAIrF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;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.0",
|
|
4
4
|
"description": "Library to embed Qonto features in your application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"types": "./dist/cards/index.d.ts",
|
|
19
19
|
"import": "./dist/src/cards/index.js"
|
|
20
20
|
},
|
|
21
|
+
"./server/cards": {
|
|
22
|
+
"types": "./dist/server/cards/index.server.d.ts",
|
|
23
|
+
"import": "./dist/server/src/cards/index.server.js"
|
|
24
|
+
},
|
|
21
25
|
"./beneficiaries": {
|
|
22
26
|
"types": "./dist/beneficiaries/index.d.ts",
|
|
23
27
|
"import": "./dist/src/beneficiaries/index.js"
|
|
@@ -66,6 +70,10 @@
|
|
|
66
70
|
"types": "./dist/payment-links/index.d.ts",
|
|
67
71
|
"import": "./dist/src/payment-links/index.js"
|
|
68
72
|
},
|
|
73
|
+
"./server/payment-links": {
|
|
74
|
+
"types": "./dist/server/payment-links/index.server.d.ts",
|
|
75
|
+
"import": "./dist/server/src/payment-links/index.server.js"
|
|
76
|
+
},
|
|
69
77
|
"./types": {
|
|
70
78
|
"types": "./dist/types/index.d.ts",
|
|
71
79
|
"import": "./dist/src/types/index.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.api.d.ts","sourceRoot":"","sources":["../../src/cards/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;IACr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AAC,CAuDlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.helper.d.ts","sourceRoot":"","sources":["../../src/cards/cards.helper.ts"],"names":[],"mappings":"AAAA,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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { displayCard, getCard, getCards, orderCard, unlockCard } from './cards';
|
|
2
|
-
declare const cards: {
|
|
3
|
-
getCards: typeof getCards;
|
|
4
|
-
getCard: typeof getCard;
|
|
5
|
-
orderCard: typeof orderCard;
|
|
6
|
-
unlockCard: typeof unlockCard;
|
|
7
|
-
displayCard: typeof displayCard;
|
|
8
|
-
};
|
|
9
|
-
export { cards };
|
|
10
|
-
//# sourceMappingURL=cards.public-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.public-api.d.ts","sourceRoot":"","sources":["../../src/cards/cards.public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,QAAA,MAAM,KAAK;;;;;;CAMV,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { type Card, type CardDataObject, type CardOrderSettings, type UnlockCardSettings } from '@cards/cards.types';
|
|
2
|
-
import type { CardParams } from './cards';
|
|
3
|
-
export declare function serializeOrderCardPayload(payload: CardOrderSettings): {
|
|
4
|
-
actionId: string;
|
|
5
|
-
actionData: {
|
|
6
|
-
idempotencyKey: string;
|
|
7
|
-
body: {
|
|
8
|
-
card: {
|
|
9
|
-
payment_monthly_limit: number;
|
|
10
|
-
payment_daily_limit: number | undefined;
|
|
11
|
-
payment_daily_limit_option: boolean | undefined;
|
|
12
|
-
payment_transaction_limit: number | undefined;
|
|
13
|
-
payment_transaction_limit_option: boolean | undefined;
|
|
14
|
-
active_days: number[];
|
|
15
|
-
holder_id: string;
|
|
16
|
-
organization_id: string;
|
|
17
|
-
bank_account_id: string;
|
|
18
|
-
categories: string[];
|
|
19
|
-
card_level: import("@cards/cards.types").VirtualCardLevel;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
} | {
|
|
24
|
-
actionId: string;
|
|
25
|
-
actionData: {
|
|
26
|
-
idempotencyKey: string;
|
|
27
|
-
body: {
|
|
28
|
-
card: {
|
|
29
|
-
address?: {
|
|
30
|
-
contact_name: string | undefined;
|
|
31
|
-
first_line: string | undefined;
|
|
32
|
-
second_line: string | undefined;
|
|
33
|
-
third_line: string | undefined;
|
|
34
|
-
zipcode: string | undefined;
|
|
35
|
-
city: string | undefined;
|
|
36
|
-
country: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
ship_to_business_address: boolean;
|
|
39
|
-
atm_option: boolean | undefined;
|
|
40
|
-
nfc_option: boolean | undefined;
|
|
41
|
-
foreign_option: boolean | undefined;
|
|
42
|
-
online_option: boolean | undefined;
|
|
43
|
-
atm_daily_limit: number | undefined;
|
|
44
|
-
atm_monthly_limit: number | undefined;
|
|
45
|
-
type_of_print?: ("embossed" | "print" | null) | undefined;
|
|
46
|
-
payment_monthly_limit: number;
|
|
47
|
-
payment_daily_limit: number | undefined;
|
|
48
|
-
payment_daily_limit_option: boolean | undefined;
|
|
49
|
-
payment_transaction_limit: number | undefined;
|
|
50
|
-
payment_transaction_limit_option: boolean | undefined;
|
|
51
|
-
active_days: number[];
|
|
52
|
-
holder_id: string;
|
|
53
|
-
organization_id: string;
|
|
54
|
-
bank_account_id: string;
|
|
55
|
-
categories: string[];
|
|
56
|
-
card_level: import("@cards/cards.types").PhysicalCardLevel;
|
|
57
|
-
card_design: ("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") | undefined;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export declare function serializeCard(cardDataObject: CardDataObject): Card;
|
|
63
|
-
export declare function filterValidCategories(categories: string[] | undefined): string[];
|
|
64
|
-
export declare function serializeUnlockCardPayload(payload: CardParams<UnlockCardSettings>): {
|
|
65
|
-
actionId: string;
|
|
66
|
-
actionData: {
|
|
67
|
-
body: {
|
|
68
|
-
cardId: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=cards.serializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.serializer.d.ts","sourceRoot":"","sources":["../../src/cards/cards.serializer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,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,CACxC,OAAO,EAAE,UAAU,CAAC,kBAAkB,CAAC;;;;;;;EAUxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.test.d.ts","sourceRoot":"","sources":["../../src/cards/cards.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.validate.d.ts","sourceRoot":"","sources":["../../src/cards/cards.validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EAGxB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC9B,MAAM,oBAAoB,CAAC;AA2B5B,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,mCAWhE;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,QAelE;AA2ND,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,58 +0,0 @@
|
|
|
1
|
-
import type { CreatePaymentLinkSettings, PaymentLinkParams } from './payment-links.types';
|
|
2
|
-
/**
|
|
3
|
-
* Generates the URL for initiating a payment link creation flow with specified items.
|
|
4
|
-
*
|
|
5
|
-
* @param params - An object containing:
|
|
6
|
-
* - paymentLinkSettings: An object containing:
|
|
7
|
-
* - items: An array of items to be included in the payment link. Each item must conform to the Item type and will be validated.
|
|
8
|
-
* - callbackUrl: Required callback URL to redirect to after payment link creation.
|
|
9
|
-
* - operationSettings: An object with operation-level settings such as `proxyRequestFunction`, `accessToken`, `stagingToken`, etc.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const url = await getPaymentLinkCreationFlowUrl({
|
|
14
|
-
* paymentLinkSettings: {
|
|
15
|
-
* items: [{ id: '1', title: 'Item 1', type: 'service', quantity: 1, measureUnit: 'unit', unitPrice: { currency: 'EUR', value: '10' }, vatRate: '20' }],
|
|
16
|
-
* },
|
|
17
|
-
* operationSettings: {
|
|
18
|
-
* proxyRequestFunction: async (encodedCall) => {
|
|
19
|
-
* // Implement your proxy logic here
|
|
20
|
-
* },
|
|
21
|
-
* }
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
* @returns Promise resolving to the full URL as a string, which can be used to launch the payment link creation flow in an iframe or browser.
|
|
25
|
-
*
|
|
26
|
-
* @throws `InvalidParametersError` If the provided items array is invalid or if callbackUrl is missing or invalid.
|
|
27
|
-
* @throws `AuthenticationError` If authentication fails (e.g., invalid or missing access token).
|
|
28
|
-
*/
|
|
29
|
-
export declare const getPaymentLinkCreationFlowUrl: ({ paymentLinkSettings, operationSettings, }: PaymentLinkParams<CreatePaymentLinkSettings>) => Promise<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Redirects to the payment link creation flow with specified items.
|
|
32
|
-
*
|
|
33
|
-
* @param params - An object containing:
|
|
34
|
-
* - paymentLinkSettings: An object containing:
|
|
35
|
-
* - items: An array of items to be included in the payment link. Each item must conform to the Item type and will be validated.
|
|
36
|
-
* - callbackUrl: Required callback URL to redirect to after payment link creation.
|
|
37
|
-
* - operationSettings: An object with operation-level settings such as `proxyRequestFunction`, `accessToken`, `stagingToken`, etc.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* await redirectToPaymentLinkCreationFlow({
|
|
42
|
-
* paymentLinkSettings: {
|
|
43
|
-
* items: [{ id: '1', title: 'Item 1', type: 'service', quantity: 1, measureUnit: 'unit', unitPrice: { currency: 'EUR', value: '10' }, vatRate: '20' }],
|
|
44
|
-
* },
|
|
45
|
-
* operationSettings: {
|
|
46
|
-
* proxyRequestFunction: async (encodedCall) => {
|
|
47
|
-
* // Implement your proxy logic here
|
|
48
|
-
* },
|
|
49
|
-
* }
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
* @returns This function redirects the browser to the payment link creation flow. Due to the redirect, the returned promise will not resolve.
|
|
53
|
-
*
|
|
54
|
-
* @throws `InvalidParametersError` If the provided items array is invalid or if callbackUrl is missing or invalid.
|
|
55
|
-
* @throws `AuthenticationError` If authentication fails (e.g., invalid or missing access token).
|
|
56
|
-
*/
|
|
57
|
-
export declare const redirectToPaymentLinkCreationFlow: ({ paymentLinkSettings, operationSettings, }: PaymentLinkParams<CreatePaymentLinkSettings>) => Promise<void>;
|
|
58
|
-
//# sourceMappingURL=payment-links.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-links.d.ts","sourceRoot":"","sources":["../../src/payment-links/payment-links.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAM/B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,6BAA6B,GAAU,6CAGjD,iBAAiB,CAAC,yBAAyB,CAAC,KAAG,OAAO,CAAC,MAAM,CAsB/D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,iCAAiC,GAAU,6CAGrD,iBAAiB,CAAC,yBAAyB,CAAC,KAAG,OAAO,CAAC,IAAI,CAM7D,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const paymentLinks: {
|
|
2
|
-
getPaymentLinkCreationFlowUrl: ({ paymentLinkSettings, operationSettings, }: import("./payment-links.types").PaymentLinkParams<import("./payment-links.types").CreatePaymentLinkSettings>) => Promise<string>;
|
|
3
|
-
};
|
|
4
|
-
export { paymentLinks };
|
|
5
|
-
//# sourceMappingURL=payment-links.public-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-links.public-api.d.ts","sourceRoot":"","sources":["../../src/payment-links/payment-links.public-api.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;CAEjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-links.test.d.ts","sourceRoot":"","sources":["../../src/payment-links/payment-links.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-links.types.d.ts","sourceRoot":"","sources":["../../src/payment-links/payment-links.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,MAAM,CAAC,CAAC,GAAG,MAAM;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,mBAAmB,EAAE,CAAC,CAAC;IACvB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,eAAO,MAAM,UAAU;;;CAGtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"currency.validation.d.ts","sourceRoot":"","sources":["../../../src/payment-links/validation/currency.validation.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,SAMhD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-links.validate.d.ts","sourceRoot":"","sources":["../../../src/payment-links/validation/payment-links.validate.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,IAAI,EAEV,MAAM,wBAAwB,CAAC;AAgBhC,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,SAAS,uBAqCtD;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,SAOxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,mBAAmB,EAAE,yBAAyB,GAAG,SAAS,GACzD,MAAM,CAaR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unit.validation.d.ts","sourceRoot":"","sources":["../../../src/payment-links/validation/unit.validation.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,SAMxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.api.d.ts","sourceRoot":"","sources":["../../../src/cards/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;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sB,UAAU,CAC9B,UAAU,EAAE,UAAU,CAAC,kBAAkB,CAAC,GACzC,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,CAuDlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.helper.d.ts","sourceRoot":"","sources":["../../../src/cards/cards.helper.ts"],"names":[],"mappings":"AAAA,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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { displayCard, getCard, getCards, orderCard, unlockCard } from './cards';
|
|
2
|
-
declare const cards: {
|
|
3
|
-
getCards: typeof getCards;
|
|
4
|
-
getCard: typeof getCard;
|
|
5
|
-
orderCard: typeof orderCard;
|
|
6
|
-
unlockCard: typeof unlockCard;
|
|
7
|
-
displayCard: typeof displayCard;
|
|
8
|
-
};
|
|
9
|
-
export { cards };
|
|
10
|
-
//# sourceMappingURL=cards.public-api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cards.public-api.d.ts","sourceRoot":"","sources":["../../../src/cards/cards.public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,QAAA,MAAM,KAAK;;;;;;CAMV,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|