22 lines
901 B
JavaScript
22 lines
901 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.historyQuerySchema = exports.unreadQuerySchema = exports.idParamSchema = exports.preferencesSchema = exports.preferenceItemSchema = void 0;
|
|
const zod_1 = require("zod");
|
|
exports.preferenceItemSchema = zod_1.z.object({
|
|
notificationType: zod_1.z.string(),
|
|
channel: zod_1.z.string(),
|
|
enabled: zod_1.z.boolean(),
|
|
});
|
|
exports.preferencesSchema = zod_1.z.array(exports.preferenceItemSchema);
|
|
exports.idParamSchema = zod_1.z.object({
|
|
id: zod_1.z.string().min(1),
|
|
});
|
|
exports.unreadQuerySchema = zod_1.z.object({
|
|
unread: zod_1.z.string().optional(),
|
|
});
|
|
exports.historyQuerySchema = zod_1.z.object({
|
|
channel: zod_1.z.string().optional(),
|
|
status: zod_1.z.string().optional(),
|
|
limit: zod_1.z.coerce.number().int().min(1).max(500).optional(),
|
|
});
|
|
//# sourceMappingURL=notification.schemas.js.map
|