mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
feat: add envelopes api
This commit is contained in:
@ -13,11 +13,21 @@ import {
|
||||
} from './create-envelope-items.types';
|
||||
|
||||
export const createEnvelopeItemsRoute = authenticatedProcedure
|
||||
// Todo: Envelopes - Pending direct uploads
|
||||
// .meta({
|
||||
// openapi: {
|
||||
// method: 'POST',
|
||||
// path: '/envelope/item/create-many',
|
||||
// summary: 'Create envelope items',
|
||||
// description: 'Create multiple envelope items for an envelope',
|
||||
// tags: ['Envelope Item'],
|
||||
// },
|
||||
// })
|
||||
.input(ZCreateEnvelopeItemsRequestSchema)
|
||||
.output(ZCreateEnvelopeItemsResponseSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
const { user, teamId, metadata } = ctx;
|
||||
const { envelopeId, items } = input;
|
||||
const { envelopeId, data: items } = input;
|
||||
|
||||
ctx.logger.info({
|
||||
input: {
|
||||
|
||||
Reference in New Issue
Block a user