chore: template attachments

This commit is contained in:
Catalin Pit
2025-07-07 13:31:55 +03:00
parent 30b240cba2
commit e19da93ce2
19 changed files with 583 additions and 195 deletions

View File

@ -2,13 +2,17 @@ import { prisma } from '@documenso/prisma';
import { buildTeamWhereQuery } from '../../utils/teams';
export type FindAttachmentsOptions = {
documentId: number;
export type FindDocumentAttachmentsOptions = {
documentId?: number;
userId: number;
teamId: number;
};
export const findAttachments = async ({ documentId, userId, teamId }: FindAttachmentsOptions) => {
export const findDocumentAttachments = async ({
documentId,
userId,
teamId,
}: FindDocumentAttachmentsOptions) => {
const attachments = await prisma.attachment.findMany({
where: {
document: {

View File

@ -0,0 +1,28 @@
import { prisma } from '@documenso/prisma';
import { buildTeamWhereQuery } from '../../utils/teams';
export type FindTemplateAttachmentsOptions = {
templateId: number;
userId: number;
teamId: number;
};
export const findTemplateAttachments = async ({
templateId,
userId,
teamId,
}: FindTemplateAttachmentsOptions) => {
const attachments = await prisma.attachment.findMany({
where: {
template: {
id: templateId,
team: buildTeamWhereQuery({ teamId, userId }),
},
},
});
console.log('attachments', attachments);
return attachments;
};

View File

@ -6,14 +6,12 @@ import { AppError } from '../../errors/app-error';
import { AppErrorCode } from '../../errors/app-error';
export type CreateAttachmentsOptions = {
documentId?: number;
templateId?: number;
documentId: number;
attachments: Pick<Attachment, 'id' | 'label' | 'url' | 'type'>[];
};
export const setDocumentAttachments = async ({
documentId,
templateId,
attachments,
}: CreateAttachmentsOptions) => {
const document = await prisma.document.findUnique({
@ -55,13 +53,11 @@ export const setDocumentAttachments = async ({
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
},
create: {
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
documentId,
},
});
@ -72,7 +68,6 @@ export const setDocumentAttachments = async ({
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
documentId,
},
});

View File

@ -0,0 +1,80 @@
import type { Attachment } from '@prisma/client';
import { prisma } from '@documenso/prisma';
import { AppError } from '../../errors/app-error';
import { AppErrorCode } from '../../errors/app-error';
export type CreateAttachmentsOptions = {
templateId: number;
attachments: Pick<Attachment, 'id' | 'label' | 'url' | 'type'>[];
};
export const setTemplateAttachments = async ({
templateId,
attachments,
}: CreateAttachmentsOptions) => {
const template = await prisma.template.findUnique({
where: {
id: templateId,
},
});
if (!template) {
throw new AppError(AppErrorCode.NOT_FOUND, {
message: 'Template not found',
});
}
const existingAttachments = await prisma.attachment.findMany({
where: {
templateId,
},
});
const newIds = attachments.map((a) => a.id).filter(Boolean);
const toDelete = existingAttachments.filter((existing) => !newIds.includes(existing.id));
if (toDelete.length > 0) {
await prisma.attachment.deleteMany({
where: {
id: { in: toDelete.map((a) => a.id) },
},
});
}
const upsertedAttachments: Attachment[] = [];
for (const attachment of attachments) {
if (attachment.id) {
const updated = await prisma.attachment.upsert({
where: { id: attachment.id },
update: {
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
},
create: {
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
},
});
upsertedAttachments.push(updated);
} else {
const created = await prisma.attachment.create({
data: {
label: attachment.label,
url: attachment.url,
type: attachment.type,
templateId,
},
});
upsertedAttachments.push(created);
}
}
return upsertedAttachments;
};

View File

@ -297,6 +297,10 @@ msgstr "{prefix} hat das Dokument aktualisiert"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} hat die Anforderungen an die Dokumentenzugriffsautorisierung aktualisiert"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr ""
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} hat die externe ID des Dokuments aktualisiert"
@ -313,6 +317,10 @@ msgstr "{prefix} hat den Titel des Dokuments aktualisiert"
msgid "{prefix} updated the document visibility"
msgstr "{prefix} hat die Sichtbarkeit des Dokuments aktualisiert"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} viewed the document"
msgstr ""
#: apps/remix/app/components/general/direct-template/direct-template-page.tsx
msgid "{recipientActionVerb} document"
msgstr "{recipientActionVerb} Dokument"
@ -1427,6 +1435,10 @@ msgstr "Unterstützend"
msgid "At least one signature type must be enabled"
msgstr "Mindestens ein Signaturtyp muss aktiviert sein"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr ""
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Versuche, das Dokument erneut zu versiegeln, nützlich nach einer Codeänderung, um ein fehlerhaftes Dokument zu beheben."
@ -1767,7 +1779,6 @@ msgstr "Klicken Sie hier, um zu beginnen"
#: apps/remix/app/components/tables/settings-public-profile-templates-table.tsx
#: apps/remix/app/components/general/template/template-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Click here to retry"
msgstr "Klicken Sie hier, um es erneut zu versuchen"
@ -2665,6 +2676,10 @@ msgstr "Dokument Alle"
msgid "Document Approved"
msgstr "Dokument genehmigt"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -2749,11 +2764,6 @@ msgstr "Externe ID des Dokuments aktualisiert"
msgid "Document found in your account"
msgstr "Dokument in Ihrem Konto gefunden"
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id._index.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Document history"
msgstr "Dokumentverlauf"
#: apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
msgid "Document ID"
@ -2872,6 +2882,10 @@ msgstr "Dokumenten-Upload deaktiviert aufgrund unbezahlter Rechnungen"
msgid "Document uploaded"
msgstr "Dokument hochgeladen"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document viewed"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/complete.tsx
msgid "Document Viewed"
msgstr "Dokument angesehen"
@ -3712,10 +3726,6 @@ msgstr "Hallo, {userName} <0>({userEmail})</0>"
msgid "Hide"
msgstr "Ausblenden"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Hide additional information"
msgstr "Zusätzliche Informationen ausblenden"
#: apps/remix/app/components/general/generic-error-layout.tsx
#: apps/remix/app/components/general/folder/folder-grid.tsx
#: apps/remix/app/components/dialogs/folder-move-dialog.tsx
@ -5814,10 +5824,6 @@ msgstr "Teilen Sie Ihre Unterzeichnungserfahrung!"
msgid "Show"
msgstr "Anzeigen"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Show additional information"
msgstr "Zusätzliche Informationen anzeigen"
#: packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx
#: packages/ui/primitives/document-flow/add-signers.tsx
msgid "Show advanced settings"
@ -6633,7 +6639,8 @@ msgid "The following team has been deleted. You will no longer be able to access
msgstr "Das folgende Team wurde gelöscht. Sie können nicht mehr auf dieses Team und seine Dokumente zugreifen."
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
msgid "The organisation group you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation group you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Die Organisationsgruppe, nach der Sie suchen, wurde möglicherweise entfernt, umbenannt oder hat möglicherweise nie existiert."
@ -6642,12 +6649,14 @@ msgid "The organisation role that will be applied to all members in this group."
msgstr "Die Organisationsrolle, die auf alle Mitglieder in dieser Gruppe angewendet wird."
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Die Organisation, nach der Sie suchen, wurde möglicherweise entfernt, umbenannt oder hat möglicherweise nie existiert."
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Die Organisation, nach der Sie suchen, wurde möglicherweise entfernt, umbenannt oder hat möglicherweise nie existiert."
@ -6731,12 +6740,14 @@ msgid "The team email <0>{teamEmail}</0> has been removed from the following tea
msgstr "Die Team-E-Mail <0>{teamEmail}</0> wurde aus dem folgenden Team entfernt"
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Das Team, das Sie suchen, wurde möglicherweise entfernt, umbenannt oder hat möglicherweise nie existiert."
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Das Team, das Sie suchen, könnte entfernt, umbenannt oder nie existiert haben."
@ -6774,7 +6785,8 @@ msgid "The URL for Documenso to send webhook events to."
msgstr "Die URL für Documenso, um Webhook-Ereignisse zu senden."
#: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx
msgid "The user you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The user you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Der Benutzer, nach dem Sie suchen, wurde möglicherweise entfernt, umbenannt oder hat möglicherweise nie existiert."
@ -7241,7 +7253,6 @@ msgid "Unable to join this organisation at this time."
msgstr "Zurzeit kann dieser Organisation nicht beigetreten werden."
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Unable to load document history"
msgstr "Kann den Dokumentverlauf nicht laden"
@ -8010,11 +8021,8 @@ msgstr "Wir konnten Ihre E-Mail derzeit nicht verifizieren."
msgid "We were unable to verify your email. If your email is not verified already, please try again."
msgstr "Wir konnten Ihre E-Mail nicht bestätigen. Wenn Ihre E-Mail noch nicht bestätigt wurde, versuchen Sie es bitte erneut."
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for with you, which you can send to the recipients through your method of choice."
msgstr "Wir generieren Signierlinks mit Ihnen, die Sie den Empfängern über Ihre bevorzugte Methode senden können."
#: apps/remix/app/components/dialogs/template-use-dialog.tsx
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for you, which you can send to the recipients through your method of choice."
msgstr "Wir werden Unterzeichnungslinks für Sie erstellen, die Sie an die Empfänger über Ihre bevorzugte Methode senden können."
@ -8728,4 +8736,3 @@ msgstr "Ihr Token wurde erfolgreich erstellt! Stellen Sie sicher, dass Sie es ko
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.tokens.tsx
msgid "Your tokens will be shown here once you create them."
msgstr "Ihre Tokens werden hier angezeigt, sobald Sie sie erstellt haben."

View File

@ -292,6 +292,10 @@ msgstr "{prefix} updated the document"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} updated the document access auth requirements"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr "{prefix} updated the document attachments"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} updated the document external ID"
@ -1426,6 +1430,10 @@ msgstr "Assisting"
msgid "At least one signature type must be enabled"
msgstr "At least one signature type must be enabled"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr "Attachments"
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
@ -2663,6 +2671,10 @@ msgstr "Document All"
msgid "Document Approved"
msgstr "Document Approved"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr "Document attachments updated"
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -4132,10 +4144,10 @@ msgstr "Manage subscription"
msgid "Manage the {0} organisation"
msgstr "Manage the {0} organisation"
#. placeholder {1}: organisation.name
#. placeholder {0}: organisation.name
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "Manage the {1} organisation subscription"
msgstr "Manage the {1} organisation subscription"
msgid "Manage the {0} organisation subscription"
msgstr "Manage the {0} organisation subscription"
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups._index.tsx
msgid "Manage the custom groups of members for your organisation."

View File

@ -297,6 +297,10 @@ msgstr "{prefix} actualizó el documento"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} actualizó los requisitos de autorización de acceso al documento"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr ""
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} actualizó el ID externo del documento"
@ -313,6 +317,10 @@ msgstr "{prefix} actualizó el título del documento"
msgid "{prefix} updated the document visibility"
msgstr "{prefix} actualizó la visibilidad del documento"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} viewed the document"
msgstr ""
#: apps/remix/app/components/general/direct-template/direct-template-page.tsx
msgid "{recipientActionVerb} document"
msgstr "{recipientActionVerb} documento"
@ -1427,6 +1435,10 @@ msgstr "Asistiendo"
msgid "At least one signature type must be enabled"
msgstr "Al menos un tipo de firma debe estar habilitado"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr ""
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Intenta sellar el documento de nuevo, útil después de que se haya producido un cambio de código para resolver un documento erróneo."
@ -1767,7 +1779,6 @@ msgstr "Haga clic aquí para comenzar"
#: apps/remix/app/components/tables/settings-public-profile-templates-table.tsx
#: apps/remix/app/components/general/template/template-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Click here to retry"
msgstr "Haga clic aquí para reintentar"
@ -2665,6 +2676,10 @@ msgstr "Documentar Todo"
msgid "Document Approved"
msgstr "Documento Aprobado"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -2749,11 +2764,6 @@ msgstr "ID externo del documento actualizado"
msgid "Document found in your account"
msgstr "Documento encontrado en tu cuenta"
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id._index.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Document history"
msgstr "Historial de documentos"
#: apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
msgid "Document ID"
@ -2872,6 +2882,10 @@ msgstr "La carga de documentos está deshabilitada debido a facturas impagadas"
msgid "Document uploaded"
msgstr "Documento subido"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document viewed"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/complete.tsx
msgid "Document Viewed"
msgstr "Documento visto"
@ -3712,10 +3726,6 @@ msgstr "Hola, {userName} <0>({userEmail})</0>"
msgid "Hide"
msgstr "Ocultar"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Hide additional information"
msgstr "Ocultar información adicional"
#: apps/remix/app/components/general/generic-error-layout.tsx
#: apps/remix/app/components/general/folder/folder-grid.tsx
#: apps/remix/app/components/dialogs/folder-move-dialog.tsx
@ -5814,10 +5824,6 @@ msgstr "¡Comparte tu experiencia de firma!"
msgid "Show"
msgstr "Mostrar"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Show additional information"
msgstr "Mostrar información adicional"
#: packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx
#: packages/ui/primitives/document-flow/add-signers.tsx
msgid "Show advanced settings"
@ -6633,7 +6639,8 @@ msgid "The following team has been deleted. You will no longer be able to access
msgstr "El siguiente equipo ha sido eliminado. Ya no podrá acceder a este equipo y sus documentos"
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
msgid "The organisation group you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation group you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "El grupo de organización que está buscando puede haber sido eliminado, renombrado o puede que nunca haya existido."
@ -6642,12 +6649,14 @@ msgid "The organisation role that will be applied to all members in this group."
msgstr "El rol de organización que se aplicará a todos los miembros de este grupo."
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "La organización que está buscando puede haber sido eliminada, renombrada o puede que nunca haya existido."
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "La organización que está buscando puede haber sido eliminada, renombrada o puede que nunca haya existido."
@ -6731,14 +6740,17 @@ msgid "The team email <0>{teamEmail}</0> has been removed from the following tea
msgstr "El correo electrónico del equipo <0>{teamEmail}</0> ha sido eliminado del siguiente equipo"
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "El equipo que está buscando puede haber sido eliminado, renombrado o puede que nunca haya existido."
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "El equipo que buscas puede haber sido eliminado, renombrado o quizás nunca\n"
msgstr ""
"El equipo que buscas puede haber sido eliminado, renombrado o quizás nunca\n"
" existió."
#: apps/remix/app/components/dialogs/template-move-to-folder-dialog.tsx
@ -6775,7 +6787,8 @@ msgid "The URL for Documenso to send webhook events to."
msgstr "La URL para Documenso para enviar eventos de webhook."
#: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx
msgid "The user you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The user you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "El usuario que está buscando puede haber sido eliminado, renombrado o puede que nunca haya existido."
@ -7242,7 +7255,6 @@ msgid "Unable to join this organisation at this time."
msgstr "No se puede unirse a esta organización en este momento."
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Unable to load document history"
msgstr "No se pudo cargar el historial del documento"
@ -8011,11 +8023,8 @@ msgstr "No pudimos verificar tu correo electrónico en este momento."
msgid "We were unable to verify your email. If your email is not verified already, please try again."
msgstr "No pudimos verificar tu correo electrónico. Si tu correo electrónico no está verificado ya, por favor inténtalo de nuevo."
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for with you, which you can send to the recipients through your method of choice."
msgstr "Generaremos enlaces de firma para ti, que podrás enviar a los destinatarios a través de tu método preferido."
#: apps/remix/app/components/dialogs/template-use-dialog.tsx
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for you, which you can send to the recipients through your method of choice."
msgstr "Generaremos enlaces de firma para ti, que podrás enviar a los destinatarios a través de tu método preferido."
@ -8729,4 +8738,3 @@ msgstr "¡Tu token se creó con éxito! ¡Asegúrate de copiarlo porque no podr
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.tokens.tsx
msgid "Your tokens will be shown here once you create them."
msgstr "Tus tokens se mostrarán aquí una vez que los crees."

View File

@ -297,6 +297,10 @@ msgstr "{prefix} a mis à jour le document"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} a mis à jour les exigences d'authentification d'accès au document"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr ""
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} a mis à jour l'ID externe du document"
@ -313,6 +317,10 @@ msgstr "{prefix} a mis à jour le titre du document"
msgid "{prefix} updated the document visibility"
msgstr "{prefix} a mis à jour la visibilité du document"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} viewed the document"
msgstr ""
#: apps/remix/app/components/general/direct-template/direct-template-page.tsx
msgid "{recipientActionVerb} document"
msgstr "{recipientActionVerb} document"
@ -1427,6 +1435,10 @@ msgstr "En assistance"
msgid "At least one signature type must be enabled"
msgstr "Au moins un type de signature doit être activé"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr ""
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Essaye de sceller le document à nouveau, utile après qu'un changement de code ait eu lieu pour résoudre un document erroné."
@ -1767,7 +1779,6 @@ msgstr "Cliquez ici pour commencer"
#: apps/remix/app/components/tables/settings-public-profile-templates-table.tsx
#: apps/remix/app/components/general/template/template-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Click here to retry"
msgstr "Cliquez ici pour réessayer"
@ -2665,6 +2676,10 @@ msgstr "Document Tout"
msgid "Document Approved"
msgstr "Document Approuvé"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -2749,11 +2764,6 @@ msgstr "ID externe du document mis à jour"
msgid "Document found in your account"
msgstr "Document trouvé dans votre compte"
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id._index.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Document history"
msgstr "Historique du document"
#: apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
msgid "Document ID"
@ -2872,6 +2882,10 @@ msgstr "Importation de documents désactivé en raison de factures impayées"
msgid "Document uploaded"
msgstr "Document importé"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document viewed"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/complete.tsx
msgid "Document Viewed"
msgstr "Document consulté"
@ -3712,10 +3726,6 @@ msgstr "Bonjour, {userName} <0>({userEmail})</0>"
msgid "Hide"
msgstr "Cacher"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Hide additional information"
msgstr "Cacher des informations supplémentaires"
#: apps/remix/app/components/general/generic-error-layout.tsx
#: apps/remix/app/components/general/folder/folder-grid.tsx
#: apps/remix/app/components/dialogs/folder-move-dialog.tsx
@ -5814,10 +5824,6 @@ msgstr "Partagez votre expérience de signature !"
msgid "Show"
msgstr "Afficher"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Show additional information"
msgstr "Afficher des informations supplémentaires"
#: packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx
#: packages/ui/primitives/document-flow/add-signers.tsx
msgid "Show advanced settings"
@ -6633,7 +6639,8 @@ msgid "The following team has been deleted. You will no longer be able to access
msgstr "L'équipe suivante a été supprimée. Vous ne pourrez plus accéder à cette équipe et à ses documents"
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
msgid "The organisation group you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation group you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Le groupe d'organisation que vous cherchez peut avoir été supprimé, renommé ou n'a peut-être jamais existé."
@ -6642,12 +6649,14 @@ msgid "The organisation role that will be applied to all members in this group."
msgstr "Le rôle d'organisation qui sera appliqué à tous les membres de ce groupe."
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'organisation que vous cherchez peut avoir été supprimée, renommée ou n'a peut-être jamais existé."
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'organisation que vous cherchez peut avoir été supprimée, renommée ou n'a peut-être jamais existé."
@ -6731,12 +6740,14 @@ msgid "The team email <0>{teamEmail}</0> has been removed from the following tea
msgstr "L'email d'équipe <0>{teamEmail}</0> a été supprimé de l'équipe suivante"
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'équipe que vous cherchez peut avoir été supprimée, renommée ou n'a peut-être jamais existé."
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'équipe que vous cherchez a peut-être été supprimée, renommée ou n'a peut-être jamais existé."
@ -6774,7 +6785,8 @@ msgid "The URL for Documenso to send webhook events to."
msgstr "L'URL pour Documenso pour envoyer des événements webhook."
#: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx
msgid "The user you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The user you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'utilisateur que vous cherchez peut avoir été supprimé, renommé ou n'a peut-être jamais existé."
@ -7241,7 +7253,6 @@ msgid "Unable to join this organisation at this time."
msgstr "Impossible de rejoindre cette organisation pour le moment."
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Unable to load document history"
msgstr "Impossible de charger l'historique des documents"
@ -8010,11 +8021,8 @@ msgstr "Nous n'avons pas pu vérifier votre email pour le moment."
msgid "We were unable to verify your email. If your email is not verified already, please try again."
msgstr "Nous n'avons pas pu vérifier votre e-mail. Si votre e-mail n'est pas déjà vérifié, veuillez réessayer."
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for with you, which you can send to the recipients through your method of choice."
msgstr "Nous générerons des liens de signature pour vous, que vous pourrez envoyer aux destinataires par votre méthode de choix."
#: apps/remix/app/components/dialogs/template-use-dialog.tsx
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for you, which you can send to the recipients through your method of choice."
msgstr "Nous allons générer des liens de signature pour vous, que vous pouvez envoyer aux destinataires par votre méthode de choix."
@ -8728,4 +8736,3 @@ msgstr "Votre token a été créé avec succès ! Assurez-vous de le copier car
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.tokens.tsx
msgid "Your tokens will be shown here once you create them."
msgstr "Vos tokens seront affichés ici une fois que vous les aurez créés."

