rategame-shared 1.1.414 → 1.1.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/content.d.ts +4 -1
- package/dist/schemas/content.d.ts +93 -0
- package/dist/schemas/content.js +15 -1
- package/package.json +1 -1
package/dist/models/content.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { featuredVideoSchema } from "../schemas/content";
|
|
2
|
+
import { createFeaturedVideoScheduleInputSchema, featuredVideoScheduleSchema, featuredVideoSchema, updateFeaturedVideoScheduleInputSchema } from "../schemas/content";
|
|
3
3
|
export type FeaturedVideo = z.infer<typeof featuredVideoSchema>;
|
|
4
|
+
export type CreateFeaturedVideoScheduleInput = z.infer<typeof createFeaturedVideoScheduleInputSchema>;
|
|
5
|
+
export type UpdateFeaturedVideoScheduleInput = z.infer<typeof updateFeaturedVideoScheduleInputSchema>;
|
|
6
|
+
export type FeaturedVideoSchedule = z.infer<typeof featuredVideoScheduleSchema>;
|
|
@@ -17,3 +17,96 @@ export declare const featuredVideoSchema: import("zod").ZodObject<{
|
|
|
17
17
|
description: string;
|
|
18
18
|
thumbnail: string;
|
|
19
19
|
}>;
|
|
20
|
+
export declare const createFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
21
|
+
id: import("zod").ZodString;
|
|
22
|
+
title: import("zod").ZodString;
|
|
23
|
+
description: import("zod").ZodString;
|
|
24
|
+
url: import("zod").ZodString;
|
|
25
|
+
thumbnail: import("zod").ZodString;
|
|
26
|
+
}, {
|
|
27
|
+
startsAt: import("zod").ZodNumber;
|
|
28
|
+
endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
29
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
30
|
+
id: string;
|
|
31
|
+
url: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
thumbnail: string;
|
|
35
|
+
startsAt: number;
|
|
36
|
+
endsAt?: number | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
url: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
thumbnail: string;
|
|
43
|
+
startsAt: number;
|
|
44
|
+
endsAt?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const updateFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
47
|
+
id: import("zod").ZodString;
|
|
48
|
+
title: import("zod").ZodString;
|
|
49
|
+
description: import("zod").ZodString;
|
|
50
|
+
url: import("zod").ZodString;
|
|
51
|
+
thumbnail: import("zod").ZodString;
|
|
52
|
+
}, {
|
|
53
|
+
startsAt: import("zod").ZodNumber;
|
|
54
|
+
endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
55
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
56
|
+
id: string;
|
|
57
|
+
url: string;
|
|
58
|
+
title: string;
|
|
59
|
+
description: string;
|
|
60
|
+
thumbnail: string;
|
|
61
|
+
startsAt: number;
|
|
62
|
+
endsAt?: number | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
id: string;
|
|
65
|
+
url: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
thumbnail: string;
|
|
69
|
+
startsAt: number;
|
|
70
|
+
endsAt?: number | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
73
|
+
id: import("zod").ZodString;
|
|
74
|
+
title: import("zod").ZodString;
|
|
75
|
+
description: import("zod").ZodString;
|
|
76
|
+
url: import("zod").ZodString;
|
|
77
|
+
thumbnail: import("zod").ZodString;
|
|
78
|
+
}, {
|
|
79
|
+
scheduleId: import("zod").ZodString;
|
|
80
|
+
startsAt: import("zod").ZodNumber;
|
|
81
|
+
endsAt: import("zod").ZodNumber;
|
|
82
|
+
createdAt: import("zod").ZodNumber;
|
|
83
|
+
updatedAt: import("zod").ZodNumber;
|
|
84
|
+
isCanceled: import("zod").ZodBoolean;
|
|
85
|
+
canceledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
86
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
87
|
+
id: string;
|
|
88
|
+
url: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description: string;
|
|
91
|
+
createdAt: number;
|
|
92
|
+
updatedAt: number;
|
|
93
|
+
thumbnail: string;
|
|
94
|
+
startsAt: number;
|
|
95
|
+
endsAt: number;
|
|
96
|
+
scheduleId: string;
|
|
97
|
+
isCanceled: boolean;
|
|
98
|
+
canceledAt?: number | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
id: string;
|
|
101
|
+
url: string;
|
|
102
|
+
title: string;
|
|
103
|
+
description: string;
|
|
104
|
+
createdAt: number;
|
|
105
|
+
updatedAt: number;
|
|
106
|
+
thumbnail: string;
|
|
107
|
+
startsAt: number;
|
|
108
|
+
endsAt: number;
|
|
109
|
+
scheduleId: string;
|
|
110
|
+
isCanceled: boolean;
|
|
111
|
+
canceledAt?: number | undefined;
|
|
112
|
+
}>;
|
package/dist/schemas/content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.featuredVideoSchema = void 0;
|
|
3
|
+
exports.featuredVideoScheduleSchema = exports.updateFeaturedVideoScheduleInputSchema = exports.createFeaturedVideoScheduleInputSchema = exports.featuredVideoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.featuredVideoSchema = (0, zod_1.object)({
|
|
6
6
|
id: (0, zod_1.string)(),
|
|
@@ -9,3 +9,17 @@ exports.featuredVideoSchema = (0, zod_1.object)({
|
|
|
9
9
|
url: (0, zod_1.string)(),
|
|
10
10
|
thumbnail: (0, zod_1.string)(),
|
|
11
11
|
});
|
|
12
|
+
exports.createFeaturedVideoScheduleInputSchema = exports.featuredVideoSchema.extend({
|
|
13
|
+
startsAt: (0, zod_1.number)(),
|
|
14
|
+
endsAt: (0, zod_1.number)().optional(),
|
|
15
|
+
});
|
|
16
|
+
exports.updateFeaturedVideoScheduleInputSchema = exports.createFeaturedVideoScheduleInputSchema;
|
|
17
|
+
exports.featuredVideoScheduleSchema = exports.featuredVideoSchema.extend({
|
|
18
|
+
scheduleId: (0, zod_1.string)(),
|
|
19
|
+
startsAt: (0, zod_1.number)(),
|
|
20
|
+
endsAt: (0, zod_1.number)(),
|
|
21
|
+
createdAt: (0, zod_1.number)(),
|
|
22
|
+
updatedAt: (0, zod_1.number)(),
|
|
23
|
+
isCanceled: (0, zod_1.boolean)(),
|
|
24
|
+
canceledAt: (0, zod_1.number)().optional(),
|
|
25
|
+
});
|