@adyen/kyc-components 3.68.0 → 3.68.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-yutCVhdr.js → AcceptTermsOfServiceComponent-SQljDrXa.js} +8 -22
  2. package/dist/{AccountSetupRejected-Bp9MbaZF.js → AccountSetupRejected-ycQ81Di0.js} +3 -3
  3. package/dist/{BusinessTypeSelection-Bda3HjOy.js → BusinessTypeSelection-DvvmJzYv.js} +4 -4
  4. package/dist/{CXEL7IU7-DIlmKme0.js → CXEL7IU7-CGVwBOx0.js} +3 -3
  5. package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-rathlqPP.js} +13 -12
  6. package/dist/{CustomerSupport-BBpiWDZu.js → CustomerSupport-D_JLR2FT.js} +3 -3
  7. package/dist/{DebugModal-Chl6VeCw.js → DebugModal-P05awsgJ.js} +8 -8
  8. package/dist/{DecisionMakers-91Uxeb4Z.js → DecisionMakers-DUC8rE56.js} +4 -4
  9. package/dist/{EmbedShell-BgnrqkKO.js → EmbedShell-H979Qm-6.js} +3 -3
  10. package/dist/{EventEmitter-MB52FRnR.js → EventEmitter-5jszKCaJ.js} +418 -359
  11. package/dist/{HASRA6WW-CYutWFzS.js → HASRA6WW-BPCY6elk.js} +2 -2
  12. package/dist/{I3HPI4QX-h-J4eisw.js → I3HPI4QX-06D9Iepl.js} +3 -3
  13. package/dist/{Introduction-Cn5uh084.js → Introduction-BghsurRU.js} +3 -3
  14. package/dist/{Review-BITkfvbx.js → Review-Dd7WI3Yz.js} +4 -3
  15. package/dist/{SingpassSelection-BPrfSrSw.js → SingpassSelection-DByRqKls.js} +2 -2
  16. package/dist/{TaxReportingDropin-DZLUs3Hb.js → TaxReportingDropin-BADfykll.js} +7 -12
  17. package/dist/adyen-kyc-components.js +1 -1
  18. package/dist/adyenConfig.js +1 -1
  19. package/dist/{core-DnQST_lN.js → core-C0rY8vL6.js} +81 -110
  20. package/dist/{css-ChtZI8YA.js → css-DLNP39b3.js} +1 -1
  21. package/dist/individual.js +2 -2
  22. package/dist/{json-CY-QM445.js → json-CrltTDwR.js} +1 -1
  23. package/dist/{listToRecord-CogvyLiD.js → listToRecord-3sI8p0aA.js} +2 -2
  24. package/dist/{plaintext-BzvCXlZZ.js → plaintext-BOAoTqQE.js} +1 -1
  25. package/dist/terms-of-service.js +2 -2
  26. package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
  27. package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
  28. package/dist/types/api/address/useSearchAddress.d.ts +1 -0
  29. package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
  30. package/dist/types/api/check/useCheck.d.ts +2 -0
  31. package/dist/types/api/configurations/useScenarios.d.ts +7 -6
  32. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
  33. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -0
  34. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
  35. package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
  36. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
  37. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
  38. package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
  39. package/dist/types/api/invalidateRootLegalEntity.d.ts +6 -0
  40. package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
  41. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
  42. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
  43. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -0
  44. package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -0
  45. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -0
  46. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
  47. package/dist/types/api/queryKeys.d.ts +38 -0
  48. package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
  49. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
  50. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -0
  51. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
  52. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -0
  53. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -0
  54. package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
  55. package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
  56. package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
  57. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
  58. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -0
  59. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
  60. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  61. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
  62. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
  63. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  64. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  65. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  66. package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +1 -2
  67. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +5 -1
  68. package/dist/types/components/ui/atoms/Radio/Radio.d.ts +3 -1
  69. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
  70. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
  71. package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
  72. package/dist/{yaml-CFgf8XoZ.js → yaml-Cc82rT2c.js} +1 -1
  73. package/package.json +4 -4