View File

@ -297,6 +297,10 @@ msgstr "{prefix} ha aggiornato il documento"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} ha aggiornato i requisiti di autenticazione per l'accesso al documento"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr ""
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} ha aggiornato l'ID esterno del documento"
@ -313,6 +317,10 @@ msgstr "{prefix} ha aggiornato il titolo del documento"
msgid "{prefix} updated the document visibility"
msgstr "{prefix} ha aggiornato la visibilità del documento"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} viewed the document"
msgstr ""
#: apps/remix/app/components/general/direct-template/direct-template-page.tsx
msgid "{recipientActionVerb} document"
msgstr "{recipientActionVerb} documento"
@ -1427,6 +1435,10 @@ msgstr "Assistenza in corso"
msgid "At least one signature type must be enabled"
msgstr "Deve essere abilitato almeno un tipo di firma"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr ""
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Tenta nuovamente di sigillare il documento, utile dopo una modifica al codice per risolvere un documento errato."
@ -1767,7 +1779,6 @@ msgstr "Clicca qui per iniziare"
#: apps/remix/app/components/tables/settings-public-profile-templates-table.tsx
#: apps/remix/app/components/general/template/template-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Click here to retry"
msgstr "Clicca qui per riprovare"
@ -2665,6 +2676,10 @@ msgstr "Documenta Tutto"
msgid "Document Approved"
msgstr "Documento Approvato"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -2749,11 +2764,6 @@ msgstr "ID esterno del documento aggiornato"
msgid "Document found in your account"
msgstr "Documento trovato nel tuo account"
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id._index.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Document history"
msgstr "Cronologia del documento"
#: apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
msgid "Document ID"
@ -2872,6 +2882,10 @@ msgstr "Caricamento del documento disabilitato a causa di fatture non pagate"
msgid "Document uploaded"
msgstr "Documento caricato"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document viewed"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/complete.tsx
msgid "Document Viewed"
msgstr "Documento visualizzato"
@ -3712,10 +3726,6 @@ msgstr "Ciao, {userName} <0>({userEmail})</0>"
msgid "Hide"
msgstr "Nascondi"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Hide additional information"
msgstr "Nascondi informazioni aggiuntive"
#: apps/remix/app/components/general/generic-error-layout.tsx
#: apps/remix/app/components/general/folder/folder-grid.tsx
#: apps/remix/app/components/dialogs/folder-move-dialog.tsx
@ -5814,10 +5824,6 @@ msgstr "Condividi la tua esperienza di firma!"
msgid "Show"
msgstr "Mostra"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Show additional information"
msgstr "Mostra informazioni aggiuntive"
#: packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx
#: packages/ui/primitives/document-flow/add-signers.tsx
msgid "Show advanced settings"
@ -6633,9 +6639,11 @@ msgid "The following team has been deleted. You will no longer be able to access
msgstr "Il seguente team è stato eliminato. Non potrai più accedere a questo team e ai suoi documenti"
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
msgid "The organisation group you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation group you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Il gruppo organizzativo che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
msgstr ""
"Il gruppo organizzativo che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
" esistito."
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
@ -6643,15 +6651,19 @@ msgid "The organisation role that will be applied to all members in this group."
msgstr "Il ruolo organizzativo che verrà applicato a tutti i membri in questo gruppo."
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'organizzazione che cerchi potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
msgstr ""
"L'organizzazione che cerchi potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
" esistita."
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'organizzazione che cerchi potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
msgstr ""
"L'organizzazione che cerchi potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
" esistita."
#: apps/remix/app/components/general/generic-error-layout.tsx
@ -6734,15 +6746,19 @@ msgid "The team email <0>{teamEmail}</0> has been removed from the following tea
msgstr "L'email del team <0>{teamEmail}</0> è stata rimossa dal seguente team"
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Il team che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
msgstr ""
"Il team che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
" esistito."
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "La squadra che stai cercando potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
msgstr ""
"La squadra che stai cercando potrebbe essere stata rimossa, rinominata o potrebbe non essere mai\n"
" esistita."
#: apps/remix/app/components/dialogs/template-move-to-folder-dialog.tsx
@ -6779,9 +6795,11 @@ msgid "The URL for Documenso to send webhook events to."
msgstr "L'URL per Documenso per inviare eventi webhook."
#: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx
msgid "The user you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The user you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "L'utente che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
msgstr ""
"L'utente che cerchi potrebbe essere stato rimosso, rinominato o potrebbe non essere mai\n"
" esistito."
#: apps/remix/app/components/dialogs/webhook-delete-dialog.tsx
@ -7247,7 +7265,6 @@ msgid "Unable to join this organisation at this time."
msgstr "Impossibile unirsi a questa organizzazione in questo momento."
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Unable to load document history"
msgstr "Impossibile caricare la cronologia del documento"
@ -8016,11 +8033,8 @@ msgstr "Non siamo stati in grado di verificare la tua email in questo momento."
msgid "We were unable to verify your email. If your email is not verified already, please try again."
msgstr "Non siamo riusciti a verificare la tua email. Se la tua email non è già verificata, riprova."
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for with you, which you can send to the recipients through your method of choice."
msgstr "Genereremo link di firma con te, che potrai inviare ai destinatari tramite il tuo metodo preferito."
#: apps/remix/app/components/dialogs/template-use-dialog.tsx
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for you, which you can send to the recipients through your method of choice."
msgstr "Genereremo link di firma per te, che potrai inviare ai destinatari tramite il metodo di tua scelta."
@ -8734,4 +8748,3 @@ msgstr "Il tuo token è stato creato con successo! Assicurati di copiarlo perch
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.tokens.tsx
msgid "Your tokens will be shown here once you create them."
msgstr "I tuoi token verranno mostrati qui una volta creati."

