@adyen/kyc-components 3.81.0-beta.2 → 3.81.0-beta.3

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 (70) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-g1UYkCq6.js → AcceptTermsOfServiceComponent-L-VLoVVm.js} +4 -4
  2. package/dist/{AccountSetupRejected-Bl0kCp5s.js → AccountSetupRejected-KSsUqgS8.js} +2 -2
  3. package/dist/{Avatar-QzqNl4_w.js → Avatar-DQWZKDyK.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-Bo3c2HvD.js → BusinessDetailsDropin-JEi7zNN5.js} +6 -6
  5. package/dist/{BusinessFinancingComponent-BS1pCA2T.js → BusinessFinancingComponent-B9nSH5XY.js} +2 -2
  6. package/dist/{BusinessFinancingDropin-ld_u48--.js → BusinessFinancingDropin-BOSvl5M9.js} +8 -8
  7. package/dist/{BusinessFinancingPage-DXN66CIg.js → BusinessFinancingPage-L4LAbHPk.js} +2 -2
  8. package/dist/{BusinessTypeSelectionPage-DwQMC62u.js → BusinessTypeSelectionPage-w9pMkhBt.js} +3 -3
  9. package/dist/{CreateIndividualComponent-DMOPpoR1.js → CreateIndividualComponent-cHJthLBL.js} +2 -2
  10. package/dist/{CreateTransferInstrumentComponent-BhvJC-uz.js → CreateTransferInstrumentComponent-D0Sr1dH0.js} +1 -1
  11. package/dist/{CustomerSupport-CCIWB0zm.js → CustomerSupport-2kK-1XQx.js} +4 -4
  12. package/dist/{DebugModal-C6pLStsp.js → DebugModal-BuQGVv0a.js} +4 -4
  13. package/dist/{DecisionMakerDetailsPage-IScJwkWj.js → DecisionMakerDetailsPage-gDtpwLBj.js} +2 -2
  14. package/dist/{DecisionMakers-AJW7BxMl.js → DecisionMakers-BafJ6zYr.js} +6 -6
  15. package/dist/{EmbeddedStatus-CGgKAej7.js → EmbeddedStatus-B6Wa-fZ9.js} +2 -2
  16. package/dist/{EndStateLayout-BfJPV-nG.js → EndStateLayout-DyDcIT5g.js} +1 -1
  17. package/dist/{FormFlow-Df8LqkiT.js → FormFlow-BhhW8oFl.js} +1 -1
  18. package/dist/{IndividualOnfidoDropin-MkJe6-aL.js → IndividualOnfidoDropin-BiQpcIMz.js} +10 -10
  19. package/dist/{Introduction-B5E7ggIt.js → Introduction-DZTFiW_i.js} +2 -2
  20. package/dist/{LegalRepresentativeDetailsPage-Dh854Jru.js → LegalRepresentativeDetailsPage-B0YGVX_S.js} +2 -2
  21. package/dist/{ManageIndividualComponent-BW3n0Ys0.js → ManageIndividualComponent-2V-bNklu.js} +3 -3
  22. package/dist/{ManageTermsOfServiceComponent-agctlM2A.js → ManageTermsOfServiceComponent-B4caG9o0.js} +3 -3
  23. package/dist/{ManageTransferInstrumentComponent-XuUyZXxf.js → ManageTransferInstrumentComponent-CjAmb5m0.js} +3 -3
  24. package/dist/{OnboardingDropinComponent-DSkOqEwr.js → OnboardingDropinComponent-D4ivntVV.js} +30 -30
  25. package/dist/{Review-CUW8uFMC.js → Review-Bxitfh4C.js} +2 -2
  26. package/dist/{RootBusinessDetailsPage-BwqWbfiD.js → RootBusinessDetailsPage-I0HaXPwp.js} +6 -6
  27. package/dist/{RootIndividualDetailsPage-CnvuCxy8.js → RootIndividualDetailsPage-DKtpTUBC.js} +2 -2
  28. package/dist/{SignPCIComponent-CVC5KVf4.js → SignPCIComponent-DORbX1yL.js} +3 -3
  29. package/dist/{SingpassSelection-CyImho1l.js → SingpassSelection-CFOZAV82.js} +1 -1
  30. package/dist/{SoleProprietorshipPage-B5ts9qXe.js → SoleProprietorshipPage-BLYo2RKv.js} +2 -2
  31. package/dist/{SourceOfFundsPage-BvY-dBOA.js → SourceOfFundsPage-B9gXRtnw.js} +10 -10
  32. package/dist/{StoreProvider-6J3EmuCk.js → StoreProvider-DTssl0d2.js} +27 -5
  33. package/dist/{TaskItemStatus-CZwc_Gbw.js → TaskItemStatus-CYVSat-d.js} +1 -1
  34. package/dist/{TaskStatusIndicator-xIKq-Ygf.js → TaskStatusIndicator-qrNB-v1Q.js} +1 -1
  35. package/dist/{TaxReportingDropin-Dn2hI2kI.js → TaxReportingDropin-DAFeDIp1.js} +7 -7
  36. package/dist/{TileGroup-Cw4Y5eri.js → TileGroup-CGz7T1xr.js} +1 -1
  37. package/dist/{TrustDetailsPage-Cip3qVP6.js → TrustDetailsPage-CWwChw_h.js} +4 -4
  38. package/dist/{TrustMemberCompanyPage-u20bOiwh.js → TrustMemberCompanyPage-CfHrCwI1.js} +3 -3
  39. package/dist/{TrustMemberIndividualPage-CXTuG59e.js → TrustMemberIndividualPage-f6pTxZ-b.js} +2 -2
  40. package/dist/{UnincorporatedPartnershipIndividualPage-CB9jR9Gb.js → UnincorporatedPartnershipIndividualPage-CtnNK_uz.js} +2 -2
  41. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CSOUaZ8Q.js → UnincorporatedPartnershipMemberCompanyPage-d_rcXvWb.js} +2 -2
  42. package/dist/{VerificationErrorAlert-SgEtFhjt.js → VerificationErrorAlert-Dq-OfCNA.js} +1 -1
  43. package/dist/{ViewVerificationStatusComponent-B_Ursvjw.js → ViewVerificationStatusComponent-D3IlyHyE.js} +2 -2
  44. package/dist/adyen-business-financing.js +2 -2
  45. package/dist/adyen-individual.js +2 -2
  46. package/dist/adyen-kyc-components.js +14 -14
  47. package/dist/adyen-manage-individual.js +2 -2
  48. package/dist/adyen-manage-terms-of-service.js +2 -2
  49. package/dist/adyen-manage-transfer-instruments.js +2 -2
  50. package/dist/adyen-onboarding.js +2 -2
  51. package/dist/adyen-terms-of-service.js +2 -2
  52. package/dist/adyen-transfer-instrument.js +2 -2
  53. package/dist/adyen-verification-status.js +2 -2
  54. package/dist/{getFieldsWithExistingData-DMEjtWIk.js → getFieldsWithExistingData-DGwbwOca.js} +1 -1
  55. package/dist/{hasDataChanged-Dl36xGNx.js → hasDataChanged-dfjRLGHb.js} +1 -1
  56. package/dist/{isIdNowModalOpen-BH_lj7B8.js → isIdNowModalOpen-BKv0f-1W.js} +1 -1
  57. package/dist/{localizeDateString-Cl-EHwET.js → localizeDateString-DzLefmuA.js} +1 -1
  58. package/dist/{mapFinancialReportsToFinancialInformation-CapJf1J6.js → mapFinancialReportsToFinancialInformation-BSdQYsX3.js} +1 -1
  59. package/dist/{resolveEnvironment-CssHztJp.js → resolveEnvironment-CSF9nwV8.js} +3 -3
  60. package/dist/{rules-WoR4RB9U.js → rules-ui4hKN9a.js} +1 -1
  61. package/dist/types/api/configurations/useScenarios.d.ts +6 -6
  62. package/dist/types/core/models/api/get-scenarios.d.ts +11 -5
  63. package/dist/{useMultiForm-shdPe-Au.js → useMultiForm-DYCu9P6k.js} +1 -1
  64. package/dist/{useOnboardingStatus-CJQG73jt.js → useOnboardingStatus-1I5prrsD.js} +1 -1
  65. package/dist/{useTermsOfServiceStatus-CAr6drMU.js → useTermsOfServiceStatus-D1QgKXao.js} +1 -1
  66. package/dist/{useUpdateLegalEntity-CQvGh43S.js → useUpdateLegalEntity-BgpKv8dc.js} +1 -1
  67. package/dist/{utils-C7CxhTaH.js → utils-DtAyWZi1.js} +3 -3
  68. package/dist/{validate-CIvwo9l-.js → validate-CTOcDHTS.js} +1 -1
  69. package/dist/{validate-7QVU-YYv.js → validate-D3pd2yc2.js} +1 -1
  70. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { cU as createFormRules, as as CountryCodes, cW as allowedCountriesForNominee, b5 as DecisionMakerTypes, bM as getAddressSchemaForCountry, bN as COUNTRIES_WITH_STATES_DATASET, $ as TaskTypes, ck as getLocalizedIdDocumentTypeOptions, b6 as Scenarios } from "./StoreProvider-6J3EmuCk.js";
