@eliasrrosa/tutorhub-public-assets 0.1.0 → 0.2.0
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/domain/entities/User.d.ts +2 -0
- package/dist/domain/entities/User.js +2 -0
- package/dist/index.cjs +2 -3
- package/dist/index.js +2 -3
- package/dist/infrastructure/restful/requests/forms/ClassCreationForm.d.ts +6 -9
- package/dist/infrastructure/restful/requests/forms/ClassCreationForm.js +2 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -546,9 +546,8 @@ var ClassStatusSchema = import_zod.z.literal("pending").or(import_zod.z.literal(
|
|
|
546
546
|
// src/infrastructure/restful/requests/forms/ClassCreationForm.ts
|
|
547
547
|
var ClassCreationFormSchema = import_zod2.z.object({
|
|
548
548
|
title: import_zod2.z.string().min(1).max(255),
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
endTime: import_zod2.z.string(),
|
|
549
|
+
startDateTime: import_zod2.z.string().datetime(),
|
|
550
|
+
endDateTime: import_zod2.z.string().datetime(),
|
|
552
551
|
courseId: import_zod2.z.string().uuid(),
|
|
553
552
|
description: import_zod2.z.string().max(255).optional(),
|
|
554
553
|
status: ClassStatusSchema.optional(),
|
package/dist/index.js
CHANGED
|
@@ -508,9 +508,8 @@ var ClassStatusSchema = z.literal("pending").or(z.literal("done")).or(z.literal(
|
|
|
508
508
|
// src/infrastructure/restful/requests/forms/ClassCreationForm.ts
|
|
509
509
|
var ClassCreationFormSchema = z2.object({
|
|
510
510
|
title: z2.string().min(1).max(255),
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
endTime: z2.string(),
|
|
511
|
+
startDateTime: z2.string().datetime(),
|
|
512
|
+
endDateTime: z2.string().datetime(),
|
|
514
513
|
courseId: z2.string().uuid(),
|
|
515
514
|
description: z2.string().max(255).optional(),
|
|
516
515
|
status: ClassStatusSchema.optional(),
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ClassCreationFormSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
endTime: z.ZodString;
|
|
4
|
+
startDateTime: z.ZodString;
|
|
5
|
+
endDateTime: z.ZodString;
|
|
7
6
|
courseId: z.ZodString;
|
|
8
7
|
description: z.ZodOptional<z.ZodString>;
|
|
9
8
|
status: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"done">]>, z.ZodLiteral<"canceled">]>, z.ZodLiteral<"to reschedule">]>>;
|
|
10
9
|
meetingLink: z.ZodOptional<z.ZodString>;
|
|
11
10
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
date: string;
|
|
13
11
|
title: string;
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
startDateTime: string;
|
|
13
|
+
endDateTime: string;
|
|
16
14
|
courseId: string;
|
|
17
15
|
status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
|
|
18
16
|
description?: string | undefined;
|
|
19
17
|
meetingLink?: string | undefined;
|
|
20
18
|
}, {
|
|
21
|
-
date: string;
|
|
22
19
|
title: string;
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
startDateTime: string;
|
|
21
|
+
endDateTime: string;
|
|
25
22
|
courseId: string;
|
|
26
23
|
status?: "pending" | "done" | "canceled" | "to reschedule" | undefined;
|
|
27
24
|
description?: string | undefined;
|
|
@@ -5,9 +5,8 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const ClassStatus_1 = require("../../../../domain/types/ClassStatus");
|
|
6
6
|
exports.ClassCreationFormSchema = zod_1.z.object({
|
|
7
7
|
title: zod_1.z.string().min(1).max(255),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
endTime: zod_1.z.string(),
|
|
8
|
+
startDateTime: zod_1.z.string().datetime(),
|
|
9
|
+
endDateTime: zod_1.z.string().datetime(),
|
|
11
10
|
courseId: zod_1.z.string().uuid(),
|
|
12
11
|
description: zod_1.z.string().max(255).optional(),
|
|
13
12
|
status: ClassStatus_1.ClassStatusSchema.optional(),
|