Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings_exports: Export export_consent_schema and realm_export_schema.

Anders Kaseorgbd93e109b499
diff --git a/web/src/settings_exports.ts b/web/src/settings_exports.ts
index 9487b2665be..7b45f17972a 100644
--- a/web/src/settings_exports.ts
+++ b/web/src/settings_exports.ts
@@ -24,13 +24,13 @@ import * as timerender from "./timerender.ts";
import type {HTMLSelectOneElement} from "./types.ts";
import * as ui_report from "./ui_report.ts";
-const export_consent_schema = z.object({
+export const export_consent_schema = z.object({
user_id: z.number(),
consented: z.boolean(),
});
type ExportConsent = z.output<typeof export_consent_schema>;
-const realm_export_schema = z.object({
+export const realm_export_schema = z.object({
id: z.number(),
export_time: z.number(),
acting_user_id: z.number(),