-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: get many endpoints #2226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: get many endpoints #2226
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| envelopeIds: z.array(z.string()).min(1), | ||
| }); | ||
|
|
||
| export const ZGetEnvelopesByIdsResponseSchema = z.array(ZEnvelopeSchema); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used the same schema as in getEnvelopeRoute
|
|
||
| const envelopeOrInput = envelopeWhereInput.OR!; | ||
|
|
||
| const envelopes = await prisma.envelope.findMany({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns the same amount of information as the endpoint for retrieving one envelope
Implement getMultipleEnvelopeWhereInput for fetching multiple envelopes with proper access control, supporting envelopeId, documentId, and templateId types via discriminated union. Add 20 ID limit per request and comprehensive E2E tests covering unauthorized access and teamId manipulation attacks.
No description provided.