mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
feat: add envelopes api (#2105)
This commit is contained in:
@ -7,9 +7,11 @@ import { authenticatedProcedure } from '../trpc';
|
||||
import {
|
||||
ZUpdateEnvelopeItemsRequestSchema,
|
||||
ZUpdateEnvelopeItemsResponseSchema,
|
||||
updateEnvelopeItemsMeta,
|
||||
} from './update-envelope-items.types';
|
||||
|
||||
export const updateEnvelopeItemsRoute = authenticatedProcedure
|
||||
.meta(updateEnvelopeItemsMeta)
|
||||
.input(ZUpdateEnvelopeItemsRequestSchema)
|
||||
.output(ZUpdateEnvelopeItemsResponseSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
@ -93,6 +95,6 @@ export const updateEnvelopeItemsRoute = authenticatedProcedure
|
||||
// Todo: Envelope [AUDIT_LOGS]
|
||||
|
||||
return {
|
||||
updatedEnvelopeItems,
|
||||
data: updatedEnvelopeItems,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user