2024-12-30 21:01:03 +11:00
|
|
|
import { router } from '../trpc';
|
|
|
|
|
import { completeDocumentWithTokenRoute } from './complete-document-with-token-route';
|
|
|
|
|
import { getRecipientRoute } from './get-recipient-route';
|
|
|
|
|
import { rejectDocumentWithTokenRoute } from './reject-document-with-token-route';
|
|
|
|
|
import { setDocumentRecipientsRoute } from './set-document-recipients-route';
|
|
|
|
|
import { setTemplateRecipientsRoute } from './set-template-recipients-route';
|
2023-12-02 09:38:24 +11:00
|
|
|
|
|
|
|
|
export const recipientRouter = router({
|
2024-12-14 01:23:35 +09:00
|
|
|
/**
|
2024-12-30 21:01:03 +11:00
|
|
|
* Public endpoints.
|
2024-12-14 01:23:35 +09:00
|
|
|
*/
|
2024-12-30 21:01:03 +11:00
|
|
|
getRecipient: getRecipientRoute,
|
|
|
|
|
setDocumentRecipients: setDocumentRecipientsRoute,
|
|
|
|
|
setTemplateRecipients: setTemplateRecipientsRoute,
|
2023-12-02 09:38:24 +11:00
|
|
|
|
2024-12-14 01:23:35 +09:00
|
|
|
/**
|
2024-12-30 21:01:03 +11:00
|
|
|
* Private endpoints.
|
2024-12-14 01:23:35 +09:00
|
|
|
*/
|
2024-12-30 21:01:03 +11:00
|
|
|
completeDocumentWithToken: completeDocumentWithTokenRoute,
|
|
|
|
|
rejectDocumentWithToken: rejectDocumentWithTokenRoute,
|
2023-12-02 09:38:24 +11:00
|
|
|
});
|