@@ -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.
@@ -22,7 +23,7 @@ export interface SuccessResponse {
22
23
  * @param legalEntityType - needs to be dynamic, might not match the legalEntityId's legalEntityType
23
24
  */
24
25
  export declare const useScenarios: (countryCode: CountryCode, legalEntityType: LeType, options?: QueryOptions<SuccessResponse>) => {
25
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
26
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
26
27
  error: Error;
27
28
  isError: true;
28
29
  isPending: false;
@@ -48,7 +49,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
48
49
  fetchStatus: import("@tanstack/query-core").FetchStatus;
49
50
  promise: Promise<SuccessResponse>;
50
51
  } | {
51
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
52
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
52
53
  error: null;
53
54
  isError: false;
54
55
  isPending: false;
@@ -74,7 +75,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
74
75
  fetchStatus: import("@tanstack/query-core").FetchStatus;
75
76
  promise: Promise<SuccessResponse>;
76
77
  } | {
77
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
78
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
78
79
  error: Error;
79
80
  isError: true;
80
81
  isPending: false;
@@ -100,7 +101,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
100
101
  fetchStatus: import("@tanstack/query-core").FetchStatus;
101
102
  promise: Promise<SuccessResponse>;
102
103
  } | {
103
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
104
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
104
105
  error: null;
105
106
  isError: false;
106
107
  isPending: true;
@@ -126,7 +127,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
126
127
  fetchStatus: import("@tanstack/query-core").FetchStatus;
127
128
  promise: Promise<SuccessResponse>;
128
129
  } | {
129
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
130
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
130
131
  error: null;
131
132
  isError: false;
132
133
  isPending: true;
@@ -152,7 +153,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
152
153
  fetchStatus: import("@tanstack/query-core").FetchStatus;
153
154
  promise: Promise<SuccessResponse>;
154
155
  } | {
155
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION")[];
156
+ data: ("L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS")[];
156
157
  isError: false;
157
158
  error: null;
158
159
  isPending: false;
@@ -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 from the backend information about the version and features/experiments
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>;
@@ -1,5 +1,10 @@
1
1
  import type { QueryOptions } from '@tanstack/react-query';
2
2
  import type { ExistingDocument } from '../../core/models/api/document';
3
3
  import type { ComponentApiRequestContext } from '../../core/services/types';
4
+ /**
5
+ * Variables:
6
+ * * `documentId`
7
+ */
8
+ export type QueryKeyDocument = ['document', string];
4
9
  export declare const getDocument: (context: ComponentApiRequestContext, documentId: string) => Promise<ExistingDocument>;
5
- export declare const useGetDocument: (documentId: string, options?: QueryOptions<ExistingDocument>) => import("@tanstack/react-query").UseQueryResult<ExistingDocument, Error>;
10
+ export declare const useDocument: (documentId: string, options?: QueryOptions<ExistingDocument>) => import("@tanstack/react-query").UseQueryResult<ExistingDocument, Error>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns a function which invalidates the root legal entity and all of its dependent queries.
3
+ *
4
+ * See {@link QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED}.
5
+ */
6
+ export declare const useInvalidateRootLegalEntity: () => () => Promise<void | [void, void]>;
@@ -1,5 +1,10 @@
1
1
  import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
2
2
  import type { QueryOptions } from '../types';
3
+ /**
4
+ * Variables:
5
+ * * `legalEntityId`
6
+ */
7
+ export type QueryKeyLegalEntity = ['legalEntity', string];
3
8
  /**
4
9
  * Without id, this returns the root legal entity
5
10
  * With id it will return a child of the root (unless root is passed in)
@@ -1,3 +1,4 @@
1
1
  import type { OnboardingStatusResponse } from '../../core/models/api/view-verification-status';
2
2
  import type { QueryOptions } from '../types';
3
+ export type QueryKeyOnboardingStatus = ['onboardingStatus'];
3
4
  export declare const useOnboardingStatus: (options?: QueryOptions<OnboardingStatusResponse>) => import("@tanstack/react-query").UseQueryResult<OnboardingStatusResponse, Error>;
@@ -1,4 +1,5 @@
1
1
  import type { QueryOptions } from '../../../types';
2
2
  import type { SingpassLinkResponse } from '../../components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types';
3
+ export type QueryKeyOpenIdAuthorizationLink = ['openIdAuthorizationLink'];
3
4
  export declare const useOpenIdAuthorizationLink: (options?: QueryOptions<SingpassLinkResponse>) => import("@tanstack/react-query").UseQueryResult<SingpassLinkResponse, Error>;
4
5
  export declare const getOpenIdAuthorizationLink: (legalEntityId: string, url: string) => Promise<SingpassLinkResponse>;
@@ -3,6 +3,7 @@ import type { components, paths } from './pci.contract';
3
3
  type PciEndpoint = EndpointFromPaths<keyof paths>;
4
4
  export type PciQuestionnaireListEndpoint = Extract<PciEndpoint, `legalEntities/${string}/pci/questionnaires`>;
5
5
  export type SuccessResponse = components['schemas']['PciQuestionnairesResponse'];
6
+ export type QueryKeyPciQuestionnaireList = ['pciQuestionnaireList'];
6
7
  /**
7
8
  * Returns a list of questionnaires for the legalEntity
8
9
  */
@@ -4,6 +4,7 @@ type PciEndpoint = EndpointFromPaths<keyof paths>;
4
4
  export type PciStatusEndpoint = Extract<PciEndpoint, `legalEntities/${string}/pci/signingRequired`>;
5
5
  export type SuccessResponse = components['schemas']['PciSigningStatusResponse'];
6
6
  type Request = components['schemas']['PciSigningStatusRequest'];
7
+ export type QueryKeyPciStatus = ['pciStatus', Request];
7
8
  export declare const usePciStatus: (data: Request, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
8
9
  signingRequired?: boolean;
9
10
  }, Error>;
@@ -5,6 +5,7 @@ export type PciTemplateEndpoint = Extract<PciEndpoint, `legalEntities/${string}/
5
5
  type SuccessResponse = components['schemas']['GeneratePciDescriptionResponse'];
6
6
  type Request = components['schemas']['GeneratePciDescriptionRequest'];
7
7
  type ModifiedSuccessResponse = Required<SuccessResponse>;
8
+ export type QueryKeyPciTemplate = ['pciTemplate', Request];
8
9
  export declare const usePciTemplate: (data: Request, options?: QueryOptions<ModifiedSuccessResponse>) => import("@tanstack/react-query").UseQueryResult<Required<{
9
10
  content?: string;
10
11
  language?: string;
@@ -9,6 +9,7 @@ type Request = components['schemas']['ProvidersStatusesRequest'];
9
9
  type CorrectedRequest = Request & {
10
10
  providers: Provider[];
11
11
  };
12
+ export type QueryKeyProvidersStatus = ['providersStatus', CorrectedRequest];
12
13
  /**
13
14
  * Asks the backend if 3rd party providers like Loqate and Onfido are available.
14
15
  *
@@ -0,0 +1,38 @@
1
+ import type { QueryKeyAddressCleanse } from './address/useAddressCleanse';
2
+ import type { QueryKeyRetrieveAddress } from './address/useRetrieveAddress';
3
+ import type { QueryKeySearchAddress } from './address/useSearchAddress';
4
+ import type { QueryKeyBusinessLines } from './businessLines/useBusinessLines';
5
+ import type { QueryKeyCheckAsAService } from './check/useCheck';
6
+ import type { QueryKeyScenarios } from './configurations/useScenarios';
7
+ import type { QueryKeySupportedCountries } from './configurations/useSupportedCountries';
8
+ import type { QueryKeyTaskTypes } from './configurations/useTaskTypes';
9
+ import type { QueryKeyVersionConfiguration } from './configurations/useVersionConfiguration';
10
+ import type { QueryKeyLegalForms } from './datasets/useLegalForms';
11
+ import type { QueryKeyNaceCodes } from './datasets/useNaceCodes';
12
+ import type { QueryKeySourceOfFundsTypes } from './datasets/useSourceOfFundsTypes';
13
+ import type { QueryKeyDocument } from './documents/useDocument';
14
+ import type { QueryKeyLegalEntity } from './legalEntity/useLegalEntity';
15
+ import type { QueryKeyOnboardingStatus } from './onboardingStatus/useOnboardingStatus';
16
+ import type { QueryKeyOpenIdAuthorizationLink } from './openId/useOpenIdAuthorizationLink';
17
+ import type { QueryKeyPciQuestionnaireList } from './pciTemplate/usePciQuestionnaireList';
18
+ import type { QueryKeyPciStatus } from './pciTemplate/usePciStatus';
19
+ import type { QueryKeyPciTemplate } from './pciTemplate/usePciTemplate';
20
+ import type { QueryKeyProvidersStatus } from './providersConfiguration/useProviderStatus';
21
+ import type { QueryKeyTaskStatus } from './taskStatus/useTaskStatus';
22
+ import type { QueryKeyTaxClassification } from './taxClassification/useTaxClassification';
23
+ import type { QueryKeyAcceptedTermsOfService } from './termsOfService/useAcceptedTermsOfService';
24
+ import type { QueryKeyTermsOfService } from './termsOfService/useTermsOfService';
25
+ import type { QueryKeyTermsOfServiceAcceptanceInfos } from './termsOfService/useTermsOfServiceAcceptanceInfos';
26
+ import type { QueryKeyTermsOfServiceStatus } from './termsOfService/useTermsOfServiceStatus';
27
+ import type { QueryKeyBankVerificationProviders } from './transferInstruments/useBankVerificationProviders';
28
+ import type { QueryKeyTransferInstrument } from './transferInstruments/useTransferInstrument';
29
+ import type { QueryKeyTransferInstruments } from './transferInstruments/useTransferInstruments';
30
+ import type { QueryKeyAnalyticsSession } from './uiAnalytics/useAnalyticsSession';
31
+ import type { QueryKeyValidatePhoneNumber } from './validation/useValidatePhoneNumber';
32
+ export type QueryKey = QueryKeyLegalEntity | QueryKeyAnalyticsSession | QueryKeyPciQuestionnaireList | QueryKeyAddressCleanse | QueryKeyRetrieveAddress | QueryKeySearchAddress | QueryKeyBusinessLines | QueryKeyCheckAsAService | QueryKeyScenarios | QueryKeySupportedCountries | QueryKeyTaskTypes | QueryKeyVersionConfiguration | QueryKeyLegalForms | QueryKeyDocument | QueryKeyOnboardingStatus | QueryKeySourceOfFundsTypes | QueryKeyOpenIdAuthorizationLink | QueryKeyBankVerificationProviders | QueryKeyTransferInstrument | QueryKeyTransferInstruments | QueryKeyPciStatus | QueryKeyPciTemplate | QueryKeyProvidersStatus | QueryKeyTermsOfService | QueryKeyTermsOfServiceAcceptanceInfos | QueryKeyTermsOfServiceStatus | QueryKeyTaskStatus | QueryKeyTaxClassification | QueryKeyNaceCodes | QueryKeyValidatePhoneNumber | QueryKeyAcceptedTermsOfService;
33
+ declare module '@tanstack/react-query' {
34
+ interface Register {
35
+ queryKey: QueryKey;
36
+ mutationKey: QueryKey;
37
+ }
38
+ }
@@ -3,6 +3,7 @@ import type { TaskStatusApiResponse } from '../../stores/globalStore/taskStatus'
3
3
  import type { components } from './taskStatus.contract';
4
4
  export type ApiTaskStatus = components['schemas']['TaskStatus'];
5
5
  export type TaskStatusEntry = components['schemas']['TaskStatusEntryDto'];
6
+ export type QueryKeyTaskStatus = ['taskStatus'];
6
7
  /**
7
8
  * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
8
9
  */
@@ -1,6 +1,7 @@
1
1
  import type { QueryOptions } from '../types';
2
2
  import type { components } from './taxClassification.contract';
3
3
  export type TaxClassificationSuccessResponse = components['schemas']['TaxReportingClassification'];
4
+ export type QueryKeyTaxClassification = ['taxClassification'];
4
5
  /**
5
6
  * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
6
7
  */
@@ -4,6 +4,15 @@ import type { components, paths } from './termsOfService.contract';
4
4
  type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
5
5
  export type TermsOfServiceAcceptedEndpoint = Extract<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/acceptedTermsOfServiceDocument/${string}`>;
6
6
  export type SuccessResponse = components['schemas']['GetAcceptedTermsOfServiceDocumentResponse'];
7
+ /**
8
+ * Variables:
9
+ * * `termsOfServiceAcceptanceReference`
10
+ */
11
+ export type QueryKeyAcceptedTermsOfService = [
12
+ 'acceptedTermsOfService',
13
+ string | undefined,
14
+ TermsOfServiceDocumentFormat
15
+ ];
7
16
  export declare const getAcceptedTermsOfService: (legalEntityId: string, url: string, termsOfServiceAcceptanceReference: string, documentFormat: TermsOfServiceDocumentFormat) => Promise<SuccessResponse>;
8
17
  export declare const useAcceptedTermsOfService: (termsOfServiceAcceptanceReference: string | undefined, documentFormat: TermsOfServiceDocumentFormat, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
9
18
  document?: string;
@@ -4,6 +4,7 @@ export type Request = components['schemas']['TermsOfServiceDocumentRequest'];
4
4
  export type SuccessResponse = components['schemas']['TermsOfServiceDocumentResponse'];
5
5
  type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
6
6
  export type TermsOfServiceEndpoint = Extract<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService`>;
7
+ export type QueryKeyTermsOfService = ['termsOfService', Request];
7
8
  export declare const getTermsOfService: (legalEntityId: string, url: string, data: Request) => Promise<SuccessResponse>;
8
9
  export declare const useTermsOfService: (data: Request, options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
9
10
  document?: string;
@@ -4,5 +4,6 @@ import type { paths } from './termsOfService.contract';
4
4
  type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
5
5
  export type TermsOfServiceAcceptanceInfoEndpoint = Extract<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/termsOfServiceAcceptanceInfos`>;
6
6
  type SuccessResponse = ServiceAgreementAcceptanceInfos;
7
+ export type QueryKeyTermsOfServiceAcceptanceInfos = ['termsOfServiceAcceptanceInfos'];
7
8
  export declare const useTermsOfServiceAcceptanceInfos: (options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<ServiceAgreementAcceptanceInfos, Error>;
8
9
  export {};
@@ -3,6 +3,7 @@ import type { components, paths } from './termsOfService.contract';
3
3
  export type SuccessResponse = components['schemas']['TermsOfServiceStatusResponse'];
4
4
  type TermsOfServiceEndpoints = EndpointFromPaths<keyof paths>;
5
5
  export type TermsOfServiceStatusEndpoint = Extract<TermsOfServiceEndpoints, `legalEntities/${string}/termsOfService/termsOfServiceStatus`>;
6
+ export type QueryKeyTermsOfServiceStatus = ['termsOfServiceStatus'];
6
7
  export declare const useTermsOfServiceStatus: (options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
7
8
  termsOfServiceTypes?: components["schemas"]["TermsOfServiceType"][];
8
9
  }, Error>;
@@ -8,11 +8,15 @@ export type GetBankVerificationQueryParams = operations['getBankVerificationProv
8
8
  country: CountryCode;
9
9
  locale: Language['locale'];
10
10
  };
11
+ export type QueryKeyBankVerificationProviders = [
12
+ 'bankVerificationProviders',
13
+ GetBankVerificationQueryParams
14
+ ];
11
15
  /**
12
16
  * Retrieves the list of bank verification providers and their respective urls.
13
17
  * Bank verification providers are used to instantly verify payout accounts.
14
18
  * @param queryParams the relevant country, locale, and configId
15
19
  * @param options additional options passed to Tanstack Query, eg; onSuccess
16
20
  */
17
- export declare const useGetBankVerificationProviders: (queryParams: GetBankVerificationQueryParams, options?: QueryOptions<GetBankVerificationProviderResponse>) => import("@tanstack/react-query").UseQueryResult<GetBankVerificationProviderResponse, Error>;
21
+ export declare const useBankVerificationProviders: (queryParams: GetBankVerificationQueryParams, options?: QueryOptions<GetBankVerificationProviderResponse>) => import("@tanstack/react-query").UseQueryResult<GetBankVerificationProviderResponse, Error>;
18
22
  export {};
@@ -1,8 +1,13 @@
1
1
  import type { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
2
2
  import type { QueryOptions } from '../types';
3
+ /**
4
+ * Variables:
5
+ * * `transferInstrumentId`
6
+ */
7
+ export type QueryKeyTransferInstrument = ['transferInstrument', string];
3
8
  /**
4
9
  * Gets a single transfer instrument associated with a legal entity
5
10
  * @param transferInstrumentId ID of transfer instrument
6
11
  * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
7
12
  */
8
- export declare const useGetTransferInstrument: (transferInstrumentId?: string | undefined, options?: QueryOptions<ExistingTransferInstrument>) => import("@tanstack/react-query").UseQueryResult<ExistingTransferInstrument, Error>;
13
+ export declare const useTransferInstrument: (transferInstrumentId?: string | undefined, options?: QueryOptions<ExistingTransferInstrument>) => import("@tanstack/react-query").UseQueryResult<ExistingTransferInstrument, Error>;
@@ -8,8 +8,9 @@ export type TransferInstrumentReferenceWithStatusId = Omit<TransferInstrumentRef
8
8
  id: string;
9
9
  };
10
10
  };
11
+ export type QueryKeyTransferInstruments = ['transferInstruments'];
11
12
  /**
12
13
  * Gets a list of transfer instruments associated with a legal entity
13
14
  * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
14
15
  */
15
- export declare const useGetTransferInstruments: (options?: QueryOptions<GetTransferInstrumentResponse>) => import("@tanstack/react-query").UseQueryResult<GetTransferInstrumentResponse, Error>;
16
+ export declare const useTransferInstruments: (options?: QueryOptions<GetTransferInstrumentResponse>) => import("@tanstack/react-query").UseQueryResult<GetTransferInstrumentResponse, Error>;
@@ -12,5 +12,10 @@ export interface SessionData {
12
12
  legalEntityId: string;
13
13
  userData?: Record<string, MixpanelProperty>;
14
14
  }
15
+ /**
16
+ * Variables:
17
+ * * `onboardingVersion`
18
+ */
19
+ export type QueryKeyAnalyticsSession = ['analyticsSession', number | undefined];
15
20
  export declare const useAnalyticsSession: (sessionData: SessionData, onboardingVersion: number | undefined, options?: QueryOptions<CorrectedSuccessReponse>) => import("@tanstack/react-query").UseQueryResult<CorrectedSuccessReponse, Error>;
16
21
  export {};
@@ -2,6 +2,7 @@ import type { QueryOptions } from '../../../types';
2
2
  import type { components } from './validation.contract';
3
3
  type PhoneNumberValidationRequest = components['schemas']['PhoneNumberValidationRequest'];
4
4
  type ValidationResponse = components['schemas']['ValidationResponse'];
5
+ export type QueryKeyValidatePhoneNumber = ['validatePhoneNumber', PhoneNumberValidationRequest];
5
6
  export declare const useValidatePhoneNumber: (data: PhoneNumberValidationRequest, options?: QueryOptions<ValidationResponse>) => import("@tanstack/react-query").UseQueryResult<{
6
7
  invalidFields: components["schemas"]["InvalidField"][];
7
8
  valid: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { components } from '#api/transferInstruments/transferInstruments.contract';
3
- import type { BankVerificationVendor } from '../../../../api/transferInstruments/useGetBankVerificationProviders';
3
+ import type { BankVerificationVendor } from '../../../../api/transferInstruments/useBankVerificationProviders';
4
4
  import type { CountryCode } from '../../../../core/models/country-code';
5
5
  import type { Currency } from '../../../../core/models/currency';
6
6
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
@@ -1,6 +1,6 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
+ import type { BankVerificationVendor } from '../../../../api/transferInstruments/useBankVerificationProviders';
2
3
  import type { CreateTrustedTransferInstrumentResponse } from '../../../../api/transferInstruments/useCreateTrustedTransferInstrument';
3
- import type { BankVerificationVendor } from '../../../../api/transferInstruments/useGetBankVerificationProviders';
4
4
  import type { CapabilityName } from '../../../../core/models/api/capability';
5
5
  import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
6
6
  import type { CountryCode } from '../../../../core/models/country-code';
@@ -1,5 +1,5 @@
1
1
  import { type Dispatch, type StateUpdater } from 'preact/hooks';
2
- import type { BankVerificationVendor } from '../../../../../api/transferInstruments/useGetBankVerificationProviders';
2
+ import type { BankVerificationVendor } from '../../../../../api/transferInstruments/useBankVerificationProviders';
3
3
  import type { LoadingStatus } from '../../../../ui/atoms/LoaderWrapper/constants';
4
4
  import type { ValidatorMode } from '../../../../../utils/validation/types';
5
5
  import type { InstantVerificationErrorNotification } from '../../BankVerification/types';
@@ -1,5 +1,5 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
- import type { BankVerificationVendor } from '../../../../api/transferInstruments/useGetBankVerificationProviders';
2
+ import type { BankVerificationVendor } from '../../../../api/transferInstruments/useBankVerificationProviders';
3
3
  import type { ExistingLegalEntity } from '../../../../core/models/api/legal-entity';
4
4
  import type { CountryCode } from '../../../../core/models/country-code';
5
5
  import type { FormModel } from '../../../../core/models/form';
@@ -1,5 +1,5 @@
1
1
  import './ManageTransferInstrumentOverview.scss';
2
- import type { GetTransferInstrumentResponse } from '../../../../api/transferInstruments/useGetTransferInstruments';
2
+ import type { GetTransferInstrumentResponse } from '../../../../api/transferInstruments/useTransferInstruments';
3
3
  import type { ExistingTransferInstrument } from '../../../../core/models/api/transfer-instrument';
4
4
  interface ManageTransferInstrumentOverviewProps {
5
5
  transferInstrumentReferences?: GetTransferInstrumentResponse;
@@ -1,4 +1,4 @@
1
- import type { TransferInstrumentReferenceWithStatusId } from '../../../../api/transferInstruments/useGetTransferInstruments';
1
+ import type { TransferInstrumentReferenceWithStatusId } from '../../../../api/transferInstruments/useTransferInstruments';
2
2
  import type { ExistingTransferInstrument } from '../../../../core/models/api/transfer-instrument';
3
3
  interface ManageTransferInstrumentOverviewItemProps {
4
4
  transferInstrumentReference: TransferInstrumentReferenceWithStatusId;
@@ -1,5 +1,5 @@
1
1
  import './ManageTransferInstrumentOverviewItemModal.scss';
2
- import type { TransferInstrumentReferenceWithStatusId } from '../../../../api/transferInstruments/useGetTransferInstruments';
2
+ import type { TransferInstrumentReferenceWithStatusId } from '../../../../api/transferInstruments/useTransferInstruments';
3
3
  import type { ExistingTransferInstrument } from '../../../../core/models/api/transfer-instrument';
4
4
  export interface ManageTransferInstrumentOverviewItemModalProps {
5
5
  status: TransferInstrumentReferenceWithStatusId['status'];
@@ -1,9 +1,8 @@
1
1
  interface SignPCIComponentProps {
2
- legalEntityId: string;
3
2
  modalView?: boolean;
4
3
  onClose?(): void;
5
4
  onSigned?(): void;
6
5
  onUnmount?(): void;
7
6
  }
8
- export declare function SignPCIComponent({ legalEntityId, modalView, onClose, onSigned, onUnmount, }: SignPCIComponentProps): import("preact/jsx-runtime").JSX.Element;
7
+ export declare function SignPCIComponent({ modalView, onClose, onSigned, onUnmount, }: SignPCIComponentProps): import("preact/jsx-runtime").JSX.Element;
9
8
  export {};
@@ -2,6 +2,7 @@ import './Checkbox.scss';
2
2
  import type { ComponentChild } from 'preact';
3
3
  import type { FieldChildProps } from '../Field/Field.types';
4
4
  interface CheckboxProps extends Partial<FieldChildProps> {
5
+ id: string;
5
6
  checked: boolean;
6
7
  onChange: (isChecked: boolean) => void;
7
8
  classNameModifiers?: string[];
@@ -13,6 +14,9 @@ interface CheckboxProps extends Partial<FieldChildProps> {
13
14
  readonly?: boolean;
14
15
  disabled?: boolean;
15
16
  enableTracking?: boolean;
17
+ 'aria-required'?: boolean;
18
+ 'aria-invalid'?: boolean;
19
+ 'aria-describedby'?: string;
16
20
  }
17
- export declare function Checkbox({ classNameModifiers, label, isInvalid, onChange, helper, checked, disabled, enableTracking, id, ...props }: Readonly<CheckboxProps>): import("preact/jsx-runtime").JSX.Element;
21
+ export declare function Checkbox({ id, name, value, className, classNameModifiers, label, isInvalid, onChange, helper, checked, readonly, disabled, enableTracking, 'aria-required': ariaRequired, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedBy, }: Readonly<CheckboxProps>): import("preact/jsx-runtime").JSX.Element;
18
22
  export {};
@@ -7,5 +7,7 @@ export interface RadioProps {
7
7
  disabled?: boolean;
8
8
  onClick: () => void;
9
9
  className?: string;
10
+ 'aria-labelledby'?: string;
11
+ 'aria-describedby'?: string;
10
12
  }
11
- export declare const Radio: ({ id, value, groupName, checked, disabled, onClick, className, }: RadioProps) => import("preact/jsx-runtime").JSX.Element;
13
+ export declare const Radio: ({ id, value, groupName, checked, disabled, onClick, className, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: RadioProps) => import("preact/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import '../Select/SelectGeneric.scss';
2
2
  import type { SelectItemProps } from './SelectListItem.types';
3
- export declare const SelectListItem: ({ item, selected, isMulti, isSearch, children, onSelect, onKeyDown, onFocus, className, }: SelectItemProps) => import("preact/jsx-runtime").JSX.Element;
3
+ export declare const SelectListItem: ({ id, item, selected, isMulti, isSearch, children, onSelect, onKeyDown, onFocus, className, }: SelectItemProps) => import("preact/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import type { ComponentChild, JSX } from 'preact';
2
2
  import type { SelectItem } from '../Select/Select.types';
3
3
  export interface SelectItemProps {
4
+ id: string;
4
5
  item: SelectItem;
5
6
  selected: boolean;
6
7
  onKeyDown: (e: JSX.TargetedKeyboardEvent<HTMLLIElement>) => void;
@@ -1,6 +1,6 @@
1
1
  import type { Dispatch, StateUpdater } from 'preact/hooks';
2
2
  import type { Scenario } from '../api/configurations/useScenarios';
3
- import type { BankVerificationVendor } from '../api/transferInstruments/useGetBankVerificationProviders';
3
+ import type { BankVerificationVendor } from '../api/transferInstruments/useBankVerificationProviders';
4
4
  import type { LoadingStatus } from '../components/ui/atoms/LoaderWrapper/constants';
5
5
  import type { TopLevelDataSchema } from '../context/StateContext/types';
6
6
  import type { AccountFormatRequirements, PayoutAccountFormats } from '../datasets/generators/getAccountFormatForCountry';
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Chl6VeCw.js";
10
+ import { c as cssProps } from "./DebugModal-P05awsgJ.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.68.0",
3
+ "version": "3.68.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -137,9 +137,9 @@
137
137
  "test": "vitest",
138
138
  "test:run": "vitest --run",
139
139
  "test:coverage": "vitest --coverage",
140
- "test:e2e": "playwright test",
141
- "test:e2e:debug": "cross-env PWDEBUG=console playwright test --debug",
142
- "test:e2e:ui": "playwright test --ui",
140
+ "test:e2e": "NODE_OPTIONS=--no-experimental-strip-types playwright test",
141
+ "test:e2e:debug": "NODE_OPTIONS=--no-experimental-strip-types PWDEBUG=console playwright test --debug",
142
+ "test:e2e:ui": "NODE_OPTIONS=--no-experimental-strip-types playwright test --ui",
143
143
  "test:ui": "vitest --ui",
144
144
  "test:watch": "npm run test --watch",
145
145
  "types:build": "tsc --project tsconfig-build.json && tsc-alias --project tsconfig-build.json",