10
+ import { cU as createFormRules, as as CountryCodes, cW as allowedCountriesForNominee, b5 as DecisionMakerTypes, bM as getAddressSchemaForCountry, bN as COUNTRIES_WITH_STATES_DATASET, $ as TaskTypes, ck as getLocalizedIdDocumentTypeOptions, b6 as Scenarios } from "./StoreProvider-DTssl0d2.js";
11
11
  const REQUIRED = "REQUIRED";
12
12
  const OPTIONAL = "OPTIONAL";
13
13
  const SOLE_PROP_COUNTRIES = [
@@ -15,7 +15,7 @@ export type QueryKeyScenarios = ['scenarios', LeType, CountryCode];
15
15
  * @param legalEntityType - needs to be dynamic, might not match the legalEntityId's legalEntityType
16
16
  */
17
17
  export declare const useScenarios: (countryCode: CountryCode, legalEntityType: LeType, options?: QueryOptions<ConfigurationsResponse>) => {
18
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
18
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
19
19
  error: Error;
20
20
  isError: true;
21
21
  isPending: false;
@@ -42,7 +42,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
42
42
  fetchStatus: import("@tanstack/query-core").FetchStatus;
43
43
  promise: Promise<ConfigurationsResponse>;
44
44
  } | {
45
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
45
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
46
46
  error: null;
47
47
  isError: false;
48
48
  isPending: false;
@@ -69,7 +69,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
69
69
  fetchStatus: import("@tanstack/query-core").FetchStatus;
70
70
  promise: Promise<ConfigurationsResponse>;
71
71
  } | {
72
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
72
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
73
73
  error: Error;
74
74
  isError: true;
75
75
  isPending: false;
@@ -96,7 +96,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
96
96
  fetchStatus: import("@tanstack/query-core").FetchStatus;
97
97
  promise: Promise<ConfigurationsResponse>;
98
98
  } | {
99
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
99
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
100
100
  error: null;
101
101
  isError: false;
102
102
  isPending: true;
@@ -123,7 +123,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
123
123
  fetchStatus: import("@tanstack/query-core").FetchStatus;
124
124
  promise: Promise<ConfigurationsResponse>;
125
125
  } | {
126
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
126
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
127
127
  error: null;
128
128
  isError: false;
129
129
  isPending: true;
@@ -150,7 +150,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
150
150
  fetchStatus: import("@tanstack/query-core").FetchStatus;
151
151
  promise: Promise<ConfigurationsResponse>;
152
152
  } | {
153
- data: ("L" | "L0" | "L1" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_PH" | "L_MOTION" | "L_TAXINFO" | "L_BAFIN")[] | undefined;
153
+ data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
154
154
  isError: false;
155
155
  error: null;
156
156
  isPending: false;
@@ -1,16 +1,22 @@
1
+ import type { Scenario as ApiScenario } from '../../../api/configurations/configurations.types';
1
2
  /**
2
- * @description These are the available scenarios matching the API
3
- * kycexternalapi/src/main/java/com/adyen/services/kycexternalapi/entity/Scenario.java
3
+ * @description The available scenarios matching the API. Scenarios are a way of defining
4
+ * when certain fields must be provided by default. For an example of how they are used,
5
+ * see {@link businessDetailsFieldsPerScenario}.
6
+ *
7
+ * *Note*: this const determines in which order scenarios will be evaluated; later entries have
8
+ * higher precedence. This is needed because the backend may sort them inconsistently.
9
+ *
10
+ * E.g. if `L1` and `L1_IDDOC` both define rules for a field, `L1_IDDOC` will take precedence.
4
11
  */
5
12
  export declare const Scenarios: {
6
- readonly L: "L";
7
13
  readonly L0: "L0";
8
14
  readonly L1: "L1";
9
15
  readonly L1_ID: "L1_ID";
10
16
  readonly L1_IDO: "L1_IDO";
11
17
  readonly L1_NAT: "L1_NAT";
12
18
  readonly L1_IDDOC: "L1_IDDOC";
13
- readonly L2: "L2";
19
+ readonly L: "L";
14
20
  readonly L_REGDOC: "L_REGDOC";
15
21
  readonly L_TAXDOC: "L_TAXDOC";
16
22
  readonly L_PROOFOFADDRESS: "L_PROOFOFADDRESS";
@@ -19,4 +25,4 @@ export declare const Scenarios: {
19
25
  readonly L_TAXINFO: "L_TAXINFO";
20
26
  readonly L_BAFIN: "L_BAFIN";
21
27
  };
22
- export type Scenario = (typeof Scenarios)[keyof typeof Scenarios];
28
+ export type Scenario = ApiScenario;
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
11
- import { b3 as objectsDeepEqual, dG as ValidationResult, a0 as createLogger, dH as isNotEmptyValidator, at as isEmpty } from "./StoreProvider-6J3EmuCk.js";
11
+ import { b3 as objectsDeepEqual, dG as ValidationResult, a0 as createLogger, dH as isNotEmptyValidator, at as isEmpty } from "./StoreProvider-DTssl0d2.js";
12
12
  const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
13
13
  a[c] = obj[c];
14
14
  return a;
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { a as useApiContext, r as useQuery, x as httpGet } from "./StoreProvider-6J3EmuCk.js";
10
+ import { a as useApiContext, r as useQuery, x as httpGet } from "./StoreProvider-DTssl0d2.js";
11
11
  const getOnboardingStatus = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { a as useApiContext, r as useQuery, x as httpGet } from "./StoreProvider-6J3EmuCk.js";
10
+ import { a as useApiContext, r as useQuery, x as httpGet } from "./StoreProvider-DTssl0d2.js";
11
11
  const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { a as useApiContext, bn as useMutation, t as httpPost, bm as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-6J3EmuCk.js";
10
+ import { a as useApiContext, bn as useMutation, t as httpPost, bm as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-DTssl0d2.js";
11
11
  const createLegalEntity = async (legalEntityId, baseUrl, data) => {
12
12
  return httpPost(
13
13
  {
@@ -7,9 +7,9 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { g as getLegalEntityCountry, dR as getCapabilities, O as LegalEntityTypes, V as hasOwnEntityAssociationOfType, Y as CompanyTypesValues, as as CountryCodes, dT as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-6J3EmuCk.js";
11
- import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-DSkOqEwr.js";
12
- import { S as SOLE_PROP_COUNTRIES } from "./rules-WoR4RB9U.js";
10
+ import { g as getLegalEntityCountry, dR as getCapabilities, O as LegalEntityTypes, V as hasOwnEntityAssociationOfType, Y as CompanyTypesValues, as as CountryCodes, dT as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-DTssl0d2.js";
11
+ import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-D4ivntVV.js";
12
+ import { S as SOLE_PROP_COUNTRIES } from "./rules-ui4hKN9a.js";
13
13
  const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
14
14
  const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
15
15
  CountryCodes.UnitedStates,
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useCallback } from "preact/hooks";
11
- import { a as useApiContext, t as httpPost, dJ as emailPattern } from "./StoreProvider-6J3EmuCk.js";
11
+ import { a as useApiContext, t as httpPost, dJ as emailPattern } from "./StoreProvider-DTssl0d2.js";
12
12
  const validatePhoneNumber = (baseUrl, data) => {
13
13
  return httpPost(
14
14
  {
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { dI as hasText } from "./StoreProvider-6J3EmuCk.js";
10
+ import { dI as hasText } from "./StoreProvider-DTssl0d2.js";
11
11
  const validateLegalEntityIdentifier = (legalEntityIdentifier) => {
12
12
  if (!legalEntityIdentifier) {
13
13
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.81.0-beta.2",
3
+ "version": "3.81.0-beta.3",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",