feat: resend document via API (#1226)

Allow users to re-send documents via the API.
This commit is contained in:
Catalin Pit
2024-07-12 14:03:52 +03:00
committed by GitHub
parent b0c081683f
commit 7f5b27372f
3 changed files with 60 additions and 0 deletions

View File

@@ -57,6 +57,20 @@ export const ZSendDocumentForSigningMutationSchema = z
export type TSendDocumentForSigningMutationSchema = typeof ZSendDocumentForSigningMutationSchema;
export const ZResendDocumentForSigningMutationSchema = z.object({
recipients: z.array(z.number()),
});
export type TResendDocumentForSigningMutationSchema = z.infer<
typeof ZResendDocumentForSigningMutationSchema
>;
export const ZSuccessfulResendDocumentResponseSchema = z.object({
message: z.string(),
});
export type TResendDocumentResponseSchema = z.infer<typeof ZSuccessfulResendDocumentResponseSchema>;
export const ZUploadDocumentSuccessfulSchema = z.object({
url: z.string(),
key: z.string(),