mirror of
https://github.com/documenso/documenso.git
synced 2026-07-27 02:15:05 +10:00
fix: persist formValues in document creation endpoints (#2419)
This commit is contained in:
@@ -796,6 +796,7 @@ export const ApiContractV1Implementation = tsr.router(ApiContractV1, {
|
|||||||
title: body.title,
|
title: body.title,
|
||||||
},
|
},
|
||||||
attachments: body.attachments,
|
attachments: body.attachments,
|
||||||
|
formValues: body.formValues,
|
||||||
requestMetadata: metadata,
|
requestMetadata: metadata,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export const createDocumentTemporaryRoute = authenticatedProcedure
|
|||||||
meta,
|
meta,
|
||||||
folderId,
|
folderId,
|
||||||
attachments,
|
attachments,
|
||||||
|
formValues,
|
||||||
} = input;
|
} = input;
|
||||||
|
|
||||||
const { remaining } = await getServerLimits({ userId: user.id, teamId });
|
const { remaining } = await getServerLimits({ userId: user.id, teamId });
|
||||||
@@ -68,6 +69,7 @@ export const createDocumentTemporaryRoute = authenticatedProcedure
|
|||||||
title,
|
title,
|
||||||
externalId,
|
externalId,
|
||||||
visibility,
|
visibility,
|
||||||
|
formValues,
|
||||||
globalAccessAuth,
|
globalAccessAuth,
|
||||||
globalActionAuth,
|
globalActionAuth,
|
||||||
recipients: (recipients || []).map((recipient) => ({
|
recipients: (recipients || []).map((recipient) => ({
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Temporariy endpoint for V2 Beta until we allow passthrough documents on create.
|
* Temporariy endpoint for V2 Beta until we allow passthrough documents on create.
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
export const createDocumentTemporaryMeta: TrpcRouteMeta = {
|
export const createDocumentTemporaryMeta: TrpcRouteMeta = {
|
||||||
openapi: {
|
openapi: {
|
||||||
@@ -36,6 +37,7 @@ export const createDocumentTemporaryMeta: TrpcRouteMeta = {
|
|||||||
description:
|
description:
|
||||||
'You will need to upload the PDF to the provided URL returned. Note: Once V2 API is released, this will be removed since we will allow direct uploads, instead of using an upload URL.',
|
'You will need to upload the PDF to the provided URL returned. Note: Once V2 API is released, this will be removed since we will allow direct uploads, instead of using an upload URL.',
|
||||||
tags: ['Document'],
|
tags: ['Document'],
|
||||||
|
deprecated: true,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export const createDocumentRoute = authenticatedProcedure
|
|||||||
visibility,
|
visibility,
|
||||||
globalAccessAuth,
|
globalAccessAuth,
|
||||||
globalActionAuth,
|
globalActionAuth,
|
||||||
|
formValues,
|
||||||
recipients: (recipients || []).map((recipient) => ({
|
recipients: (recipients || []).map((recipient) => ({
|
||||||
...recipient,
|
...recipient,
|
||||||
fields: (recipient.fields || []).map((field) => ({
|
fields: (recipient.fields || []).map((field) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user