fix: add tests

This commit is contained in:
David Nguyen
2025-11-03 20:17:52 +11:00
parent 4a0425b120
commit c10c95ca00
10 changed files with 456 additions and 79 deletions

View File

@ -161,7 +161,6 @@ export const templateRouter = router({
*/
createTemplate: authenticatedProcedure
.meta({
// Note before releasing this to public, update the response schema to be correct.
openapi: {
method: 'POST',
path: '/template/create',
@ -207,7 +206,7 @@ export const templateRouter = router({
return {
envelopeId: envelope.id,
legacyTemplateId: mapSecondaryIdToTemplateId(envelope.secondaryId),
id: mapSecondaryIdToTemplateId(envelope.secondaryId),
};
}),

View File

@ -231,7 +231,7 @@ export const ZCreateTemplateV2ResponseSchema = z.object({
export const ZCreateTemplateResponseSchema = z.object({
envelopeId: z.string(),
legacyTemplateId: z.number(),
id: z.number(),
});
export const ZUpdateTemplateRequestSchema = z.object({