Änderungen an Branding - App Name

This commit is contained in:
2025-03-24 15:55:08 +01:00
parent 063fd32f18
commit d2b83af9ea
58 changed files with 122 additions and 124 deletions

View File

@@ -9,9 +9,9 @@ export const OpenAPIV1 = Object.assign(
ApiContractV1,
{
info: {
title: 'Documenso API',
title: 'BLS sign API',
version: '1.0.0',
description: 'The Documenso API for retrieving, creating, updating and deleting documents.',
description: 'The BLS sign API for retrieving, creating, updating and deleting documents.',
},
servers: [
{

View File

@@ -16,7 +16,7 @@ test('[DOCUMENT_AUTH]: should grant access when not required', async ({ page })
const document = await seedPendingDocument(user, [
recipientWithAccount,
'recipientwithoutaccount@documenso.com',
'recipientwithoutaccount@sign.bls.media',
]);
const recipients = await prisma.recipient.findMany({
@@ -40,7 +40,7 @@ test('[DOCUMENT_AUTH]: should allow or deny access when required', async ({ page
const document = await seedPendingDocument(
user,
[recipientWithAccount, 'recipientwithoutaccount@documenso.com'],
[recipientWithAccount, 'recipientwithoutaccount@sign.bls.media'],
{
createDocumentOptions: {
authOptions: createDocumentAuthOptions({

View File

@@ -39,11 +39,11 @@ test.describe('[EE_ONLY]', () => {
await expect(page.getByRole('heading', { name: 'Add Signers' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Signer' }).click();
await page.getByLabel('Email').nth(1).fill('recipient2@documenso.com');
await page.getByLabel('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByLabel('Name').nth(1).fill('Recipient 2');
// Display advanced settings.
@@ -74,12 +74,12 @@ test('[DOCUMENT_FLOW]: add signers', async ({ page }) => {
await expect(page.getByRole('heading', { name: 'Add Signers' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Signer' }).click();
await page.getByLabel('Email').nth(1).fill('recipient2@documenso.com');
await page.getByLabel('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByLabel('Name').nth(1).fill('Recipient 2');
// Advanced settings should not be visible for non EE users.

View File

@@ -343,14 +343,14 @@ test('[DOCUMENT_FLOW]: should be able to approve a document', async ({ page }) =
const { recipients } = await seedPendingDocumentWithFullFields({
owner: user,
recipients: ['user@documenso.com', 'approver@documenso.com'],
recipients: ['user@sign.bls.media', 'approver@sign.bls.media'],
recipientsCreateOptions: [
{
email: 'user@documenso.com',
email: 'user@sign.bls.media',
role: RecipientRole.SIGNER,
},
{
email: 'approver@documenso.com',
email: 'approver@sign.bls.media',
role: RecipientRole.APPROVER,
},
],

View File

@@ -15,7 +15,7 @@ type LoginOptions = {
export const apiSignin = async ({
page,
email = 'example@documenso.com',
email = 'example@sign.bls.media',
password = 'password',
redirectPath = '/documents',
}: LoginOptions) => {

View File

@@ -39,10 +39,10 @@ test.describe('[EE_ONLY]', () => {
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Placeholder Recipient' }).click();
await page.getByPlaceholder('Email').nth(1).fill('recipient2@documenso.com');
await page.getByPlaceholder('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByPlaceholder('Name').nth(1).fill('Recipient 2');
// Display advanced settings.
@@ -89,10 +89,10 @@ test('[TEMPLATE_FLOW]: add placeholder', async ({ page }) => {
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Placeholder Recipient' }).click();
await page.getByPlaceholder('Email').nth(1).fill('recipient2@documenso.com');
await page.getByPlaceholder('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByPlaceholder('Name').nth(1).fill('Recipient 2');
// Advanced settings should not be visible for non EE users.

View File

@@ -91,10 +91,10 @@ test('[TEMPLATE]: should create a document from a template', async ({ page }) =>
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Placeholder Recipient' }).click();
await page.getByPlaceholder('Email').nth(1).fill('recipient2@documenso.com');
await page.getByPlaceholder('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByPlaceholder('Name').nth(1).fill('Recipient 2');
// Apply require passkey for Recipient 1.
@@ -226,10 +226,10 @@ test('[TEMPLATE]: should create a team document from a team template', async ({
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add 2 signers.
await page.getByPlaceholder('Email').fill('recipient1@documenso.com');
await page.getByPlaceholder('Email').fill('recipient1@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient 1');
await page.getByRole('button', { name: 'Add Placeholder Recipient' }).click();
await page.getByPlaceholder('Email').nth(1).fill('recipient2@documenso.com');
await page.getByPlaceholder('Email').nth(1).fill('recipient2@sign.bls.media');
await page.getByPlaceholder('Name').nth(1).fill('Recipient 2');
// Apply require passkey for Recipient 1.
@@ -330,7 +330,7 @@ test('[TEMPLATE]: should create a document from a template with custom document'
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add a signer
await page.getByPlaceholder('Email').fill('recipient@documenso.com');
await page.getByPlaceholder('Email').fill('recipient@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient');
await page.getByRole('button', { name: 'Continue' }).click();
@@ -411,7 +411,7 @@ test('[TEMPLATE]: should create a team document from a template with custom docu
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add a signer
await page.getByPlaceholder('Email').fill('recipient@documenso.com');
await page.getByPlaceholder('Email').fill('recipient@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient');
await page.getByRole('button', { name: 'Continue' }).click();
@@ -481,7 +481,7 @@ test('[TEMPLATE]: should create a document from a template using template docume
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add a signer
await page.getByPlaceholder('Email').fill('recipient@documenso.com');
await page.getByPlaceholder('Email').fill('recipient@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient');
await page.getByRole('button', { name: 'Continue' }).click();
@@ -561,7 +561,7 @@ test('[TEMPLATE]: should persist document visibility when creating from template
await expect(page.getByRole('heading', { name: 'Add Placeholder' })).toBeVisible();
// Add a signer
await page.getByPlaceholder('Email').fill('recipient@documenso.com');
await page.getByPlaceholder('Email').fill('recipient@sign.bls.media');
await page.getByPlaceholder('Name').fill('Recipient');
await page.getByRole('button', { name: 'Continue' }).click();

View File

@@ -225,7 +225,7 @@ test('[DIRECT_TEMPLATES]: use direct template link with 1 recipient', async ({ p
await page.goto(formatDirectTemplatePath(template.directLink?.token || ''));
await expect(page.getByRole('heading', { name: 'General' })).toBeVisible();
await page.getByPlaceholder('recipient@documenso.com').fill(seedTestEmail());
await page.getByPlaceholder('recipient@sign.bls.media').fill(seedTestEmail());
await page.getByRole('button', { name: 'Continue' }).click();
await page.getByRole('button', { name: 'Complete' }).click();
@@ -299,7 +299,7 @@ test('[DIRECT_TEMPLATES]: use direct template link with 2 recipients', async ({
await expect(page.getByRole('heading', { name: 'General' })).toBeVisible();
await page.waitForTimeout(1000);
await page.getByPlaceholder('recipient@documenso.com').fill(seedTestEmail());
await page.getByPlaceholder('recipient@sign.bls.media').fill(seedTestEmail());
await page.getByRole('button', { name: 'Continue' }).click();
await page.getByRole('button', { name: 'Complete' }).click();

View File

@@ -184,8 +184,8 @@ test('[TEMPLATES]: use template', async ({ page }) => {
await page.getByRole('button', { name: 'Use Template' }).click();
// Enter template values.
await page.getByPlaceholder('recipient.1@documenso.com').click();
await page.getByPlaceholder('recipient.1@documenso.com').fill(teamMemberUser.email);
await page.getByPlaceholder('recipient.1@sign.bls.media').click();
await page.getByPlaceholder('recipient.1@sign.bls.media').fill(teamMemberUser.email);
await page.getByPlaceholder('Recipient 1').click();
await page.getByPlaceholder('Recipient 1').fill('name');
@@ -202,8 +202,8 @@ test('[TEMPLATES]: use template', async ({ page }) => {
await page.getByRole('button', { name: 'Use Template' }).click();
// Enter template values.
await page.getByPlaceholder('recipient.1@documenso.com').click();
await page.getByPlaceholder('recipient.1@documenso.com').fill(teamMemberUser.email);
await page.getByPlaceholder('recipient.1@sign.bls.media').click();
await page.getByPlaceholder('recipient.1@sign.bls.media').fill(teamMemberUser.email);
await page.getByPlaceholder('Recipient 1').click();
await page.getByPlaceholder('Recipient 1').fill('name');

View File

@@ -1,6 +1,6 @@
{
"name": "Documenso",
"short_name": "Documenso",
"name": "BLS sign",
"short_name": "BLS sign",
"icons": [
{
"src": "/android-chrome-192x192.png",

View File

@@ -16,7 +16,7 @@ export const TemplateDocumentImage = ({ assetBaseUrl, className }: TemplateDocum
<Column />
<Column>
<Img className="h-42 mx-auto" src={getAssetUrl('/static/document.png')} alt="Documenso" />
<Img className="h-42 mx-auto" src={getAssetUrl('/static/document.png')} alt="BLS sign" />
</Column>
<Column />

View File

@@ -16,8 +16,8 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
<Text className="my-4 text-base text-slate-400">
<Trans>
This document was sent using{' '}
<Link className="text-[#7AC455]" href="https://documen.so/mail-footer">
Documenso.
<Link className="text-[#7AC455]" href="https://bls.media/sign/">
BLS sign.
</Link>
</Trans>
</Text>
@@ -36,9 +36,7 @@ export const TemplateFooter = ({ isDocument = true }: TemplateFooterProps) => {
</Text>
) : (
<Text className="my-8 text-sm text-slate-400">
Documenso, Inc.
<br />
2261 Market Street, #5211, San Francisco, CA 94114, USA
Made by BLS media
</Text>
)}
</Section>

View File

@@ -33,7 +33,7 @@ export const ConfirmEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -11,7 +11,7 @@ export type DocumentCancelEmailTemplateProps = Partial<TemplateDocumentCancelPro
export const DocumentCancelTemplate = ({
inviterName = 'Lucas Smith',
inviterEmail = 'lucas@documenso.com',
inviterEmail = 'lucas@sign.bls.media',
documentName = 'Open Source Pledge.pdf',
assetBaseUrl = 'http://localhost:3002',
cancellationReason,
@@ -39,7 +39,7 @@ export const DocumentCancelTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -40,7 +40,7 @@ export const DocumentCompletedEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -50,7 +50,7 @@ export const DocumentCreatedFromDirectTemplateEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -23,7 +23,7 @@ export type DocumentInviteEmailTemplateProps = Partial<TemplateDocumentInvitePro
export const DocumentInviteEmailTemplate = ({
inviterName = 'Lucas Smith',
inviterEmail = 'lucas@documenso.com',
inviterEmail = 'lucas@sign.bls.media',
documentName = 'Open Source Pledge.pdf',
signDocumentLink = 'https://documenso.com',
assetBaseUrl = 'http://localhost:3002',
@@ -69,7 +69,7 @@ export const DocumentInviteEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -36,7 +36,7 @@ export const DocumentPendingEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -16,7 +16,7 @@ export interface DocumentRecipientSignedEmailTemplateProps {
export const DocumentRecipientSignedEmailTemplate = ({
documentName = 'Open Source Pledge.pdf',
recipientName = 'John Doe',
recipientEmail = 'lucas@documenso.com',
recipientEmail = 'lucas@sign.bls.media',
assetBaseUrl = 'http://localhost:3002',
}: DocumentRecipientSignedEmailTemplateProps) => {
const { _ } = useLingui();
@@ -44,7 +44,7 @@ export const DocumentRecipientSignedEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -44,7 +44,7 @@ export function DocumentRejectedEmail({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -44,7 +44,7 @@ export function DocumentRejectionConfirmedEmail({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -36,7 +36,7 @@ export const DocumentSelfSignedEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -39,7 +39,7 @@ export const DocumentSuperDeleteEmailTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -36,7 +36,7 @@ export const ForgotPasswordTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -38,7 +38,7 @@ export const RecipientRemovedFromDocumentTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}

View File

@@ -12,7 +12,7 @@ export type ResetPasswordTemplateProps = Partial<TemplateResetPasswordProps>;
export const ResetPasswordTemplate = ({
userName = 'Lucas Smith',
userEmail = 'lucas@documenso.com',
userEmail = 'lucas@sign.bls.media',
assetBaseUrl = 'http://localhost:3002',
}: ResetPasswordTemplateProps) => {
const { _ } = useLingui();
@@ -38,7 +38,7 @@ export const ResetPasswordTemplate = ({
) : (
<Img
src={getAssetUrl('/static/logo.png')}
alt="Documenso Logo"
alt="BLS sign Logo"
className="mb-4 h-6"
/>
)}
@@ -72,7 +72,7 @@ export const ResetPasswordTemplate = ({
<Trans>
Didn't request a password change? We are here to help you secure your account,
just{' '}
<Link className="text-documenso-700 font-normal" href="mailto:hi@documenso.com">
<Link className="text-documenso-700 font-normal" href="mailto:hi@sign.bls.media">
contact us.
</Link>
</Trans>

View File

@@ -20,7 +20,7 @@ export type TeamEmailRemovedTemplateProps = {
export const TeamEmailRemovedTemplate = ({
assetBaseUrl = 'http://localhost:3002',
baseUrl = 'https://documenso.com',
teamEmail = 'example@documenso.com',
teamEmail = 'example@sign.bls.media',
teamName = 'Team Name',
teamUrl = 'demo',
}: TeamEmailRemovedTemplateProps) => {

View File

@@ -22,7 +22,7 @@ export const TeamJoinEmailTemplate = ({
assetBaseUrl = 'http://localhost:3002',
baseUrl = 'https://documenso.com',
memberName = 'John Doe',
memberEmail = 'johndoe@documenso.com',
memberEmail = 'johndoe@sign.bls.media',
teamName = 'Team Name',
teamUrl = 'demo',
}: TeamJoinEmailProps) => {

View File

@@ -22,7 +22,7 @@ export const TeamLeaveEmailTemplate = ({
assetBaseUrl = 'http://localhost:3002',
baseUrl = 'https://documenso.com',
memberName = 'John Doe',
memberEmail = 'johndoe@documenso.com',
memberEmail = 'johndoe@sign.bls.media',
teamName = 'Team Name',
teamUrl = 'demo',
}: TeamLeaveEmailProps) => {

View File

@@ -1,3 +1,3 @@
// Put into a separate file due to Playwright not compiling due to the macro in the templates.ts file.
export const DIRECT_TEMPLATE_RECIPIENT_EMAIL = 'direct.link@documenso.com';
export const DIRECT_TEMPLATE_RECIPIENT_EMAIL = 'direct.link@sign.bls.media';
export const DIRECT_TEMPLATE_RECIPIENT_NAME = 'Direct link recipient';

View File

@@ -1,9 +1,9 @@
import { env } from '../utils/env';
export const FROM_ADDRESS = env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com';
export const FROM_ADDRESS = env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media';
export const FROM_NAME = env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso';
export const SERVICE_USER_EMAIL = 'serviceaccount@documenso.com';
export const SERVICE_USER_EMAIL = 'serviceaccount@sign.bls.media';
export const EMAIL_VERIFICATION_STATE = {
NOT_FOUND: 'NOT_FOUND',

View File

@@ -42,7 +42,7 @@ export const sendConfirmationEmail = async ({ userId }: SendConfirmationEmailPro
const assetBaseUrl = NEXT_PUBLIC_WEBAPP_URL() || 'http://localhost:3000';
const confirmationLink = `${assetBaseUrl}/verify-email/${verificationToken.token}`;
const senderName = NEXT_PRIVATE_SMTP_FROM_NAME || 'Documenso';
const senderAddress = NEXT_PRIVATE_SMTP_FROM_ADDRESS || 'noreply@documenso.com';
const senderAddress = NEXT_PRIVATE_SMTP_FROM_ADDRESS || 'noreply@sign.bls.media';
const confirmationTemplate = createElement(ConfirmEmailTemplate, {
assetBaseUrl,

View File

@@ -57,7 +57,7 @@ export const sendForgotPassword = async ({ userId }: SendForgotPasswordOptions)
},
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: i18n._(msg`Forgot Password?`),
html,

View File

@@ -39,7 +39,7 @@ export const sendResetPassword = async ({ userId }: SendResetPasswordOptions) =>
},
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: 'Password Reset Success!',
html,

View File

@@ -115,7 +115,7 @@ export const sendCompletedEmail = async ({ documentId, requestMetadata }: SendDo
],
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: i18n._(msg`Signing Complete!`),
html,
@@ -192,7 +192,7 @@ export const sendCompletedEmail = async ({ documentId, requestMetadata }: SendDo
],
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject:
isDirectTemplate && document.documentMeta?.subject

View File

@@ -81,7 +81,7 @@ export const sendDeleteEmail = async ({ documentId, reason }: SendDeleteEmailOpt
},
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: i18n._(msg`Document Deleted!`),
html,

View File

@@ -92,7 +92,7 @@ export const sendPendingEmail = async ({ documentId, recipientId }: SendPendingE
},
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: i18n._(msg`Waiting for others to complete signing.`),
html,

View File

@@ -604,8 +604,8 @@ export const createDocumentFromDirectTemplate = async ({
},
],
from: {
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'Documenso',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@documenso.com',
name: env('NEXT_PRIVATE_SMTP_FROM_NAME') || 'BLS sign',
address: env('NEXT_PRIVATE_SMTP_FROM_ADDRESS') || 'noreply@sign.bls.media',
},
subject: i18n._(msg`Document created from direct template`),
html,

View File

@@ -3,7 +3,7 @@ import { prisma } from '@documenso/prisma';
export const deletedAccountServiceAccount = async () => {
const serviceAccount = await prisma.user.findFirst({
where: {
email: 'deleted-account@documenso.com',
email: 'deleted-account@sign.bls.media',
},
});

View File

@@ -19,7 +19,7 @@ export const formatDirectTemplatePath = (token: string) => {
export const generateRecipientPlaceholder = (index: number) => {
return {
name: `Recipient ${index}`,
email: `recipient.${index}@documenso.com`,
email: `recipient.${index}@sign.bls.media`,
};
};

View File

@@ -1,4 +1,4 @@
INSERT INTO "User" ("email", "name") VALUES (
'serviceaccount@documenso.com',
'serviceaccount@sign.bls.media',
'Service Account'
) ON CONFLICT DO NOTHING;

View File

@@ -1,7 +1,7 @@
-- Create deleted@documenso.com
-- Create deleted@sign.bls.media
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM "public"."User" WHERE "email" = 'deleted-account@documenso.com') THEN
IF NOT EXISTS (SELECT 1 FROM "public"."User" WHERE "email" = 'deleted-account@sign.bls.media') THEN
INSERT INTO
"public"."User" (
"email",
@@ -16,7 +16,7 @@ BEGIN
)
VALUES
(
'deleted-account@documenso.com',
'deleted-account@sign.bls.media',
NOW(),
NULL,
NOW(),

View File

@@ -25,11 +25,11 @@ export const seedDatabase = async () => {
const exampleUser = await prisma.user.upsert({
where: {
email: 'example@documenso.com',
email: 'example@sign.bls.media',
},
create: {
name: 'Example User',
email: 'example@documenso.com',
email: 'example@sign.bls.media',
emailVerified: new Date(),
password: hashSync('password'),
roles: [Role.USER],
@@ -39,11 +39,11 @@ export const seedDatabase = async () => {
const adminUser = await prisma.user.upsert({
where: {
email: 'admin@documenso.com',
email: 'admin@sign.bls.media',
},
create: {
name: 'Admin User',
email: 'admin@documenso.com',
email: 'admin@sign.bls.media',
emailVerified: new Date(),
password: hashSync('password'),
roles: [Role.USER, Role.ADMIN],
@@ -126,10 +126,10 @@ export const seedDatabase = async () => {
]);
const testUsers = [
'test@documenso.com',
'test2@documenso.com',
'test3@documenso.com',
'test4@documenso.com',
'test@sign.bls.media',
'test2@sign.bls.media',
'test3@sign.bls.media',
'test4@sign.bls.media',
];
const createdUsers = [];

View File

@@ -73,7 +73,7 @@ export const seedTemplate = async (options: SeedTemplateOptions) => {
},
recipients: {
create: {
email: 'recipient.1@documenso.com',
email: 'recipient.1@sign.bls.media',
name: 'Recipient 1',
token: Math.random().toString().slice(2, 7),
sendStatus: SendStatus.NOT_SENT,

View File

@@ -33,7 +33,7 @@ export const addSigningPlaceholder = async ({ pdf }: AddSigningPlaceholderOption
SubFilter: 'adbe.pkcs7.detached',
ByteRange: byteRange,
Contents: PDFHexString.fromText(' '.repeat(8192)),
Reason: PDFString.of('Signed by Documenso'),
Reason: PDFString.of('Signed by BLS sign'),
M: PDFString.fromDate(new Date()),
}),
);

View File

@@ -11,7 +11,7 @@ describe('updateSigningPlaceholder', () => {
/SubFilter /adbe.pkcs7.detached
/ByteRange [ 0 /********** /********** /********** ]
/Contents <0000000000000000000000000000000000000000000000000000000>
/Reason (Signed by Documenso)
/Reason (Signed by BLS sign)
/M (D:20210101000000Z)
>>
endobj
@@ -48,7 +48,7 @@ describe('updateSigningPlaceholder', () => {
/SubFilter /adbe.pkcs7.detached
/ByteRange [ 0 /********** /********** /********** ]
/Contents <0000000000000000000000000000000000000000000000000000000>
/Reason (Signed by Documenso)
/Reason (Signed by BLS sign)
/M (D:20210101000000Z)
>>
endobj
@@ -59,7 +59,7 @@ describe('updateSigningPlaceholder', () => {
/SubFilter /adbe.pkcs7.detached
/ByteRange [ 0 /********** /********** /********** ]
/Contents <0000000000000000000000000000000000000000000000000000000>
/Reason (Signed by Documenso)
/Reason (Signed by BLS sign)
/M (D:20210101000000Z)
>>
endobj

View File

@@ -6,7 +6,7 @@ import { appRouter } from './router';
export const openApiDocument = {
...generateOpenApiDocument(appRouter, {
title: 'Documenso v2 beta API',
title: 'BLS sign v2 beta API',
description: 'Subject to breaking changes until v2 is fully released.',
version: '0.0.0',
baseUrl: `${NEXT_PUBLIC_WEBAPP_URL()}/api/v2-beta`,