mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 17:51:49 +10:00
fix: additional backwards compat
This commit is contained in:
@ -36,7 +36,6 @@ const DOCUMENT_SOURCE_LABELS: { [key in DocumentSource]: MessageDescriptor } = {
|
|||||||
DOCUMENT: msg`Document`,
|
DOCUMENT: msg`Document`,
|
||||||
TEMPLATE: msg`Template`,
|
TEMPLATE: msg`Template`,
|
||||||
TEMPLATE_DIRECT_LINK: msg`Direct link`,
|
TEMPLATE_DIRECT_LINK: msg`Direct link`,
|
||||||
NONE: msg`None`,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const ZDocumentSearchParamsSchema = ZUrlSearchParamsSchema.extend({
|
const ZDocumentSearchParamsSchema = ZUrlSearchParamsSchema.extend({
|
||||||
|
|||||||
@ -117,17 +117,11 @@ export const TemplatePageViewRecentActivity = ({
|
|||||||
className="text-muted-foreground dark:text-muted-foreground/70 flex-auto truncate py-0.5 text-xs leading-5"
|
className="text-muted-foreground dark:text-muted-foreground/70 flex-auto truncate py-0.5 text-xs leading-5"
|
||||||
>
|
>
|
||||||
{match(document.source)
|
{match(document.source)
|
||||||
.with(
|
.with(DocumentSource.DOCUMENT, DocumentSource.TEMPLATE, () => (
|
||||||
DocumentSource.DOCUMENT,
|
|
||||||
DocumentSource.TEMPLATE,
|
|
||||||
DocumentSource.NONE,
|
|
||||||
() => (
|
|
||||||
<Trans>
|
<Trans>
|
||||||
Document created by{' '}
|
Document created by <span className="font-bold">{document.user.name}</span>
|
||||||
<span className="font-bold">{document.user.name}</span>
|
|
||||||
</Trans>
|
</Trans>
|
||||||
),
|
))
|
||||||
)
|
|
||||||
.with(DocumentSource.TEMPLATE_DIRECT_LINK, () => (
|
.with(DocumentSource.TEMPLATE_DIRECT_LINK, () => (
|
||||||
<Trans>
|
<Trans>
|
||||||
Document created using a <span className="font-bold">direct link</span>
|
Document created using a <span className="font-bold">direct link</span>
|
||||||
|
|||||||
@ -252,7 +252,7 @@ export const createEnvelope = async ({
|
|||||||
visibility,
|
visibility,
|
||||||
folderId,
|
folderId,
|
||||||
formValues,
|
formValues,
|
||||||
source: type === EnvelopeType.DOCUMENT ? DocumentSource.DOCUMENT : DocumentSource.NONE,
|
source: type === EnvelopeType.DOCUMENT ? DocumentSource.DOCUMENT : DocumentSource.TEMPLATE,
|
||||||
documentMetaId: documentMeta.id,
|
documentMetaId: documentMeta.id,
|
||||||
|
|
||||||
// Template specific fields.
|
// Template specific fields.
|
||||||
|
|||||||
@ -98,7 +98,8 @@ export const duplicateEnvelope = async ({ id, userId, teamId }: DuplicateEnvelop
|
|||||||
documentMetaId: createdDocumentMeta.id,
|
documentMetaId: createdDocumentMeta.id,
|
||||||
authOptions: envelope.authOptions || undefined,
|
authOptions: envelope.authOptions || undefined,
|
||||||
visibility: envelope.visibility,
|
visibility: envelope.visibility,
|
||||||
source: DocumentSource.NONE,
|
source:
|
||||||
|
envelope.type === EnvelopeType.DOCUMENT ? DocumentSource.DOCUMENT : DocumentSource.TEMPLATE,
|
||||||
},
|
},
|
||||||
include: {
|
include: {
|
||||||
recipients: true,
|
recipients: true,
|
||||||
|
|||||||
@ -5516,7 +5516,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "Keine Sorge, das passiert! Geben Sie Ihre E-Mail ein, und wir senden Ihnen einen speziellen Link zum Zurücksetzen Ihres Passworts."
|
msgstr "Keine Sorge, das passiert! Geben Sie Ihre E-Mail ein, und wir senden Ihnen einen speziellen Link zum Zurücksetzen Ihres Passworts."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -5511,7 +5511,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "No worries, it happens! Enter your email and we'll email you a special link to reset your password."
|
msgstr "No worries, it happens! Enter your email and we'll email you a special link to reset your password."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -5516,7 +5516,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "¡No te preocupes, sucede! Ingresa tu correo electrónico y te enviaremos un enlace especial para restablecer tu contraseña."
|
msgstr "¡No te preocupes, sucede! Ingresa tu correo electrónico y te enviaremos un enlace especial para restablecer tu contraseña."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -5516,7 +5516,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "Pas de soucis, ça arrive ! Entrez votre email et nous vous enverrons un lien spécial pour réinitialiser votre mot de passe."
|
msgstr "Pas de soucis, ça arrive ! Entrez votre email et nous vous enverrons un lien spécial pour réinitialiser votre mot de passe."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -5516,7 +5516,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "Non ti preoccupare, succede! Inserisci la tua email e ti invieremo un link speciale per reimpostare la tua password."
|
msgstr "Non ti preoccupare, succede! Inserisci la tua email e ti invieremo un link speciale per reimpostare la tua password."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -5516,7 +5516,6 @@ msgid "No worries, it happens! Enter your email and we'll email you a special li
|
|||||||
msgstr "Nie martw się, to się zdarza! Wprowadź swój e-mail, a my wyślemy Ci specjalny link do zresetowania hasła."
|
msgstr "Nie martw się, to się zdarza! Wprowadź swój e-mail, a my wyślemy Ci specjalny link do zresetowania hasła."
|
||||||
|
|
||||||
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
#: apps/remix/app/components/tables/admin-claims-table.tsx
|
||||||
#: apps/remix/app/components/general/template/template-page-view-documents-table.tsx
|
|
||||||
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
#: apps/remix/app/components/forms/editor/editor-field-number-form.tsx
|
||||||
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
#: apps/remix/app/components/embed/authoring/configure-document-advanced-settings.tsx
|
||||||
#: packages/lib/constants/document.ts
|
#: packages/lib/constants/document.ts
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
-- AlterEnum
|
|
||||||
ALTER TYPE "DocumentSource" ADD VALUE 'NONE';
|
|
||||||
@ -287,7 +287,7 @@ SELECT
|
|||||||
NULL,
|
NULL,
|
||||||
t."title",
|
t."title",
|
||||||
'DRAFT',
|
'DRAFT',
|
||||||
'NONE'::"DocumentSource",
|
'TEMPLATE'::"DocumentSource",
|
||||||
NULL,
|
NULL,
|
||||||
1,
|
1,
|
||||||
t."useLegacyFieldInsertion",
|
t."useLegacyFieldInsertion",
|
||||||
|
|||||||
@ -330,7 +330,6 @@ enum DocumentSource {
|
|||||||
DOCUMENT
|
DOCUMENT
|
||||||
TEMPLATE
|
TEMPLATE
|
||||||
TEMPLATE_DIRECT_LINK
|
TEMPLATE_DIRECT_LINK
|
||||||
NONE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum DocumentVisibility {
|
enum DocumentVisibility {
|
||||||
|
|||||||
Reference in New Issue
Block a user