@swan-io/shared-business 3.3.4 → 3.4.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": "3.3.4",
3
+ "version": "3.4.0",
4
4
  "engines": {
5
5
  "node": ">=18.0.0",
6
6
  "yarn": "^1.22.0"
@@ -6,7 +6,7 @@ export type Document = {
6
6
  purpose: SupportingDocumentPurpose;
7
7
  };
8
8
  type SupportingDocumentPurposeEnum = "AssociationRegistration" | "Banking" | "CompanyRegistration" | "GeneralAssemblyMinutes" | "Other" | "PowerOfAttorney" | "ProofOfCompanyAddress" | "ProofOfCompanyIncome" | "ProofOfIdentity" | "ProofOfIndividualAddress" | "ProofOfIndividualIncome" | "ProofOfOriginOfFunds" | "SignedStatus" | "SwornStatement" | "UBODeclaration";
9
- export declare const uploadableDocumentTypes: ("AssociationRegistration" | "CompanyRegistration" | "PowerOfAttorney" | "ProofOfIdentity" | "SignedStatus" | "SwornStatement" | "UBODeclaration")[];
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 = {
12
12
  getAwsUrl: (file: File, purpose: SupportingDocumentPurpose) => Promise<{
@@ -24,6 +24,7 @@ export const uploadableDocumentTypes = [
24
24
  "PowerOfAttorney",
25
25
  "SwornStatement",
26
26
  "UBODeclaration",
27
+ "GeneralAssemblyMinutes",
27
28
  ];
28
29
  const validateNotEmpty = value => {
29
30
  if (value.length === 0) {
@@ -91,6 +92,10 @@ export const SupportingDocument = forwardRef(({ documents, getAwsUrl, onChange,
91
92
  initialValue: initialValues["SwornStatement"] ?? [],
92
93
  validate: validateNotEmpty,
93
94
  },
95
+ GeneralAssemblyMinutes: {
96
+ initialValue: initialValues["GeneralAssemblyMinutes"] ?? [],
97
+ validate: validateNotEmpty,
98
+ },
94
99
  });
95
100
  useImperativeHandle(externalRef, () => {
96
101
  return {
@@ -218,6 +223,11 @@ export const SupportingDocument = forwardRef(({ documents, getAwsUrl, onChange,
218
223
  handleUpload(files, "PowerOfAttorney");
219
224
  }, error: error, documents: value, accept: ACCEPTED_FORMATS, icon: "document-regular", description: t("supportingDoc.documentTypes", {
220
225
  maxSizeMB: MAX_SUPPORTING_DOCUMENT_UPLOAD_SIZE_MB,
226
+ }), maxSize: MAX_SUPPORTING_DOCUMENT_UPLOAD_SIZE })) })) }), _jsx(Space, { height: 24 })] })), requiredDocumentTypes.includes("GeneralAssemblyMinutes") && (_jsxs(_Fragment, { children: [_jsx(LakeLabel, { label: t("supportingDoc.generalAssemblyMinutes"), help: _jsx(Help, { type: "tooltip", text: "supportingDoc.generalAssemblyMinutes.description" }), render: () => (_jsx(Field, { name: "GeneralAssemblyMinutes", children: ({ value, onChange, error }) => (_jsx(UploadArea, { layout: "horizontal", onDropAccepted: files => {
227
+ onChange([...value, { id: NO_ID_YET, status: "uploading", progress: 0 }]);
228
+ handleUpload(files, "GeneralAssemblyMinutes");
229
+ }, error: error, documents: value, accept: ACCEPTED_FORMATS, icon: "document-regular", description: t("supportingDoc.documentTypes", {
230
+ maxSizeMB: MAX_SUPPORTING_DOCUMENT_UPLOAD_SIZE_MB,
221
231
  }), maxSize: MAX_SUPPORTING_DOCUMENT_UPLOAD_SIZE })) })) }), _jsx(Space, { height: 24 })] })), requiredDocumentTypes.includes("SwornStatement") && (_jsxs(_Fragment, { children: [_jsx(LakeLabel, { label: t("supportingDoc.swornStatementDeclaration"), help: _jsx(Help, { type: "button", label: t("supportingDoc.whatIsThis"), onPress: () => setShowSwornStatementModal(true) }), render: () => (_jsx(Field, { name: "SwornStatement", children: ({ value, onChange, error }) => (_jsx(UploadArea, { layout: "horizontal", onDropAccepted: files => {
222
232
  onChange([...value, { id: NO_ID_YET, status: "uploading", progress: 0 }]);
223
233
  handleUpload(files, "SwornStatement");
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Unterstützte Dokumente: .pdf, .png, .jpg\nMax: {maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Vorlage herunterladen",
259
259
  "supportingDoc.errorUpload": "Datei konnte nicht hochgeladen werden",
260
+ "supportingDoc.generalAssemblyMinutes": "Protokoll der Generalversammlung",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Protokoll der letzten Generalversammlung des Vereins",
260
262
  "supportingDoc.noRequiredDocuments": "Wir brauchen keine Dokumente von Ihnen. Sie können fortfahren.",
261
263
  "supportingDoc.powerAttorney": "Vollmacht",
262
264
  "supportingDoc.powerAttornySigned": "Vom gesetzlichen Vertreter unterzeichnete Vollmacht",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Keine Datei",
275
277
  "uploadArea.unknownFileName": "unbekannter Dateiname",
276
278
  "uploadArea.uploading": "Hochladen…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Supported documents: .pdf, .png, .jpg\nMax: {maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Download template",
259
259
  "supportingDoc.errorUpload": "Failed to upload file",
260
+ "supportingDoc.generalAssemblyMinutes": "General assembly minutes",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Minutes of the last general assembly of the association",
260
262
  "supportingDoc.noRequiredDocuments": "We don't need any documents from you. You can continue.",
261
263
  "supportingDoc.powerAttorney": "Power of attorney",
262
264
  "supportingDoc.powerAttornySigned": "Power of attorney signed by the legal representative",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "No file",
275
277
  "uploadArea.unknownFileName": "unknown filename",
276
278
  "uploadArea.uploading": "Uploading…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Documentos admitidos: .pdf, .png, .jpg. Máx: \n{maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Descargar una plantilla",
259
259
  "supportingDoc.errorUpload": "No se ha podido cargar el archivo",
260
+ "supportingDoc.generalAssemblyMinutes": "Actas de la asamblea general",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Actas de la última asamblea general de la asociación",
260
262
  "supportingDoc.noRequiredDocuments": "No necesitamos que subas ningún documento. Puedes seguir.",
261
263
  "supportingDoc.powerAttorney": "Apoderamiento",
262
264
  "supportingDoc.powerAttornySigned": "Apoderamiento firmado por el representante legal",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "No hay ningún archivo",
275
277
  "uploadArea.unknownFileName": "nombre de archivo desconocido",
276
278
  "uploadArea.uploading": "Subiendo…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Tuetut asiakirjamuodot: .pdf, .png, .jpg, enint.: {maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Lataa malli",
259
259
  "supportingDoc.errorUpload": "Tiedoston lataaminen epäonnistui",
260
+ "supportingDoc.generalAssemblyMinutes": "Yleiskokouksen pöytäkirja",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Yhdistyksen viimeisen yleiskokouksen pöytäkirja",
260
262
  "supportingDoc.noRequiredDocuments": "Emme tarvitse enempää asiakirjoja sinulta. Voit jatkaa eteenpäin.",
261
263
  "supportingDoc.powerAttorney": "Valtakirja",
262
264
  "supportingDoc.powerAttornySigned": "Laillisen edustajan allekirjoittama valtakirja",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Ei tiedostoa",
275
277
  "uploadArea.unknownFileName": "tuntematon tiedostonimi",
276
278
  "uploadArea.uploading": "Ladataan..."
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Documents pris en charge : .pdf, .png, .jpg\nMaximum : {maxSizeMB} Mo",
258
258
  "supportingDoc.downloadTemplate": "Télécharger un modèle",
259
259
  "supportingDoc.errorUpload": "Le téléchargement du fichier a échoué",
260
+ "supportingDoc.generalAssemblyMinutes": "Procès-verbal de l'assemblée générale",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Compte-rendu de la dernière assemblée générale de l'association",
260
262
  "supportingDoc.noRequiredDocuments": "Nous n'avons besoin d'aucun document de votre part. Vous pouvez continuer.",
261
263
  "supportingDoc.powerAttorney": "Procuration",
262
264
  "supportingDoc.powerAttornySigned": "Procuration signée par le représentant légal",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Aucun fichier",
275
277
  "uploadArea.unknownFileName": "nom du fichier inconnu",
276
278
  "uploadArea.uploading": "téléchargement…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Documenti supportati: .pdf, .png, .jpg\nMax: {maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Scarica un modello",
259
259
  "supportingDoc.errorUpload": "Impossibile caricare file",
260
+ "supportingDoc.generalAssemblyMinutes": "Verbali dell'assemblea generale",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Verbali dell'ultima assemblea generale dell'associazione",
260
262
  "supportingDoc.noRequiredDocuments": "Non abbiamo bisogno di alcun documento da parte sua. Può proseguire.",
261
263
  "supportingDoc.powerAttorney": "Procura",
262
264
  "supportingDoc.powerAttornySigned": "Procura firmata dal rappresentante legale",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Nessun file",
275
277
  "uploadArea.unknownFileName": "nome del file sconosciuto",
276
278
  "uploadArea.uploading": "Caricamento…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Ondersteunde documenten: .pdf, .png, .jpg\nMax: {maxSizeMB} MB",
258
258
  "supportingDoc.downloadTemplate": "Een sjabloon downloaden",
259
259
  "supportingDoc.errorUpload": "Bestand uploaden mislukt",
260
+ "supportingDoc.generalAssemblyMinutes": "Notulen algemene vergadering",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Notulen van de laatste algemene vergadering van de vereniging",
260
262
  "supportingDoc.noRequiredDocuments": "We hebben geen documenten van u nodig. U kunt verder gaan.",
261
263
  "supportingDoc.powerAttorney": "Volmacht",
262
264
  "supportingDoc.powerAttornySigned": "Volmacht getekend door de wettelijk vertegenwoordiger",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Geen bestand",
275
277
  "uploadArea.unknownFileName": "onbekende bestandsnaam",
276
278
  "uploadArea.uploading": "Bezig met uploaden…"
277
- }
279
+ }
@@ -257,6 +257,8 @@
257
257
  "supportingDoc.documentTypes": "Documentos suportados: .pdf, .png, .jpg",
258
258
  "supportingDoc.downloadTemplate": "Descarregar um modelo",
259
259
  "supportingDoc.errorUpload": "Falha ao carregar ficheiro",
260
+ "supportingDoc.generalAssemblyMinutes": "Atas da assembleia geral",
261
+ "supportingDoc.generalAssemblyMinutes.description": "Atas da última assembleia geral da associação",
260
262
  "supportingDoc.noRequiredDocuments": "Não precisamos de nenhum documento da sua parte. Pode continuar.",
261
263
  "supportingDoc.powerAttorney": "Procuração",
262
264
  "supportingDoc.powerAttornySigned": "Procuração assinada pelo representante legal",
@@ -274,4 +276,4 @@
274
276
  "uploadArea.noValue": "Nenhum ficheiro",
275
277
  "uploadArea.unknownFileName": "nome do ficheiro desconhecido",
276
278
  "uploadArea.uploading": "Carregando…"
277
- }
279
+ }