feat: add get documents and templates by IDs routes with validation schemas

This commit is contained in:
Catalin Pit
2025-11-20 15:55:53 +02:00
parent 29baa3e0d1
commit 45b2f51462
6 changed files with 257 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import { mapEnvelopeToTemplateLite } from '@documenso/lib/utils/templates';
import { ZGenericSuccessResponse, ZSuccessResponseSchema } from '../schema';
import { authenticatedProcedure, maybeAuthenticatedProcedure, router } from '../trpc';
import { getTemplatesByIdsRoute } from './get-templates-by-ids';
import {
ZBulkSendTemplateMutationSchema,
ZCreateDocumentFromDirectTemplateRequestSchema,
@ -154,6 +155,11 @@ export const templateRouter = router({
});
}),
/**
* @public
*/
getMany: getTemplatesByIdsRoute,
/**
* Wait until RR7 so we can passthrough documents.
*