mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 17:21:41 +10:00
feat: template recipients on blur
This commit is contained in:
@ -12,6 +12,7 @@ import {
|
||||
ZAddTemplateSignersMutationSchema,
|
||||
ZCompleteDocumentWithTokenMutationSchema,
|
||||
ZRemoveSignerMutationSchema,
|
||||
ZRemoveTemplateSignerMutationSchema,
|
||||
} from './schema';
|
||||
|
||||
export const recipientRouter = router({
|
||||
@ -72,6 +73,12 @@ export const recipientRouter = router({
|
||||
}
|
||||
}),
|
||||
|
||||
removeTemplateSigner: authenticatedProcedure
|
||||
.input(ZRemoveTemplateSignerMutationSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
// TODO: Implement
|
||||
}),
|
||||
|
||||
removeSigner: authenticatedProcedure
|
||||
.input(ZRemoveSignerMutationSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
|
||||
@ -75,3 +75,13 @@ export const ZCompleteDocumentWithTokenMutationSchema = z.object({
|
||||
export type TCompleteDocumentWithTokenMutationSchema = z.infer<
|
||||
typeof ZCompleteDocumentWithTokenMutationSchema
|
||||
>;
|
||||
|
||||
export const ZRemoveTemplateSignerMutationSchema = z.object({
|
||||
templateId: z.number(),
|
||||
teamId: z.number().optional(),
|
||||
recipientId: z.number(),
|
||||
});
|
||||
|
||||
export type TRemoveTemplateSignerMutationSchema = z.infer<
|
||||
typeof ZRemoveTemplateSignerMutationSchema
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user