waha-shared 1.0.188 → 1.0.189
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const MicroLessonSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
4
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
5
5
|
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -83,7 +83,8 @@ export declare const MicroLesson: z.ZodObject<{
|
|
|
83
83
|
subtitle?: string | undefined;
|
|
84
84
|
campaign?: string | undefined;
|
|
85
85
|
}>;
|
|
86
|
-
export
|
|
86
|
+
export type MicroLesson = z.infer<typeof MicroLessonSchema>;
|
|
87
|
+
export declare const ResponseMicroLessonSchema: z.ZodObject<{
|
|
87
88
|
id: z.ZodString;
|
|
88
89
|
data: z.ZodObject<{
|
|
89
90
|
title: z.ZodString;
|
|
@@ -214,6 +215,7 @@ export declare const ResponseMicroLesson: z.ZodObject<{
|
|
|
214
215
|
campaign?: string | undefined;
|
|
215
216
|
};
|
|
216
217
|
}>;
|
|
218
|
+
export type ResponseMicroLesson = z.infer<typeof ResponseMicroLessonSchema>;
|
|
217
219
|
export declare const MicroLessonsResponse: z.ZodObject<{
|
|
218
220
|
data: z.ZodArray<z.ZodObject<{
|
|
219
221
|
id: z.ZodString;
|
|
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MicroLessonsResponse = exports.
|
|
6
|
+
exports.MicroLessonsResponse = exports.ResponseMicroLessonSchema = exports.MicroLessonSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.
|
|
8
|
+
exports.MicroLessonSchema = zod_1.default.object({
|
|
9
9
|
title: zod_1.default.string(),
|
|
10
10
|
subtitle: zod_1.default.string().optional(),
|
|
11
11
|
isDraft: zod_1.default
|
|
@@ -36,10 +36,10 @@ exports.MicroLesson = zod_1.default.object({
|
|
|
36
36
|
videoUrl: zod_1.default.string().optional(),
|
|
37
37
|
})),
|
|
38
38
|
});
|
|
39
|
-
exports.
|
|
39
|
+
exports.ResponseMicroLessonSchema = zod_1.default.object({
|
|
40
40
|
id: zod_1.default.string(),
|
|
41
|
-
data: exports.
|
|
41
|
+
data: exports.MicroLessonSchema,
|
|
42
42
|
});
|
|
43
43
|
exports.MicroLessonsResponse = zod_1.default.object({
|
|
44
|
-
data: zod_1.default.array(exports.
|
|
44
|
+
data: zod_1.default.array(exports.ResponseMicroLessonSchema),
|
|
45
45
|
});
|