@swan-io/shared-business 4.1.2 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/shared-business",
3
- "version": "4.1.2",
3
+ "version": "4.3.0",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -32,7 +32,7 @@
32
32
  "@formatjs/intl": "^2.9.9",
33
33
  "@googlemaps/js-api-loader": "1.16.2",
34
34
  "@placekit/client-js": "^2.2.0",
35
- "@swan-io/boxed": "^1.2.0",
35
+ "@swan-io/boxed": "^2.0.0",
36
36
  "dayjs": "^1.11.10",
37
37
  "react": "^18.2.0",
38
38
  "react-atomic-state": "^1.2.7",
@@ -279,8 +279,8 @@ const isDateRange = (value) => {
279
279
  };
280
280
  const isSelectedDate = (date, value) => {
281
281
  return match(value)
282
- .with(Option.pattern.Some(P.select()), value => isDateEquals(value, date))
283
- .with(Option.pattern.None, () => false)
282
+ .with(Option.P.Some(P.select()), value => isDateEquals(value, date))
283
+ .with(Option.P.None, () => false)
284
284
  .with(P.when(isDateRange), ({ start, end }) => {
285
285
  // if range is invalid, we don't display any selection
286
286
  if (start.isSome() && end.isSome() && isDateAfter(start.value, end.value)) {
@@ -5,7 +5,7 @@ export type Document = {
5
5
  downloadUrl?: string;
6
6
  purpose: SupportingDocumentPurpose;
7
7
  };
8
- type SupportingDocumentPurposeEnum = "AssociationRegistration" | "Banking" | "CompanyRegistration" | "GeneralAssemblyMinutes" | "Other" | "PowerOfAttorney" | "ProofOfCompanyAddress" | "ProofOfCompanyIncome" | "ProofOfIdentity" | "ProofOfIndividualAddress" | "ProofOfIndividualIncome" | "ProofOfOriginOfFunds" | "SignedStatus" | "SwornStatement" | "UBODeclaration";
8
+ type SupportingDocumentPurposeEnum = "AdministratorDecisionOfAppointment" | "AssociationRegistration" | "Banking" | "CompanyRegistration" | "FinancialStatements" | "GeneralAssemblyMinutes" | "LegalRepresentativeProofOfIdentity" | "NIFAccreditationCard" | "Other" | "PowerOfAttorney" | "PresidentDecisionOfAppointment" | "ProofOfCompanyAddress" | "ProofOfCompanyIncome" | "ProofOfIdentity" | "ProofOfIndividualAddress" | "ProofOfIndividualIncome" | "ProofOfOriginOfFunds" | "SignedStatus" | "SwornStatement" | "UBODeclaration" | "UltimateBeneficialOwnerProofOfAddress" | "UltimateBeneficialOwnerProofOfIdentity";
9
9
  export declare const uploadableDocumentTypes: ("AssociationRegistration" | "CompanyRegistration" | "GeneralAssemblyMinutes" | "PowerOfAttorney" | "ProofOfIdentity" | "SignedStatus" | "SwornStatement" | "UBODeclaration")[];
10
10
  export type SupportingDocumentPurpose = (typeof uploadableDocumentTypes)[number];
11
11
  type Props = {