Tonne of debugging - getting ready for the production builds

This commit is contained in:
2026-02-16 10:44:18 -07:00
parent a77306fac2
commit 7895ce683e
1367 changed files with 404191 additions and 2005 deletions

View File

@@ -0,0 +1,49 @@
import { z } from 'zod';
/**
* Validation schemas for public media endpoints
*/
export declare const listPublicMediaSchema: z.ZodObject<{
limit: z.ZodDefault<z.ZodNumber>;
offset: z.ZodDefault<z.ZodNumber>;
sort: z.ZodDefault<z.ZodEnum<["recent", "popular", "most_viewed"]>>;
search: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodEnum<["videos", "curated", "compilations", "playback", "highlights"]>>;
}, "strip", z.ZodTypeAny, {
sort: "recent" | "popular" | "most_viewed";
limit: number;
offset: number;
search?: string | undefined;
category?: "videos" | "curated" | "playback" | "compilations" | "highlights" | undefined;
}, {
sort?: "recent" | "popular" | "most_viewed" | undefined;
search?: string | undefined;
limit?: number | undefined;
offset?: number | undefined;
category?: "videos" | "curated" | "playback" | "compilations" | "highlights" | undefined;
}>;
export declare const bulkLockSchema: z.ZodObject<{
ids: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
ids: number[];
}, {
ids: number[];
}>;
export declare const bulkUnlockSchema: z.ZodObject<{
ids: z.ZodArray<z.ZodNumber, "many">;
}, "strip", z.ZodTypeAny, {
ids: number[];
}, {
ids: number[];
}>;
export declare const addCommentSchema: z.ZodObject<{
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
content: string;
}, {
content: string;
}>;
export type ListPublicMediaQuery = z.infer<typeof listPublicMediaSchema>;
export type BulkLockBody = z.infer<typeof bulkLockSchema>;
export type BulkUnlockBody = z.infer<typeof bulkUnlockSchema>;
export type AddCommentBody = z.infer<typeof addCommentSchema>;
//# sourceMappingURL=public-media.schemas.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"public-media.schemas.d.ts","sourceRoot":"","sources":["../../../../src/modules/media/schemas/public-media.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAEzB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}

View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addCommentSchema = exports.bulkUnlockSchema = exports.bulkLockSchema = exports.listPublicMediaSchema = void 0;
const zod_1 = require("zod");
/**
* Validation schemas for public media endpoints
*/
exports.listPublicMediaSchema = zod_1.z.object({
limit: zod_1.z.coerce.number().int().positive().max(100).default(24),
offset: zod_1.z.coerce.number().int().min(0).default(0),
sort: zod_1.z.enum(['recent', 'popular', 'most_viewed']).default('recent'),
search: zod_1.z.string().optional(),
category: zod_1.z.enum(['videos', 'curated', 'compilations', 'playback', 'highlights']).optional(),
});
exports.bulkLockSchema = zod_1.z.object({
ids: zod_1.z.array(zod_1.z.number().int().positive()).min(1).max(100),
});
exports.bulkUnlockSchema = zod_1.z.object({
ids: zod_1.z.array(zod_1.z.number().int().positive()).min(1).max(100),
});
exports.addCommentSchema = zod_1.z.object({
content: zod_1.z.string().min(1).max(2000),
});
//# sourceMappingURL=public-media.schemas.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"public-media.schemas.js","sourceRoot":"","s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