Adds the missing endpoints for documents, envelopes and
templates supporting file uploads in a singular request.
Also updates frontend components that would use the prior
hidden endpoints.
Adds support for multipart/form-data requests in the public api
allowing documents to be uploaded without having to perform a secondary
request.
Need to rollout further endpoints for envelopes and templates.
Need to change how we store files to not use `putFileServerSide`
This pull request refactors the filtering logic in the `getTeamCounts`
function within `get-stats.ts` to improve consistency and
maintainability. The main change is the consolidation of multiple filter
conditions into a single `AND` clause, which now includes search
filters, folder filters, and visibility filters. This ensures that all
relevant filters are applied in a unified way for document count
queries.
This PR is handles the changes required to support envelopes. The new
envelope editor/signing page will be hidden during release.
The core changes here is to migrate the documents and templates model to
a centralized envelopes model.
Even though Documents and Templates are removed, from the user
perspective they will still exist as we remap envelopes to documents and
templates.