@adyen/kyc-components 3.68.0 → 3.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-yutCVhdr.js → AcceptTermsOfServiceComponent-CU2alc91.js} +8 -14
- package/dist/{AccountSetupRejected-Bp9MbaZF.js → AccountSetupRejected-CJ-_A3Ny.js} +2 -2
- package/dist/{BusinessTypeSelection-Bda3HjOy.js → BusinessTypeSelection-8O8S1NJQ.js} +3 -3
- package/dist/{CXEL7IU7-DIlmKme0.js → CXEL7IU7-BJwGAGi_.js} +2 -2
- package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-CbKLS3lw.js} +13 -8
- package/dist/{CustomerSupport-BBpiWDZu.js → CustomerSupport-DwHNm45d.js} +2 -2
- package/dist/{DebugModal-Chl6VeCw.js → DebugModal-Bl6alyPp.js} +8 -8
- package/dist/{DecisionMakers-91Uxeb4Z.js → DecisionMakers-D35kGGBp.js} +3 -3
- package/dist/{EmbedShell-BgnrqkKO.js → EmbedShell-uQMA3IsQ.js} +3 -3
- package/dist/{EventEmitter-MB52FRnR.js → EventEmitter-BCgWoSHk.js} +38 -30
- package/dist/{HASRA6WW-CYutWFzS.js → HASRA6WW-bymne0OX.js} +1 -1
- package/dist/{I3HPI4QX-h-J4eisw.js → I3HPI4QX-BjDbFXav.js} +2 -2
- package/dist/{Introduction-Cn5uh084.js → Introduction-C0NQbS7T.js} +2 -2
- package/dist/{Review-BITkfvbx.js → Review-dqxqat30.js} +4 -3
- package/dist/{SingpassSelection-BPrfSrSw.js → SingpassSelection-Dkxz3a-V.js} +1 -1
- package/dist/{TaxReportingDropin-DZLUs3Hb.js → TaxReportingDropin-E8B4As4p.js} +5 -5
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-DnQST_lN.js → core-PYXN6HpB.js} +72 -72
- package/dist/{css-ChtZI8YA.js → css-w3W1DNq3.js} +1 -1
- package/dist/individual.js +2 -2
- package/dist/{json-CY-QM445.js → json-BVkPD1GZ.js} +1 -1
- package/dist/{listToRecord-CogvyLiD.js → listToRecord-CBVflh7a.js} +1 -1
- package/dist/{plaintext-BzvCXlZZ.js → plaintext-Bgjkv8j9.js} +1 -1
- package/dist/terms-of-service.js +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
- package/dist/types/api/address/useSearchAddress.d.ts +1 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
- package/dist/types/api/check/useCheck.d.ts +2 -0
- package/dist/types/api/configurations/useScenarios.d.ts +1 -0
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
- package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -0
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -0
- package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +5 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/{yaml-CFgf8XoZ.js → yaml-Jyq-xpmw.js} +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b856c7cf-822a-4c31-8f8b-05a21766e17e", e._sentryDebugIdIdentifier = "sentry-dbid-b856c7cf-822a-4c31-8f8b-05a21766e17e");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useApiContext, b as useQuery,
|
|
11
|
+
import { a as useApiContext, b as useQuery, d as httpGet, E as Typography, i as useI18nContext, bN as useFormContext, U as Alert, b8 as Field, ba as RadioGroup, av as getFormProps, Q as Icon, aL as isEmpty, bw as Svg, G as Button, V as Card, W as StructuredList, Y as IconButton, H as isEmpty$1, f as useQueryClient, j as useAnalyticsContext, u as useLegalEntity, c as createLogger, K as Loader } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
|
-
import { B as useUpdateLegalEntity, O as useMultiForm, h as getRequiredForms, i as addValidityToForms, j as useFormComposer, U as FormContextProvider, F as FormWrapper } from "./CreateIndividualComponent-
|
|
13
|
+
import { B as useUpdateLegalEntity, O as useMultiForm, h as getRequiredForms, i as addValidityToForms, j as useFormComposer, U as FormContextProvider, F as FormWrapper } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
14
|
import { signal } from "@preact/signals";
|
|
15
|
-
import { s as sofStyles, T as TaskStatusIndicator, n as normalizedTaskStatusStore } from "./core-
|
|
15
|
+
import { s as sofStyles, T as TaskStatusIndicator, n as normalizedTaskStatusStore } from "./core-PYXN6HpB.js";
|
|
16
16
|
const getTaxClassification = async (legalEntityId, url) => {
|
|
17
17
|
return httpGet({
|
|
18
18
|
loadingContext: url,
|
|
@@ -28,7 +28,7 @@ const getTaxClassification = async (legalEntityId, url) => {
|
|
|
28
28
|
const useTaxClassification = (options) => {
|
|
29
29
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
30
30
|
return useQuery({
|
|
31
|
-
queryKey: ["taxClassification"
|
|
31
|
+
queryKey: ["taxClassification"],
|
|
32
32
|
queryFn: () => getTaxClassification(legalEntityId.value, baseUrl.value),
|
|
33
33
|
...options
|
|
34
34
|
});
|
package/dist/adyenConfig.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0aa88563-65c9-441e-a37e-62acfdecf5e6", e._sentryDebugIdIdentifier = "sentry-dbid-0aa88563-65c9-441e-a37e-62acfdecf5e6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as createLogger, u as useLegalEntity, a as useApiContext, b as useQuery, h as httpPost, d as
|
|
11
|
-
import { u as useTermsOfServiceAcceptanceInfos, a as useTermsOfServiceStatus, d as downloadFile, F as FormEndState, O as OutlinedIcon, C as ContractViewer, A as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-
|
|
12
|
-
import { g as getDocument, m as mapExistingFile, a as getPageName, c as createDocumentRequest, b as mapWith, d as documentApiUtils, u as useScenarioConfiguration, e as getPropsFromConfigurations, f as useUnifyLoadingStatus, h as getRequiredForms, i as addValidityToForms, j as useFormComposer, F as FormWrapper, k as augmentWithCountryConfigs, o as omitObscuredFieldsIfUnchanged, l as isValidationError, p as processValidationErrors, n as isIdDocumentUploadError, q as isBankStatementUploadError, r as isMaintenanceModeError, s as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, t as getFileExtention, S as SOLE_PROP_COUNTRIES, v as formatObject, w as composePerScenarioFormConfigurations, x as getProp, y as getFieldsWithExistingData, z as hasDataChanged, A as useCreateLegalEntity, B as useUpdateLegalEntity, D as trackNavigation, E as fieldsPerScenario, G as nomineeDecisionMakerRoleValidationRules, H as contactDetailsValidationRules, I as nameValidationRulesV4, J as nameValidationRules, K as adjustIdentificationData, L as useIdVerificationToken, M as useValidatePhoneNumberImperatively, N as useVerifyIdNumber, O as useMultiForm, P as useScenarios, Q as mandateIdVerificationForMotionCapture, R as mapApiDocumentToIndividualDocuments, T as useIdVerificationStartCheck, U as FormContextProvider, V as mapIndividualDocumentToApiDocument, W as mergeAttachments, X as onfidoDocumentTypeMapping, Y as IndividualDropin, Z as useSingpassMyInfoLogin, C as CreateIndividualComponent } from "./CreateIndividualComponent-
|
|
10
|
+
import { c as createLogger, u as useLegalEntity, a as useApiContext, b as useQuery, h as httpPost, d as httpGet, e as useMutation, f as useQueryClient, g as createFormRules, m as mapPayoutAccountSchemaToApiBankAccount, p as payoutComponentKeyMapping, k as keysOf, s as summaryItem, C as CountryCodes, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, o as useSettingsContext, q as getLegalEntityCountry, r as currencyByCountry, t as getLegalEntityNameBasedOnType, T as TaskTypes, v as useStateContext, w as getCapabilityProblems, x as isProviderWidgetInline, S as SettingNames, y as cloneObject, z as datasetUtilities, A as payoutSteps, L as LoaderWrapper, M as Modal, B as ModalHeader, D as ModalContent, E as Typography, F as ModalFooter, G as Button, P as PayoutDetails, H as isEmpty, I as useCoreContext, J as LegalEntityType, K as Loader, N as TaskStatus, O as Skeleton, Q as Icon, R as httpDelete, U as Alert, V as Card, W as StructuredList, X as Spacer, Y as IconButton, Z as Confirm, _ as entriesOf, $ as useDataset, a0 as datasetIdentifier, a1 as useLocalStorage, a2 as getLegalRepresentative, a3 as doesLegalEntityRequiresLegalRepresentative, a4 as ProviderButton, a5 as isPartOfTrustFromLegalEntity, a6 as hasSolePropInLegalEntity, a7 as hasOwnEntityAssociationOfType, a8 as isEmptyEntity, a9 as CompanyTypesValue, aa as EntityType, ab as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, ac as handleKeys, ad as noop, ae as CardGroup, af as useSetting, ag as useTasks, ah as useGetTaskStatus, ai as isPartOfUnincorporatedPartnership, aj as getOwnSignatories, ak as getOwnDecisionMakersLegalEntityIds, al as getOwnSolePropProblems, am as getOwnTrustProblems, an as getOwnUnincorporatedPartnershipProblems, ao as getCapabilities, ap as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES, aq as MemoizedDocumentUpload, ar as List, as as useGlobalData, at as getForms, au as BasicInformation, av as getFormProps, aw as CompanyStructure, ax as AdditionalInformation, ay as MemoizedConstitutionalDocument, az as FinancialInformation, aA as StateCodesUS, aB as objectsDeepEqual, aC as drop, aD as businessDetailsComponentsKeyMapping, aE as solePropBusinessDetailsKeyMapping, aF as operationalAddressIsSameIds, aG as COUNTRIES_USING_COMPANY_SEARCH, aH as FIELDS_NEEDED_FOR_COMPANY_SEARCH, aI as isUndefinedOrNull, aJ as solePropBusinessDetailsApiKeyMapping, aK as businessDetailsApiKeyMapping, aL as isEmpty$1, aM as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, aN as mapAddressLabels, aO as companyTypeMetadata, aP as filterOutUnwantedAssociationsIfRootLE, aQ as documentFormsIds, aR as resolveFieldMetadata, aS as defaultFieldMetadata, aT as inferCompanyRegistrationNumberType, aU as getCompanyRegistrationNumberOptions, aV as defaultFieldConfig, aW as defaultFieldMetadata$1, aX as countryToTaxInfoTypeMap, aY as defaultFieldConfig$1, aZ as getKeyForField, a_ as getOwnEntityAssociations, a$ as doArraysMatch, b0 as setIsBankAccountRequestedForOrganization, b1 as getAssociatedLeAnalyticsPayload, b2 as rules$2, b3 as solePropBusinessDetailsDocumentMapping, b4 as businessDetailsDocumentMapping, b5 as reverseMapping, b6 as eeaCountries, b7 as localizeDateString, b8 as Field, b9 as Select, ba as RadioGroup, bb as Link, bc as InputText, bd as InputNumber, be as InputDate, bf as Currency, bg as CURRENCY_FIELD, bh as InputCurrency, bi as useForm, bj as useGlobalDataSlice, bk as ErrorPanel, bl as createFormUtils, bm as getAddressSchemaForCountry, bn as COUNTRIES_WITH_STATES_DATASET, bo as Address, bp as getAddressSchemaLabelsByCountry, bq as Currencies, br as InputGroup, bs as TextArea, bt as CountryField, bu as useId, bv as KEYBOARD_KEYS, bw as Svg, bx as Dropzone, by as useLegalEntities, bz as addressValidators, bA as isTruthyValidator, bB as getSSNType, bC as defaultFieldMetadata$2, bD as defaultFieldConfig$2, bE as getAgeToday, bF as euCountries, bG as DecisionMakerType, bH as allowedCountriesForNominee, bI as getLocalizedIdDocumentTypeOptions, bJ as Scenarios, bK as licenseCardNumberDefaultMetadata, bL as licenseCardNumberDefaultConfig, bM as mergeFieldMetadataIntoProps, bN as useFormContext, bO as getFieldProps, bP as idNumberFields, bQ as IdentityNumber, bR as additionallIdNumberOptions, bS as MaskedInput, bT as formatDateObj, bU as DriversLicense, bV as addressFields, bW as getDefaultTaxIdNumberType, bX as FormHeader, bY as IndividualIdNumberTypeSelector, bZ as TaxInformationField, b_ as PatriotActDisclosure, b$ as nameFields, c0 as decisionMakerRoleFields, c1 as nomineeFields, c2 as contactDetailFields, c3 as ContextGuidance, c4 as TrustedFieldsProvider, c5 as DecisionMakerRole, c6 as NomineeDecisionMakerRole, c7 as Name, c8 as ContactDetails, c9 as RadioWithLabel, ca as pick, cb as IdVerification, cc as showIndividualMotionCapture, cd as IdDocumentManualUpload, ce as idDocumentUploadFields, cf as useFormRouterContext, cg as setShowIndividualMotionCapture, ch as shouldShowMotionCapture, ci as hasMotionCaptureScenario, cj as MemoizedProofOfRelationship, ck as MemoizedProofOfResidencyUpload, cl as useProviderStatus, cm as getAsyncIdNumberValidationRule, cn as getAsyncPhoneValidationRules, co as setHasMotionCaptureScenario, cp as getAllowedDecisionMakerRoles, cq as hasNomineesChanged, cr as attachNomineeToRole, cs as TrustMemberTypes, ct as useGlobalStore, cu as defaultFieldMetadata$3, cv as defaultFieldConfig$3, cw as MultiSelectList, cx as makeSelectItemForRole, cy as RadioGroupCard, cz as COUNTRY_FIELD, cA as LegalCompanyNameField, cB as LEGAL_COMPANY_NAME_FIELD, cC as getRoleName, cD as summaryStep, cE as FormNavigation, cF as Summary, cG as ActionBar, cH as updateTaxInformation, cI as TrustTypes, cJ as trustComponentsKeyMapping, cK as trustApiKeyMapping, cL as trustDocumentMapping, cM as trustForms, cN as Trust, cO as trustTypeOptions, cP as trustConstitutionalDocumentFormId, cQ as UnincorporatedPartnershipMemberTypes, cR as getDecisionMakerDescriptionMap, cS as TRUST_DEFAULT_DESCRIPTIONS_MAP, cT as getRoleTagVariant, cU as DEFAULT_TRUST_MEMBER_REQUIREMENTS, cV as deleteUnincorporatedPartnershipMember, cW as mapEntityAssociationsToUnincorporatedPartnershipMembers, cX as hasAllCapabilitiesResolved, cY as hasRejectedCapabilities, cZ as getPayoutAccountHolderName, c_ as getOwnDecisionMakers, c$ as MaybeModal, d0 as Checkbox, d1 as listify, d2 as uuidv4, d3 as EventEmitter, d4 as SettingsProvider, d5 as ExperimentsContextProvider, d6 as ApiProvider, d7 as QueryClientProvider, d8 as StoreProvider, d9 as AnalyticsProvider, da as CoreProvider, db as I18nProvider, dc as DebugListener, dd as ToastContextProvider, de as StateProvider, df as ReactQueryDevtools2, dg as FALLBACK_LOCALE, dh as setSdkToken, di as setSdkTokenHandler } from "./EventEmitter-BCgWoSHk.js";
|
|
11
|
+
import { u as useTermsOfServiceAcceptanceInfos, a as useTermsOfServiceStatus, d as downloadFile, F as FormEndState, O as OutlinedIcon, C as ContractViewer, A as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-CU2alc91.js";
|
|
12
|
+
import { g as getDocument, m as mapExistingFile, a as getPageName, c as createDocumentRequest, b as mapWith, d as documentApiUtils, u as useScenarioConfiguration, e as getPropsFromConfigurations, f as useUnifyLoadingStatus, h as getRequiredForms, i as addValidityToForms, j as useFormComposer, F as FormWrapper, k as augmentWithCountryConfigs, o as omitObscuredFieldsIfUnchanged, l as isValidationError, p as processValidationErrors, n as isIdDocumentUploadError, q as isBankStatementUploadError, r as isMaintenanceModeError, s as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, t as getFileExtention, S as SOLE_PROP_COUNTRIES, v as formatObject, w as composePerScenarioFormConfigurations, x as getProp, y as getFieldsWithExistingData, z as hasDataChanged, A as useCreateLegalEntity, B as useUpdateLegalEntity, D as trackNavigation, E as fieldsPerScenario, G as nomineeDecisionMakerRoleValidationRules, H as contactDetailsValidationRules, I as nameValidationRulesV4, J as nameValidationRules, K as adjustIdentificationData, L as useIdVerificationToken, M as useValidatePhoneNumberImperatively, N as useVerifyIdNumber, O as useMultiForm, P as useScenarios, Q as mandateIdVerificationForMotionCapture, R as mapApiDocumentToIndividualDocuments, T as useIdVerificationStartCheck, U as FormContextProvider, V as mapIndividualDocumentToApiDocument, W as mergeAttachments, X as onfidoDocumentTypeMapping, Y as IndividualDropin, Z as useSingpassMyInfoLogin, C as CreateIndividualComponent } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
14
14
|
import { useMemo, useState, useEffect, useCallback, useRef } from "preact/hooks";
|
|
15
15
|
import cx from "classnames";
|
|
16
|
-
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-
|
|
16
|
+
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CBVflh7a.js";
|
|
17
17
|
import { lazy, Suspense } from "preact/compat";
|
|
18
18
|
import { signal } from "@preact/signals";
|
|
19
19
|
import isURL from "validator/es/lib/isURL.js";
|
|
@@ -56,11 +56,37 @@ const getCheck = async (legalEntityId, url, data) => {
|
|
|
56
56
|
const useCheck = (data, options) => {
|
|
57
57
|
const { legalEntityId, baseUrl: url } = useApiContext();
|
|
58
58
|
return useQuery({
|
|
59
|
-
queryKey: ["checkAsAService",
|
|
59
|
+
queryKey: ["checkAsAService", data],
|
|
60
60
|
queryFn: () => getCheck(legalEntityId.value, url.value, data),
|
|
61
61
|
...options
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
|
+
const getBankVerificationProviders = async (legalEntityId, loadingContext, queryParams) => {
|
|
65
|
+
const { country, locale, configId } = queryParams;
|
|
66
|
+
const providerParams = new URLSearchParams({
|
|
67
|
+
country,
|
|
68
|
+
locale,
|
|
69
|
+
...configId && { configId }
|
|
70
|
+
});
|
|
71
|
+
return httpGet({
|
|
72
|
+
loadingContext,
|
|
73
|
+
errorLevel: "warn",
|
|
74
|
+
errorMessage: `Failed to fetch bank verification providers.`,
|
|
75
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${providerParams}`,
|
|
76
|
+
authentication: "jwt",
|
|
77
|
+
headers: {
|
|
78
|
+
"Content-Type": "application/json"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const useBankVerificationProviders = (queryParams, options) => {
|
|
83
|
+
const { legalEntityId, baseUrl } = useApiContext();
|
|
84
|
+
return useQuery({
|
|
85
|
+
queryKey: ["bankVerificationProviders", queryParams],
|
|
86
|
+
queryFn: () => getBankVerificationProviders(legalEntityId.value, baseUrl.value, queryParams),
|
|
87
|
+
...options
|
|
88
|
+
});
|
|
89
|
+
};
|
|
64
90
|
const createTransferInstrument = async (rootLegalEntityId, url, transferInstrument) => {
|
|
65
91
|
return httpPost(
|
|
66
92
|
{
|
|
@@ -98,32 +124,6 @@ const useCreateTrustedTransferInstrument = (options) => {
|
|
|
98
124
|
...options
|
|
99
125
|
});
|
|
100
126
|
};
|
|
101
|
-
const getBankVerificationProviders = async (legalEntityId, loadingContext, queryParams) => {
|
|
102
|
-
const { country, locale, configId } = queryParams;
|
|
103
|
-
const providerParams = new URLSearchParams({
|
|
104
|
-
country,
|
|
105
|
-
locale,
|
|
106
|
-
...configId && { configId }
|
|
107
|
-
});
|
|
108
|
-
return httpGet({
|
|
109
|
-
loadingContext,
|
|
110
|
-
errorLevel: "warn",
|
|
111
|
-
errorMessage: `Failed to fetch bank verification providers.`,
|
|
112
|
-
path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${providerParams}`,
|
|
113
|
-
authentication: "jwt",
|
|
114
|
-
headers: {
|
|
115
|
-
"Content-Type": "application/json"
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
const useGetBankVerificationProviders = (queryParams, options) => {
|
|
120
|
-
const { legalEntityId, baseUrl } = useApiContext();
|
|
121
|
-
return useQuery({
|
|
122
|
-
queryKey: ["getBankVerificationProviders", legalEntityId.value, baseUrl.value, queryParams],
|
|
123
|
-
queryFn: () => getBankVerificationProviders(legalEntityId.value, baseUrl.value, queryParams),
|
|
124
|
-
...options
|
|
125
|
-
});
|
|
126
|
-
};
|
|
127
127
|
const getTransferInstrument = async (legalEntityId, loadingContext, transferInstrumentId) => {
|
|
128
128
|
return httpGet({
|
|
129
129
|
loadingContext,
|
|
@@ -136,10 +136,10 @@ const getTransferInstrument = async (legalEntityId, loadingContext, transferInst
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const useTransferInstrument = (transferInstrumentId = "", options) => {
|
|
140
140
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
141
141
|
return useQuery({
|
|
142
|
-
queryKey: ["
|
|
142
|
+
queryKey: ["transferInstrument", transferInstrumentId],
|
|
143
143
|
queryFn: () => getTransferInstrument(legalEntityId.value, baseUrl.value, transferInstrumentId),
|
|
144
144
|
enabled: !!transferInstrumentId,
|
|
145
145
|
...options
|
|
@@ -171,12 +171,10 @@ const useUpdateTransferInstrument = (options) => {
|
|
|
171
171
|
transferInstrumentId
|
|
172
172
|
),
|
|
173
173
|
onSuccess: (transferInstrument) => {
|
|
174
|
-
queryClient.setQueryData(
|
|
175
|
-
["getTransferInstrument", transferInstrument.id],
|
|
176
|
-
transferInstrument
|
|
177
|
-
);
|
|
174
|
+
queryClient.setQueryData(["transferInstrument", transferInstrument.id], transferInstrument);
|
|
178
175
|
queryClient.invalidateQueries({
|
|
179
|
-
|
|
176
|
+
// Invalidate transfer instruments on root LE
|
|
177
|
+
queryKey: ["transferInstruments"]
|
|
180
178
|
});
|
|
181
179
|
},
|
|
182
180
|
...options
|
|
@@ -457,7 +455,7 @@ function PayoutDetailsDropin({
|
|
|
457
455
|
data: transferInstrument,
|
|
458
456
|
refetch: refetchTransferInstrument,
|
|
459
457
|
isLoading: isTransferInstrumentLoading
|
|
460
|
-
} =
|
|
458
|
+
} = useTransferInstrument(currentTransferInstrumentId);
|
|
461
459
|
const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
|
|
462
460
|
const { mutateAsync: handleCreateTrustedTransferInstrument } = useCreateTrustedTransferInstrument();
|
|
463
461
|
const { i18n } = useI18nContext();
|
|
@@ -543,7 +541,7 @@ function PayoutDetailsDropin({
|
|
|
543
541
|
data: providers,
|
|
544
542
|
refetch: refetchBankVerificationProviders,
|
|
545
543
|
status: bankVendorsLoadingStatus
|
|
546
|
-
} =
|
|
544
|
+
} = useBankVerificationProviders(
|
|
547
545
|
{
|
|
548
546
|
country: bankAccountCountry,
|
|
549
547
|
configId: openBankingPartnerConfigId,
|
|
@@ -1041,7 +1039,7 @@ const getOnboardingStatus = async (legalEntityId, url) => {
|
|
|
1041
1039
|
const useOnboardingStatus = (options) => {
|
|
1042
1040
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1043
1041
|
return useQuery({
|
|
1044
|
-
queryKey: ["onboardingStatus"
|
|
1042
|
+
queryKey: ["onboardingStatus"],
|
|
1045
1043
|
queryFn: () => getOnboardingStatus(legalEntityId.value, baseUrl.value),
|
|
1046
1044
|
...options
|
|
1047
1045
|
});
|
|
@@ -1177,7 +1175,7 @@ const getPciStatus = async (legalEntityId, url, data) => {
|
|
|
1177
1175
|
const usePciStatus = (data, options) => {
|
|
1178
1176
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1179
1177
|
return useQuery({
|
|
1180
|
-
queryKey: ["pciStatus",
|
|
1178
|
+
queryKey: ["pciStatus", data],
|
|
1181
1179
|
queryFn: () => getPciStatus(legalEntityId.value, baseUrl.value, data),
|
|
1182
1180
|
...options
|
|
1183
1181
|
});
|
|
@@ -1261,8 +1259,8 @@ const useDeleteTransferInstrument = (options) => {
|
|
|
1261
1259
|
return useMutation({
|
|
1262
1260
|
mutationFn: (transferInstrumentId) => deleteTransferInstrument(legalEntityId.value, baseUrl.value, transferInstrumentId),
|
|
1263
1261
|
onSuccess: () => {
|
|
1264
|
-
queryClient.invalidateQueries({ queryKey: ["transferInstruments"
|
|
1265
|
-
queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntityId] });
|
|
1262
|
+
queryClient.invalidateQueries({ queryKey: ["transferInstruments"] });
|
|
1263
|
+
queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntityId.value] });
|
|
1266
1264
|
},
|
|
1267
1265
|
...options
|
|
1268
1266
|
});
|
|
@@ -1279,10 +1277,10 @@ const getTransferInstruments = async (legalEntityId, loadingContext) => {
|
|
|
1279
1277
|
}
|
|
1280
1278
|
});
|
|
1281
1279
|
};
|
|
1282
|
-
const
|
|
1280
|
+
const useTransferInstruments = (options) => {
|
|
1283
1281
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1284
1282
|
return useQuery({
|
|
1285
|
-
queryKey: ["transferInstruments"
|
|
1283
|
+
queryKey: ["transferInstruments"],
|
|
1286
1284
|
queryFn: () => getTransferInstruments(legalEntityId.value, baseUrl.value),
|
|
1287
1285
|
...options
|
|
1288
1286
|
});
|
|
@@ -1454,7 +1452,7 @@ function ManageTransferInstrumentOverviewItem({
|
|
|
1454
1452
|
const { status, transferInstrument: transferInstrumentRef } = transferInstrumentReference;
|
|
1455
1453
|
const [fetchedTi, setFetchedTi] = useState(false);
|
|
1456
1454
|
const [modalOpen, setModalOpen] = useState(false);
|
|
1457
|
-
const { data: transferInstrument } =
|
|
1455
|
+
const { data: transferInstrument } = useTransferInstrument(transferInstrumentRef.id, {
|
|
1458
1456
|
enabled: fetchedTi
|
|
1459
1457
|
});
|
|
1460
1458
|
const isDetailsRequired = status === "DETAILS_REQUIRED";
|
|
@@ -1549,7 +1547,7 @@ function ManageTransferInstrumentComponent({
|
|
|
1549
1547
|
data: transferInstrumentReferences,
|
|
1550
1548
|
isLoading,
|
|
1551
1549
|
isError
|
|
1552
|
-
} =
|
|
1550
|
+
} = useTransferInstruments({
|
|
1553
1551
|
refetchOnMount: "always",
|
|
1554
1552
|
refetchInterval: (query) => {
|
|
1555
1553
|
var _a;
|
|
@@ -1611,7 +1609,7 @@ const getTaskTypes = async (id, url) => {
|
|
|
1611
1609
|
const useTaskTypes = (options) => {
|
|
1612
1610
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1613
1611
|
return useQuery({
|
|
1614
|
-
queryKey: ["
|
|
1612
|
+
queryKey: ["taskTypes"],
|
|
1615
1613
|
queryFn: () => getTaskTypes(legalEntityId.value, baseUrl.value),
|
|
1616
1614
|
...options
|
|
1617
1615
|
});
|
|
@@ -1759,7 +1757,7 @@ const getPciQuestionnaireList = async (legalEntityId, url) => {
|
|
|
1759
1757
|
const usePciQuestionnaireList = (options) => {
|
|
1760
1758
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1761
1759
|
return useQuery({
|
|
1762
|
-
queryKey: ["pciQuestionnaireList"
|
|
1760
|
+
queryKey: ["pciQuestionnaireList"],
|
|
1763
1761
|
queryFn: () => getPciQuestionnaireList(legalEntityId.value, baseUrl.value),
|
|
1764
1762
|
...options
|
|
1765
1763
|
});
|
|
@@ -1779,7 +1777,7 @@ const getTaskStatus = async (legalEntityId, url) => {
|
|
|
1779
1777
|
const useTaskStatus = (options) => {
|
|
1780
1778
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
1781
1779
|
return useQuery({
|
|
1782
|
-
queryKey: ["taskStatus"
|
|
1780
|
+
queryKey: ["taskStatus"],
|
|
1783
1781
|
queryFn: () => getTaskStatus(legalEntityId.value, baseUrl.value),
|
|
1784
1782
|
...options
|
|
1785
1783
|
});
|
|
@@ -5642,7 +5640,7 @@ const getLegalForms = async (countryCode, loadingContext) => {
|
|
|
5642
5640
|
const useLegalForms = (countryCode, options) => {
|
|
5643
5641
|
const { baseUrl } = useApiContext();
|
|
5644
5642
|
return useQuery({
|
|
5645
|
-
queryKey: ["legalForms",
|
|
5643
|
+
queryKey: ["legalForms", countryCode],
|
|
5646
5644
|
queryFn: () => getLegalForms(countryCode, baseUrl.value),
|
|
5647
5645
|
...options
|
|
5648
5646
|
});
|
|
@@ -5715,7 +5713,7 @@ const getNaceCodes = async (loadingContext) => {
|
|
|
5715
5713
|
const useNaceCodes = (options) => {
|
|
5716
5714
|
const { baseUrl } = useApiContext();
|
|
5717
5715
|
return useQuery({
|
|
5718
|
-
queryKey: ["naceCodes"
|
|
5716
|
+
queryKey: ["naceCodes"],
|
|
5719
5717
|
queryFn: () => getNaceCodes(baseUrl.value),
|
|
5720
5718
|
...options
|
|
5721
5719
|
});
|
|
@@ -7121,7 +7119,7 @@ function HighExposureDropin(props) {
|
|
|
7121
7119
|
queryKey: ["taskStatus"]
|
|
7122
7120
|
});
|
|
7123
7121
|
await queryClient.invalidateQueries({
|
|
7124
|
-
queryKey: ["legalEntity"]
|
|
7122
|
+
queryKey: ["legalEntity", rootLegalEntity.id]
|
|
7125
7123
|
});
|
|
7126
7124
|
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
7127
7125
|
setShowEndState(true);
|
|
@@ -7288,7 +7286,7 @@ const getBusinessLines = async (legalEntityId, url) => {
|
|
|
7288
7286
|
const useBusinessLines = (options) => {
|
|
7289
7287
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
7290
7288
|
return useQuery({
|
|
7291
|
-
queryKey: ["businessLines"
|
|
7289
|
+
queryKey: ["businessLines"],
|
|
7292
7290
|
queryFn: () => getBusinessLines(legalEntityId.value, baseUrl.value),
|
|
7293
7291
|
...options
|
|
7294
7292
|
});
|
|
@@ -7322,7 +7320,7 @@ const useUpdateSourceOfFunds = (options) => {
|
|
|
7322
7320
|
queryKey: ["taskStatus"]
|
|
7323
7321
|
});
|
|
7324
7322
|
await queryClient.invalidateQueries({
|
|
7325
|
-
queryKey: ["legalEntity"]
|
|
7323
|
+
queryKey: ["legalEntity", legalEntityId.value]
|
|
7326
7324
|
});
|
|
7327
7325
|
await queryClient.invalidateQueries({
|
|
7328
7326
|
queryKey: ["taxClassification"]
|
|
@@ -7375,7 +7373,7 @@ const getSourceOfFundsTypes = async (loadingContext) => {
|
|
|
7375
7373
|
const useSourceOfFundsTypes = (options) => {
|
|
7376
7374
|
const { baseUrl } = useApiContext();
|
|
7377
7375
|
return useQuery({
|
|
7378
|
-
queryKey: ["sourceOfFundsTypes"
|
|
7376
|
+
queryKey: ["sourceOfFundsTypes"],
|
|
7379
7377
|
queryFn: () => getSourceOfFundsTypes(baseUrl.value),
|
|
7380
7378
|
...options
|
|
7381
7379
|
});
|
|
@@ -10169,7 +10167,7 @@ const SourceOfFundsUpload = ({
|
|
|
10169
10167
|
const handleModalClose = async () => {
|
|
10170
10168
|
setShowUploadModal(false);
|
|
10171
10169
|
await queryClient.invalidateQueries({
|
|
10172
|
-
queryKey: ["legalEntity"]
|
|
10170
|
+
queryKey: ["legalEntity", legalEntity.id]
|
|
10173
10171
|
});
|
|
10174
10172
|
};
|
|
10175
10173
|
const openUploadModal = () => {
|
|
@@ -10191,7 +10189,7 @@ const SourceOfFundsUpload = ({
|
|
|
10191
10189
|
try {
|
|
10192
10190
|
await documentUtils.deleteDocument(documentId, legalEntity.id);
|
|
10193
10191
|
await queryClient.invalidateQueries({
|
|
10194
|
-
queryKey: ["legalEntity"]
|
|
10192
|
+
queryKey: ["legalEntity", legalEntity.id]
|
|
10195
10193
|
});
|
|
10196
10194
|
showToast({
|
|
10197
10195
|
label: i18n.get("documentDeletedSuccessfully"),
|
|
@@ -16431,32 +16429,32 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
16431
16429
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
16432
16430
|
};
|
|
16433
16431
|
const Introduction = lazy(
|
|
16434
|
-
async () => (await import("./Introduction-
|
|
16432
|
+
async () => (await import("./Introduction-C0NQbS7T.js")).Introduction
|
|
16435
16433
|
);
|
|
16436
16434
|
const BusinessTypeSelection = lazy(
|
|
16437
|
-
async () => (await import("./BusinessTypeSelection-
|
|
16435
|
+
async () => (await import("./BusinessTypeSelection-8O8S1NJQ.js")).BusinessTypeSelection
|
|
16438
16436
|
);
|
|
16439
16437
|
const SingpassSelection = lazy(
|
|
16440
|
-
async () => (await import("./SingpassSelection-
|
|
16438
|
+
async () => (await import("./SingpassSelection-Dkxz3a-V.js")).SingpassSelection
|
|
16441
16439
|
);
|
|
16442
16440
|
const AccountSetupRejected = lazy(
|
|
16443
|
-
async () => (await import("./AccountSetupRejected-
|
|
16441
|
+
async () => (await import("./AccountSetupRejected-CJ-_A3Ny.js")).AccountSetupRejected
|
|
16444
16442
|
);
|
|
16445
16443
|
const DecisionMakers = lazy(
|
|
16446
|
-
async () => (await import("./DecisionMakers-
|
|
16444
|
+
async () => (await import("./DecisionMakers-D35kGGBp.js")).DecisionMakers
|
|
16447
16445
|
);
|
|
16448
16446
|
const CustomerSupport = lazy(
|
|
16449
|
-
async () => (await import("./CustomerSupport-
|
|
16447
|
+
async () => (await import("./CustomerSupport-DwHNm45d.js")).CustomerSupport
|
|
16450
16448
|
);
|
|
16451
|
-
const Review = lazy(async () => (await import("./Review-
|
|
16449
|
+
const Review = lazy(async () => (await import("./Review-dqxqat30.js")).Review);
|
|
16452
16450
|
const SignPCIComponent$2 = lazy(
|
|
16453
16451
|
async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
|
|
16454
16452
|
);
|
|
16455
16453
|
const AcceptTermsOfService = lazy(
|
|
16456
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
16454
|
+
async () => (await import("./AcceptTermsOfServiceComponent-CU2alc91.js").then((n) => n.b)).AcceptTermsOfServiceComponent
|
|
16457
16455
|
);
|
|
16458
16456
|
const TaxReportingDropin = lazy(
|
|
16459
|
-
async () => (await import("./TaxReportingDropin-
|
|
16457
|
+
async () => (await import("./TaxReportingDropin-E8B4As4p.js")).TaxReportingDropin
|
|
16460
16458
|
);
|
|
16461
16459
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
16462
16460
|
const logger$1 = createLogger();
|
|
@@ -17193,7 +17191,7 @@ const getPciTemplate = async (legalEntityId, url, data) => {
|
|
|
17193
17191
|
const usePciTemplate = (data, options) => {
|
|
17194
17192
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
17195
17193
|
return useQuery({
|
|
17196
|
-
queryKey: ["pciTemplate", data
|
|
17194
|
+
queryKey: ["pciTemplate", data],
|
|
17197
17195
|
queryFn: () => getPciTemplate(legalEntityId.value, baseUrl.value, data),
|
|
17198
17196
|
...options
|
|
17199
17197
|
});
|
|
@@ -17422,7 +17420,9 @@ function SignPCIComponent({
|
|
|
17422
17420
|
queryKey: ["legalEntity", legalEntityId]
|
|
17423
17421
|
});
|
|
17424
17422
|
queryClient.invalidateQueries({ queryKey: ["pciQuestionnaireList"] });
|
|
17425
|
-
queryClient.invalidateQueries({
|
|
17423
|
+
queryClient.invalidateQueries({
|
|
17424
|
+
queryKey: ["pciStatus"]
|
|
17425
|
+
});
|
|
17426
17426
|
}
|
|
17427
17427
|
});
|
|
17428
17428
|
if (modalView) {
|
|
@@ -17938,7 +17938,7 @@ class UIElement extends BaseElement {
|
|
|
17938
17938
|
baseUrl: this.props.loadingContext,
|
|
17939
17939
|
children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
17940
17940
|
/* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
17941
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.
|
|
17941
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.1" }),
|
|
17942
17942
|
/* @__PURE__ */ jsx(
|
|
17943
17943
|
AnalyticsProvider,
|
|
17944
17944
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-Bl6alyPp.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
|
package/dist/individual.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { render } from "preact";
|
|
12
|
-
import { i as injectCss, E as EmbedShell } from "./EmbedShell-
|
|
13
|
-
import { C as CreateIndividualComponent } from "./CreateIndividualComponent-
|
|
12
|
+
import { i as injectCss, E as EmbedShell } from "./EmbedShell-uQMA3IsQ.js";
|
|
13
|
+
import { C as CreateIndividualComponent } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
14
|
import { e as environmentMap } from "./utils-Do7EwrWz.js";
|
|
15
15
|
class AdyenIndividual extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-Bl6alyPp.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { K as Loader, Q as Icon, i as useI18nContext, N as TaskStatus, bv as KEYBOARD_KEYS } from "./EventEmitter-
|
|
12
|
+
import { K as Loader, Q as Icon, i as useI18nContext, N as TaskStatus, bv as KEYBOARD_KEYS } from "./EventEmitter-BCgWoSHk.js";
|
|
13
13
|
const tag = "adyen-kyc-tag";
|
|
14
14
|
const tagGrey = "adyen-kyc-tag-grey";
|
|
15
15
|
const tagBlue = "adyen-kyc-tag-blue";
|
package/dist/terms-of-service.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { render } from "preact";
|
|
12
|
-
import { i as injectCss, E as EmbedShell } from "./EmbedShell-
|
|
13
|
-
import { A as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-
|
|
12
|
+
import { i as injectCss, E as EmbedShell } from "./EmbedShell-uQMA3IsQ.js";
|
|
13
|
+
import { A as AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-CU2alc91.js";
|
|
14
14
|
import { e as environmentMap } from "./utils-Do7EwrWz.js";
|
|
15
15
|
class AdyenTermsOfService extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
@@ -2,6 +2,7 @@ import type { RetrieveAddressSuccessResponse } from '../address/useRetrieveAddre
|
|
|
2
2
|
import type { CleanseAPIRequestPayload } from '../../core/models/api/contracts';
|
|
3
3
|
import type { AddressSchema } from '../../components/Shared/forms/Address/types';
|
|
4
4
|
import type { QueryOptions } from '../types';
|
|
5
|
+
export type QueryKeyAddressCleanse = ['addressCleanse', CleanseAPIRequestPayload];
|
|
5
6
|
export declare const useAddressCleanse: (data: CleanseAPIRequestPayload, options?: QueryOptions<RetrieveAddressSuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
|
|
6
7
|
city?: string;
|
|
7
8
|
country?: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { QueryOptions } from '../types';
|
|
2
2
|
import type { components } from './address.contract';
|
|
3
3
|
export type RetrieveAddressSuccessResponse = components['schemas']['AddressComponentRetrieveResponse'];
|
|
4
|
+
/**
|
|
5
|
+
* Variables:
|
|
6
|
+
* * `addressId`
|
|
7
|
+
*/
|
|
8
|
+
export type QueryKeyRetrieveAddress = ['retrieveAddress', string];
|
|
4
9
|
/**
|
|
5
10
|
* @param addressId
|
|
6
11
|
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
|
|
@@ -12,6 +12,7 @@ export interface SearchAddressResult {
|
|
|
12
12
|
export type SearchAddressSuccessResponse = Omit<components['schemas']['AddressComponentSearchResponse'], 'results'> & {
|
|
13
13
|
results: SearchAddressResult[];
|
|
14
14
|
};
|
|
15
|
+
export type QueryKeySearchAddress = ['searchAddress', SearchAddressRequest];
|
|
15
16
|
export declare const searchAddress: (legalEntityId: string, url: string, data: SearchAddressRequest) => Promise<SearchAddressSuccessResponse>;
|
|
16
17
|
/**
|
|
17
18
|
* @param data
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BusinessLinesType } from '../../core/models/api/source-of-funds';
|
|
2
2
|
import type { QueryOptions } from '../types';
|
|
3
|
+
export type QueryKeyBusinessLines = ['businessLines'];
|
|
3
4
|
/**
|
|
4
5
|
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
|
|
5
6
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { AccountIdentification } from '../../core/models/api/accountIdentification';
|
|
1
2
|
import type { CAASRequest } from '../../core/models/api/check';
|
|
2
3
|
import type { QueryOptions } from '../types';
|
|
3
4
|
import type { components } from './check.contract';
|
|
4
5
|
type SuccessResponse = components['schemas']['CheckResponseDto'];
|
|
6
|
+
export type QueryKeyCheckAsAService = ['checkAsAService', AccountIdentification];
|
|
5
7
|
export declare const getCheck: (legalEntityId: string, url: string, data: CAASRequest) => Promise<SuccessResponse>;
|
|
6
8
|
/**
|
|
7
9
|
*
|
|
@@ -11,6 +11,7 @@ export interface SuccessResponse {
|
|
|
11
11
|
soleProprietorship?: Scenario[];
|
|
12
12
|
unincorporatedPartnership?: Scenario[];
|
|
13
13
|
}
|
|
14
|
+
export type QueryKeyScenarios = ['scenarios', LeType, CountryCode];
|
|
14
15
|
/**
|
|
15
16
|
* Based on country and capabilities the forms will be different. Since different combinations
|
|
16
17
|
* of country+capabilities often have the same result, we group them in scenarios.
|
|
@@ -5,5 +5,6 @@ type SuccessResponse = components['schemas']['CountriesResponse'];
|
|
|
5
5
|
interface CorrectSuccessReponse extends SuccessResponse {
|
|
6
6
|
countries: CountryCode[];
|
|
7
7
|
}
|
|
8
|
+
export type QueryKeySupportedCountries = ['supportedCountries'];
|
|
8
9
|
export declare const useSupportedCountries: (options?: QueryOptions<CorrectSuccessReponse>) => import("@tanstack/react-query").UseQueryResult<CorrectSuccessReponse, Error>;
|
|
9
10
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { QueryOptions } from '../types';
|
|
2
2
|
import type { components } from './configurations.contract';
|
|
3
3
|
type SuccessResponse = components['schemas']['TaskType'][];
|
|
4
|
+
export type QueryKeyTaskTypes = ['taskTypes'];
|
|
4
5
|
export declare const useTaskTypes: (options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<SuccessResponse, Error>;
|
|
5
6
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { QueryOptions } from '../types';
|
|
2
2
|
import type { components } from './configurations.contract';
|
|
3
3
|
type SuccessResponse = components['schemas']['VersionResponse'];
|
|
4
|
+
export type QueryKeyVersionConfiguration = ['versionConfiguration'];
|
|
4
5
|
/**
|
|
5
|
-
* Retrieves
|
|
6
|
+
* Retrieves information about the version and features/experiments
|
|
6
7
|
* linked to the legalEntityId
|
|
7
|
-
*
|
|
8
|
-
* @param id legalEntityId
|
|
9
|
-
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
|
|
10
8
|
*/
|
|
11
9
|
export declare const getVersionConfiguration: (legalEntityId: string, url: string) => Promise<SuccessResponse>;
|
|
12
10
|
export declare const useVersionConfiguration: (options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -6,4 +6,5 @@ export type DataSetsWithId = Omit<DataSetSuccessResponse, 'id' | 'name'> & {
|
|
|
6
6
|
id: NonNullable<components['schemas']['LocalizedDataSet']['id']>;
|
|
7
7
|
name: NonNullable<components['schemas']['LocalizedDataSet']['name']>;
|
|
8
8
|
};
|
|
9
|
+
export type QueryKeyLegalForms = ['legalForms', CountryCode];
|
|
9
10
|
export declare const useLegalForms: (countryCode: CountryCode, options?: QueryOptions<DataSetsWithId[]>) => import("@tanstack/react-query").UseQueryResult<DataSetsWithId[], Error>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { DataSetsWithId } from '../datasets/useLegalForms';
|
|
2
2
|
import type { QueryOptions } from '../types';
|
|
3
|
+
export type QueryKeyNaceCodes = ['naceCodes'];
|
|
3
4
|
export declare const useNaceCodes: (options?: QueryOptions<DataSetsWithId[]>) => import("@tanstack/react-query").UseQueryResult<DataSetsWithId[], Error>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { DataSetsWithId } from '../datasets/useLegalForms';
|
|
2
2
|
import type { QueryOptions } from '../types';
|
|
3
|
+
export type QueryKeySourceOfFundsTypes = ['sourceOfFundsTypes'];
|
|
3
4
|
export declare const useSourceOfFundsTypes: (options?: QueryOptions<DataSetsWithId[]>) => import("@tanstack/react-query").UseQueryResult<DataSetsWithId[], Error>;
|