Add new gdpr registries

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-12-16 16:56:33 +01:00
parent 9084d74b06
commit 91b42c6cd1
44 changed files with 12700 additions and 463 deletions

View File

@@ -3,6 +3,11 @@ export function formatDatetime(dateString?: string | null): string | undefined {
return `${dateString}T00:00:00Z`;
}
export function toDateInput(dateString?: string | null): string {
if (!dateString) return '';
return dateString.split('T')[0];
}
export function formatDate(dateInput?: string | null): string {
if (!dateInput) return '';

View File

@@ -61,7 +61,7 @@ export {
} from "./trustCenterVisibility";
export { promisifyMutation } from "./relay";
export { fileType, fileSize } from "./file";
export { formatDatetime, formatDate } from "./date";
export { formatDatetime, formatDate, toDateInput } from "./date";
export { getTrustCenterUrl } from "./trustCenter";
export { formatError, type GraphQLError } from "./error";
export { Role, getAssignableRoles } from "./roles";