View File

@ -297,6 +297,10 @@ msgstr "Użytkownik {prefix} zaktualizował dokument"
msgid "{prefix} updated the document access auth requirements"
msgstr "{prefix} zaktualizowane wymagania dotyczące autoryzacji dostępu do dokumentu"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document attachments"
msgstr ""
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} updated the document external ID"
msgstr "{prefix} zaktualizowane ID zewnętrzne dokumentu"
@ -313,6 +317,10 @@ msgstr "Użytkownik {prefix} zaktualizował tytuł dokumentu"
msgid "{prefix} updated the document visibility"
msgstr "Użytkownik {prefix} zaktualizował widoczność dokumentu"
#: packages/lib/utils/document-audit-logs.ts
msgid "{prefix} viewed the document"
msgstr ""
#: apps/remix/app/components/general/direct-template/direct-template-page.tsx
msgid "{recipientActionVerb} document"
msgstr "{recipientActionVerb} dokument"
@ -1427,6 +1435,10 @@ msgstr "Asystowanie"
msgid "At least one signature type must be enabled"
msgstr "Przynajmniej jeden typ podpisu musi być włączony"
#: apps/remix/app/components/general/document-signing/document-signing-form.tsx
msgid "Attachments"
msgstr ""
#: apps/remix/app/routes/_authenticated+/admin+/documents.$id.tsx
msgid "Attempts sealing the document again, useful for after a code change has occurred to resolve an erroneous document."
msgstr "Ponowne próby zapieczętowania dokumentu, przydatne po zmianie kodu w celu rozwiązania błędnego dokumentu."
@ -1767,7 +1779,6 @@ msgstr "Kliknij, aby rozpocząć"
#: apps/remix/app/components/tables/settings-public-profile-templates-table.tsx
#: apps/remix/app/components/general/template/template-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Click here to retry"
msgstr "Kliknij tutaj, aby spróbować ponownie"
@ -2665,6 +2676,10 @@ msgstr "Wszystkie dokumenty"
msgid "Document Approved"
msgstr "Dokument zatwierdzony"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document attachments updated"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/_index.tsx
#: packages/lib/server-only/document/super-delete-document.ts
#: packages/lib/server-only/document/delete-document.ts
@ -2749,11 +2764,6 @@ msgstr "Zaktualizowane ID zewnętrzne dokumentu"
msgid "Document found in your account"
msgstr "Dokument znaleziony na Twoim koncie"
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id._index.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Document history"
msgstr "Historia dokumentu"
#: apps/remix/app/routes/_internal+/[__htmltopdf]+/audit-log.tsx
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
msgid "Document ID"
@ -2872,6 +2882,10 @@ msgstr "Przesyłanie dokumentu wyłączone z powodu nieopłaconych faktur"
msgid "Document uploaded"
msgstr "Przesłano dokument"
#: packages/lib/utils/document-audit-logs.ts
msgid "Document viewed"
msgstr ""
#: apps/remix/app/routes/_recipient+/sign.$token+/complete.tsx
msgid "Document Viewed"
msgstr "Dokument został wyświetlony"
@ -3712,10 +3726,6 @@ msgstr "Cześć, {userName} <0>({userEmail})</0>"
msgid "Hide"
msgstr "Ukryj"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Hide additional information"
msgstr "Ukryj dodatkowe informacje"
#: apps/remix/app/components/general/generic-error-layout.tsx
#: apps/remix/app/components/general/folder/folder-grid.tsx
#: apps/remix/app/components/dialogs/folder-move-dialog.tsx
@ -5814,10 +5824,6 @@ msgstr "Podziel się swoim doświadczeniem podpisywania!"
msgid "Show"
msgstr "Pokaż"
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Show additional information"
msgstr "Pokaż dodatkowe informacje"
#: packages/ui/primitives/template-flow/add-template-placeholder-recipients.tsx
#: packages/ui/primitives/document-flow/add-signers.tsx
msgid "Show advanced settings"
@ -6633,7 +6639,8 @@ msgid "The following team has been deleted. You will no longer be able to access
msgstr "Poniższy zespół został usunięty. Nie będziesz mógł już uzyskać dostępu do tego zespołu i jego dokumentów."
#: apps/remix/app/routes/_authenticated+/o.$orgUrl.settings.groups.$id.tsx
msgid "The organisation group you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation group you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Grupa organizacji, której szukasz, mogła zostać usunięta, zmieniona nazwa lub mogła nigdy nie istnieć."
@ -6642,12 +6649,14 @@ msgid "The organisation role that will be applied to all members in this group."
msgstr "Rola organizacji, która zostanie zastosowana do wszystkich członków tej grupy."
#: apps/remix/app/routes/_authenticated+/admin+/organisations.$id.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Organizacja, której szukasz, mogła zostać usunięta, zmieniona nazwa lub mogła nigdy nie istnieć."
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The organisation you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The organisation you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Organizacja, której szukasz, mogła zostać usunięta, zmieniona nazwa lub mogła nigdy nie istnieć."
@ -6731,12 +6740,14 @@ msgid "The team email <0>{teamEmail}</0> has been removed from the following tea
msgstr "Email zespołowy <0>{teamEmail}</0> został usunięty z następującego zespołu"
#: apps/remix/app/routes/_authenticated+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Zespół, którego szukasz, mógł zostać usunięty, zmienić nazwę lub mógł nigdy nie istnieć."
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/_layout.tsx
msgid "The team you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The team you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Zespół, którego szukasz, mógł zostać usunięty, zmieniony na, albo nigdy nie istniał."
@ -6774,7 +6785,8 @@ msgid "The URL for Documenso to send webhook events to."
msgstr "URL dla Documenso do wysyłania zdarzeń webhook."
#: apps/remix/app/routes/_authenticated+/admin+/users.$id.tsx
msgid "The user you are looking for may have been removed, renamed or may have never\n"
msgid ""
"The user you are looking for may have been removed, renamed or may have never\n"
" existed."
msgstr "Użytkownik, którego szukasz, mógł zostać usunięty, zmieniony nazwę lub mógł nigdy nie istnieć."
@ -7241,7 +7253,6 @@ msgid "Unable to join this organisation at this time."
msgstr "Nie można w tej chwili dołączyć do tej organizacji."
#: apps/remix/app/components/general/document/document-page-view-recent-activity.tsx
#: apps/remix/app/components/general/document/document-history-sheet.tsx
msgid "Unable to load document history"
msgstr "Nie można załadować historii dokumentu"
@ -8010,11 +8021,8 @@ msgstr "Nie udało się zweryfikować Twojego e-maila w tym momencie."
msgid "We were unable to verify your email. If your email is not verified already, please try again."
msgstr "Nie udało się zweryfikować twojego e-maila. Jeśli twój e-mail nie jest jeszcze zweryfikowany, spróbuj ponownie."
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for with you, which you can send to the recipients through your method of choice."
msgstr "Wygenerujemy linki do podpisu dla Ciebie, które możesz wysłać do odbiorców w wybrany przez siebie sposób."
#: apps/remix/app/components/dialogs/template-use-dialog.tsx
#: packages/ui/primitives/document-flow/add-subject.tsx
msgid "We will generate signing links for you, which you can send to the recipients through your method of choice."
msgstr "Wygenerujemy dla Ciebie linki do podpisania, które możesz wysłać do odbiorców za pomocą wybranej metody."
@ -8728,4 +8736,3 @@ msgstr "Twój token został pomyślnie utworzony! Upewnij się, że go skopiujes
#: apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.tokens.tsx
msgid "Your tokens will be shown here once you create them."
msgstr "Twoje tokeny będą tutaj wyświetlane po ich utworzeniu."

View File

@ -1,6 +1,5 @@
import type { z } from 'zod';
import { AttachmentSchema } from '@documenso/prisma/generated/zod/modelSchema/AttachmentSchema';
import { DocumentDataSchema } from '@documenso/prisma/generated/zod/modelSchema/DocumentDataSchema';
import { DocumentMetaSchema } from '@documenso/prisma/generated/zod/modelSchema/DocumentMetaSchema';
import { DocumentSchema } from '@documenso/prisma/generated/zod/modelSchema/DocumentSchema';
@ -74,14 +73,6 @@ export const ZDocumentSchema = DocumentSchema.pick({
}).nullable(),
recipients: ZRecipientLiteSchema.array(),
fields: ZFieldSchema.array(),
attachments: AttachmentSchema.pick({
id: true,
label: true,
url: true,
type: true,
})
.array()
.optional(),
});
export type TDocument = z.infer<typeof ZDocumentSchema>;

View File

@ -1,6 +1,5 @@
import type { z } from 'zod';
import { AttachmentSchema } from '@documenso/prisma/generated/zod/modelSchema/AttachmentSchema';
import { DocumentDataSchema } from '@documenso/prisma/generated/zod/modelSchema/DocumentDataSchema';
import { FolderSchema } from '@documenso/prisma/generated/zod/modelSchema/FolderSchema';
import TeamSchema from '@documenso/prisma/generated/zod/modelSchema/TeamSchema';
@ -65,14 +64,6 @@ export const ZTemplateSchema = TemplateSchema.pick({
}),
recipients: ZRecipientLiteSchema.array(),
fields: ZFieldSchema.array(),
attachments: AttachmentSchema.pick({
id: true,
label: true,
url: true,
type: true,
})
.array()
.optional(),
folder: FolderSchema.pick({
id: true,
name: true,

View File

@ -1,26 +1,32 @@
import { findAttachments } from '@documenso/lib/server-only/attachment/find-attachments';
import { findDocumentAttachments } from '@documenso/lib/server-only/attachment/find-document-attachments';
import { findTemplateAttachments } from '@documenso/lib/server-only/attachment/find-template-attachments';
import { setDocumentAttachments } from '@documenso/lib/server-only/attachment/set-document-attachments';
import { setTemplateAttachments } from '@documenso/lib/server-only/attachment/set-template-attachments';
import { authenticatedProcedure, router } from '../trpc';
import {
ZGetDocumentAttachmentsResponseSchema,
ZGetDocumentAttachmentsSchema,
ZGetTemplateAttachmentsResponseSchema,
ZGetTemplateAttachmentsSchema,
ZSetDocumentAttachmentsResponseSchema,
ZSetDocumentAttachmentsSchema,
ZSetTemplateAttachmentsResponseSchema,
ZSetTemplateAttachmentsSchema,
} from './schema';
export const attachmentRouter = router({
/**
* @private
*/
getAttachments: authenticatedProcedure
getDocumentAttachments: authenticatedProcedure
.input(ZGetDocumentAttachmentsSchema)
.output(ZGetDocumentAttachmentsResponseSchema)
.query(async ({ input, ctx }) => {
const { documentId } = input;
const { user } = ctx;
const attachments = await findAttachments({
const attachments = await findDocumentAttachments({
documentId,
userId: user.id,
teamId: ctx.teamId,
@ -42,6 +48,40 @@ export const attachmentRouter = router({
attachments,
});
return updatedAttachments;
}),
/**
* @private
*/
getTemplateAttachments: authenticatedProcedure
.input(ZGetTemplateAttachmentsSchema)
.output(ZGetTemplateAttachmentsResponseSchema)
.query(async ({ input, ctx }) => {
const { templateId } = input;
const attachments = await findTemplateAttachments({
templateId,
userId: ctx.user.id,
teamId: ctx.teamId,
});
return attachments;
}),
/**
* @private
*/
setTemplateAttachments: authenticatedProcedure
.input(ZSetTemplateAttachmentsSchema)
.output(ZSetTemplateAttachmentsResponseSchema)
.mutation(async ({ input, ctx }) => {
const { templateId, attachments } = input;
const updatedAttachments = await setTemplateAttachments({
templateId,
attachments,
});
return updatedAttachments;
}),
});

View File

@ -15,6 +15,19 @@ export const ZGetDocumentAttachmentsResponseSchema = z.array(
}),
);
export const ZGetTemplateAttachmentsSchema = z.object({
templateId: z.number(),
});
export const ZGetTemplateAttachmentsResponseSchema = z.array(
z.object({
id: z.string(),
label: z.string(),
url: z.string(),
type: z.nativeEnum(AttachmentType),
}),
);
export const ZSetDocumentAttachmentsSchema = z.object({
documentId: z.number(),
attachments: z.array(
@ -37,3 +50,26 @@ export const ZSetDocumentAttachmentsResponseSchema = z.array(
type: z.nativeEnum(AttachmentType),
}),
);
export const ZSetTemplateAttachmentsSchema = z.object({
templateId: z.number(),
attachments: z.array(
z.object({
id: z.string(),
label: z.string().min(1, 'Label is required'),
url: z.string().url('Invalid URL'),
type: z.nativeEnum(AttachmentType),
}),
),
});
export type TSetTemplateAttachmentsSchema = z.infer<typeof ZSetTemplateAttachmentsSchema>;
export const ZSetTemplateAttachmentsResponseSchema = z.array(
z.object({
id: z.string(),
label: z.string(),
url: z.string(),
type: z.nativeEnum(AttachmentType),
}),
);

View File

@ -14,7 +14,6 @@ import {
ZTemplateManySchema,
ZTemplateSchema,
} from '@documenso/lib/types/template';
import AttachmentSchema from '@documenso/prisma/generated/zod/modelSchema/AttachmentSchema';
import { TemplateDirectLinkSchema } from '@documenso/prisma/generated/zod/modelSchema/TemplateDirectLinkSchema';
import {
@ -156,16 +155,6 @@ export const ZUpdateTemplateRequestSchema = z.object({
.optional(),
type: z.nativeEnum(TemplateType).optional(),
useLegacyFieldInsertion: z.boolean().optional(),
attachments: AttachmentSchema.pick({
id: true,
label: true,
url: true,
})
.extend({
formId: z.string().min(1),
})
.array()
.optional(),
})
.optional(),
meta: z